bind listens on 127.0.0.1:53 rather than *:53

Bug #669751 reported by Tim Nicholas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bind9 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: bind9

Bind appears to be listening on specific addresses rather than on all interfaces. This wouldn't be a problem except that on modern Ubuntu systems the local host name is configured in /etc/hosts to by on 127.0.1.1 rather than the same IP as localhost (127.0.1.1).

root@hostname:~# netstat -nlp | grep named
tcp 0 0 192.168.1.71:53 0.0.0.0:* LISTEN 30752/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 30752/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 30752/named
udp 0 0 192.168.1.71:53 0.0.0.0:* 30752/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 30752/named
root@hostname:~#

The net result of this is that this command will fail ("Connection timeout; no servers could be reached") on a normal install of ubuntu with a bind9 install:

$ dig @`hostname` <any host name>

Whereas it should behave the same as:

$ dig @localhost <any host name>

I don't understand the motivation that Ubuntu had for setting '127.0.1.1 hostname hostname.domain' in /etc/hosts but given that it does, all daemons need to support it.

Revision history for this message
James Page (james-page) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
 apport-collect 669751
When reporting bugs in the future please use apport, using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in bind9 (Ubuntu):
status: New → Incomplete
Revision history for this message
Tim Nicholas (tjn) wrote :

apport-collect doesn't seem to respect $http_proxy which is a bit lame... At least I assume that's the problem. I get this:

Error connecting to Launchpad: 'NoneType' object has no attribute 'makefile'

Anyway, apport file attached.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for bind9 (Ubuntu) because there has been no activity for 60 days.]

Changed in bind9 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.