hosts file is not read
Bug #381623 reported by
Petri Rosenström
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: base-files
Problem is atleast on ubuntu 9.04. Noticed while using a hosts file and dnsmasq dns and dhcp server. I wanted the DNS-server to reply first based on my hosts file but it didn't read this file it only used the dns servers replies.
Orginal file
cat /etc/host.conf
# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on
How it should be. The comma is not allowed in the configuration, only allowed is # and whitespace.
cat /etc/host.conf
# The "order" line is only used by old versions of the C library.
order hosts bind
multi on
To post a comment you must log in.
Hi Petri, Are you saying removing the comma fixed your problem? /etc/nsswitch.conf exists now to determine the resolver's order, see nsswitch.conf(5).