In message <alpine.osx.2.11.1611211518410.20...@ary.qy>, "John R Levine" wri
tes:
> > .localhost and .homenet don't have the escape to a different protocol
> > and any error from the DNS will do for those not worried about a
> > clean solution.  These namespace are intended to be looked up in
> > the DNS with local content.
> 
> Well, maybe.  On my computer, and on pretty much every computer running 
> some flavor of Unix or Linux, localhost comes from /etc/hosts and never 
> hits the DNS.

"telnet foo.localhost" and look at your DNS server's logs.  I'm
willing to bet you will see a lookup for foo.localhost/A and with
high probability foo.localhost/AAAA.

"localhost" will likely be looked up in /etc/hosts after trying
every localhost.<search-list-element> in the DNS and before attempting
"localhost" in the DNS if it is missing from /etc/hosts.  This is
only for A and AAAA lookups.  Anything else which looks for something
other than A or AAAA will hit the DNS.

Mark
 
> Regards,
> John Levine, jo...@taugh.com, Taughannock Networks, Trumansburg NY
> Please consider the environment before reading this e-mail. https://jl.ly
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: ma...@isc.org

_______________________________________________
DNSOP mailing list
DNSOP@ietf.org
https://www.ietf.org/mailman/listinfo/dnsop

Reply via email to