> On 25 Jan 2018, at 8:38 am, Paul Vixie <[email protected]> wrote:
> 
> viktor, i don't disagree with your goals, but i have a proposal as to method.
> 
> no resolver should be sending single-label names in DNS requests, period.

I would qualify that as gethostbyaddr / getaddrinfo etc. should not be ….

Resolvers do more than lookup host names.

> search list processing should not be applied to the "localhost" single label 
> name, ever.
> 
> operating system lookups like gethostbyname() or similar, that are willing to 
> look at the /etc/hosts or local equivalent, should be willing to discover any 
> entry, even single-label names such as "localhost".
> 
> if there is no /etc/hosts or similar that can contain something like the 
> "localhost" name, then the operating system library (gethostbyname or 
> similar) ought to translate this to ::1 (or 127.0.0.1) in hard code.
> 
> in other words there is no situation in which NXDOMAIN should be encountered 
> for the "localhost" name, because no query should ever be sent. and that's 
> mostly true today. localhost is getting returned due to search list 
> processing, when it's returned by DNS at all.
> 
> because i don't think outlawing the name in an RDNS responder is the right 
> place for this logic, nor that these responders are likely to be updated 
> soon, nor that an operator of such a server will decide that implementing 
> this change is in their best interests (wrt help desk calls.)
> paul

> 
> _______________________________________________
> DNSOP mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/dnsop

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: [email protected]

_______________________________________________
DNSOP mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/dnsop

Reply via email to