Stuart Henderson wrote:
> There is a standard (required) hostname scheme, whois.nic.tld, for the
> new gTLDs. For months whois-servers.net didn't list any of the new ones,
> they are starting to catch up but are still behind,
> 
> $ unbound-host sucks.whois-servers.net
> Host sucks.whois-servers.net not found: 3(NXDOMAIN).
> 
> $ unbound-host whois.nic.sucks
> whois.nic.sucks is an alias for whois.sucks.aridnrs.net.au.
> whois.sucks.aridnrs.net.au has address 120.29.248.191
> whois.sucks.aridnrs.net.au has IPv6 address 2001:dcd:11::f0bf
> 
> and the extra indirection just adds fragility in the cases where they do
> have the right details, so the diff teaches whois to use them directly.
> 
> Any comments/OKs?

> -     strlcpy(server, qhead, len);
> -     strlcat(server, QNICHOST_TAIL, len);
> +
> +     /*
> +      * Post-2003 ("new") gTLDs are all supposed to have "whois.nic.domain"
> +      * (per registry agreement), some older gTLDs also support this...
> +      */
> +     strlcpy(server, "whois.nic.", len);
> +     strlcat(server, qhead, len);

> +             strlcpy(server, qhead, len);
> +             strlcat(server, QNICHOST_TAIL, len);

I see it was like this before, but these are obvious places to use snprintf
instead.

Reply via email to