freebsd-skq/usr.bin/whois
Tony Finch 42e88fe650 Handle whois referrals between RIRs
This is rather ugly, because the RIPE and APNIC whois servers do
not provide referrals for address blocks that they do not manage.
However ARIN is usually the right place or knows the right place
so we try there.

The particular instance which clued me in to this bug is U.Mich.
141.211.0.0/16 for which the referral chain should be IANA ->
RIPE -> ARIN. RIPE's RDAP does provide useful redirects (for
example try `curl -I http://rdap.db.ripe.net/ip/141.211.0.0)
so maybe their whois server can be improved.

AfriNIC's whois server gives more direct referrals, but they are
designed to be human-readable. Ugly, but we can manage.

The issue of referrals between RIRs is likely to become more important
in the future whith the increasing number of cross-region IP address
block transfers increases.
2016-04-08 11:43:22 +00:00
..
Makefile
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
whois.1 A lot of the cleverness in whois is no longer needed! 2016-01-23 00:28:18 +00:00
whois.c Handle whois referrals between RIRs 2016-04-08 11:43:22 +00:00