bind9-host does not respect /etc/nsswitch.conf

Bug #318828 reported by Deeps on 2009-01-19
2
Affects Status Importance Assigned to Milestone
bind9 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: bind9-host

Description: Ubuntu 8.04.2
Release: 8.04
Package version: bind9-host 1:9.4.2.dfsg.P2-2ubuntu0.1

egrep ^host /etc/nsswitch.conf:
hosts: files dns

`host localhost` times out if no dns servers are reachable, despite:

# head /etc/hosts
127.0.0.1 localhost

this behaviour does not occur with package: host 20000331-9

Ante Karamatić (ivoks) wrote :

Not a bug. That's by design.

Changed in bind9:
status: New → Won't Fix
Mattias Wadenstein (maswan) wrote :

The man page for bind9-host:s host say: "host is a simple utility for performing DNS lookups", and as far as I know it has never supposed to be more than a user friendly alternative to "dig". Since host is there among other things for diagnosing DNS problems, it has its own query and resolve logic, which makes it hard for it to follow nsswitch.conf.

If you want to get the view of what the libc resolver thinks "getent hosts" is a much better idea, and from IRC discussion this started out with a problem with sendmail using "host" instead of "getent host".

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers