Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198011 - net-dns/bind default 127.zone configuration incorrect
Summary: net-dns/bind default 127.zone configuration incorrect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-04 02:07 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2008-05-03 18:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!