Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 198011

Summary: net-dns/bind default 127.zone configuration incorrect
Product: Gentoo Linux Reporter: Rajiv Aaron Manglani (RETIRED) <rajiv>
Component: New packagesAssignee: Konstantin Arkhipov (RETIRED) <voxus>
Status: RESOLVED FIXED    
Severity: major CC: bind+disabled, dertobi123
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2007-11-04 02:07:10 UTC
bug #15637 made two changes to the reverse dns zone for 127.0.0.0:

the zone was changed from "0.0.127.in-addr.arpa" to "127.in-addr.arpa"

and the zone data was changed from:
1               1D IN PTR localhost. 
to 
*               1D IN PTR localhost.


the first change was correct since the reverse zone is actually 127.0.0.0/8
and not 127.0.0.0/24. without that change, any queries for addresses in
127.0.0.0/8 not in 127.0.0.0/24 go to the root servers.

however the second change is not needed. eg:

dig PTR 1.0.0.127.dnsbugtest.1.0.0.127.in-addr.arpa.
dig PTR 2.0.0.127.in-addr.arpa.

both return "localhost." with the "*" zone when clearly those names should
not resolve. only 127.0.0.1 should resolve to localhost. since the only
address for localhost. is 127.0.0.1.

changing the "127.zone" file back to:

1               1D IN PTR localhost. 

fixes this problem. this fix is required for wide-area dns service discovery
via mDNSResponder.
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2008-05-03 18:21:58 UTC
This is fixed in CVS. Thanks for reporting!