]> git.lizzy.rs Git - plan9front.git/commit
iwhois: add some improvements (thanks gall0ws)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 9 May 2021 13:19:05 +0000 (15:19 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 9 May 2021 13:19:05 +0000 (15:19 +0200)
commit014197f8d362c4644bdf07931dc695e789054838
tree14186f204d8b1c78c5f9e5916ccaf215ee64841a
parent7048f1ca111fb8a2898039f4e9cd255ec3cd42b2
iwhois: add some improvements (thanks gall0ws)

patch from gall0ws:

> It's impossible to get whois right and probably nobody cares about it,
> nevertheless this small patch fixes some issues with the current version:
>
> * use a more common filter for default boilerplate (useful when
>   following the referral chain)
> * updated boilerplate for *.co.uk *.net.uk *.org.uk
> * added case *.com *.net (got it from iana.org)
> * use ARIN for IPv6 addresses
> * when unsure, check first whether whois.nic.$tld exists otherwise
>   usual fallback to InterNIC
> * fixed regexp for the referral chain (case, extra spaces or /)

- add usage handling.

--
cinap
rc/bin/iwhois