Yep that would be even better, but at least this patch fixes a broken whois
applet.
The data is not taken from a random registrar:

"The name tld.whois-servers.net is a CNAME to the appropriate whois-server.
Somewhat unclear who actually maintains this but it seems pretty popular as
it's very easy to use this with pretty much any whois client (and some
clients default to using this service)."

TODO in the future as you suggested could be to query whois.iana.org for
the whois server to then query for the name.

On 5 July 2016 at 11:17, Bernhard Reutner-Fischer <rep.dot....@gmail.com>
wrote:

> On Tue, Jul 05, 2016 at 10:47:07AM +0200, walter harms wrote:
>
> > please add a comment what whois_host() is supposed to do
> >
> >
> > > +void whois_host(char* host, char *argv_host, const char
> *unqualified_host)
>
> Apart from that, using the data from a random registrar is not reliable
> (as you can see).
>
> AFAIU whois(1) is supposed to:
>
> 1) ask whois.iana.org for the TLD
>    e.g. whois -h whois.iana.org wien
> 2) use the "^whois:" server of that answer for the full domain
>    e.g. whois -h whois.nic.wien ccc.wien
>
> HTH,
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to