This is pretty simple really. The default BIND configuration only responds to 127.0.0.1 as localhost, and lets anything else go all the way to the root nameservers. In fact, BIND should be configured so that 127.* is localhost. To fix, change 2 files... /etc/bind/named.conf, change the line: zone "0.0.127.in-addr.arpa" IN { to zone "127.in-addr.arpa" IN { and in the file /var/bind/pri/127.0.0, change: $ORIGIN 0.0.127.in-addr.arpa. to $ORIGIN 127.in-addr.arpa. and the last line: 1 1D IN PTR localhost. to * 1D IN PTR localhost.
Created attachment 8247 [details, diff] Diff against named.conf This is a diff against ${FILESDIR}/named.conf. It changes the lines I mentioned in the original report as well as changes the file looked at for the 127.in-addr stuff to 127 instead of 127.0.0. Applies against bind-9.2.2_rc1-r1.
Created attachment 8248 [details, diff] 127.0.0 patch Here's a patch to apply against ${FILESDIR}/127.0.0. It fixes the $ORIGIN line and the last line of the file (changes the 1 to a *).
Created attachment 8249 [details, diff] ebuild patch This patch applies against the bind-9.2.2_rc1-r1 ebuild itself. Changes 1 line. The ebuild will now insert a file called 127 instead of 127.0.0.
As you see, I supplied 3 patches to fix this. (I prefer small seperate patches to big ones, sorry.) The only thing I didn't do was supply a new file called 127 itself... just apply the 127.0.0 patch and rename the patched file.
bind-9.2.2-rc1-r2 is now in portage with your suggested changes. Thanks for noticing the finer details :)