hosts file is not read

Bug #381623 reported by Petri Rosenström
12
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

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

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).

Revision history for this message
Petri Rosenström (petri-rosenstrom) wrote :

Yes, that was the solution to the problem. I am not using Ubuntu any longer so this isn't a issue for me anymore.

Thanks for the reply

Revision history for this message
Steve Langasek (vorlon) wrote :

The documented syntax of /etc/host.conf, per the host.conf(5) manpage, is to use a comma-separated list of keywords. It sounds like you were using some other software that parses this file incorrectly.

Nothing to fix in base-files.

Changed in base-files (Ubuntu):
status: New → Invalid
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.