bind listens on 127.0.0.1:53 rather than *:53
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.
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: /wiki.ubuntu. com/ReportingBu gs.
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:/