Your message dated Sun, 13 May 2007 17:44:20 +0200
with message-id <[EMAIL PROTECTED]>
and subject line dig and host are for DNS, not the NSS hosts database
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: bind
Version: 9.2.4rc5

When I execute dig, nslookup or host in order to lookup '127.0.0.1', it gets requests an answer from an external DNS server, instead of reading /etc/hosts or using bind on the local machine.
Here's a transcript:

[EMAIL PROTECTED] bind]$ dig -x 127.0.0.1

; <<>> DiG 9.2.4rc5 <<>> -x 127.0.0.1
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51580
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa.                IN      PTR

;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 28800   IN      PTR     localhost.

;; AUTHORITY SECTION:
0.0.127.in-addr.arpa.   28800   IN      NS      ns1-wol.blueyonder.net.

;; ADDITIONAL SECTION:
ns1-wol.blueyonder.net. 28800   IN      A       62.31.176.39

;; Query time: 174 msec
;; SERVER: 62.31.176.39#53(62.31.176.39)
;; WHEN: Mon Sep 13 15:52:08 2004
;; MSG SIZE  rcvd: 115

[EMAIL PROTECTED] bind]$ nslookup 127.0.0.1
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         62.31.176.39
Address:        62.31.176.39#53

1.0.0.127.in-addr.arpa  name = localhost.

[EMAIL PROTECTED] bind]$

Contents of /etc/hosts :
127.0.0.1       gw      localhost
10.0.0.2        slartibartfast  10.2
10.0.0.3        zaphod  10.3
10.0.0.4        smeghead        10.4
10.0.0.5        apricot         10.5
10.0.0.6        mikes   10.6
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Contents of /etc/nsswitch.conf :
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


Contents of /etc/host.conf :
order hosts,bind
multi on


This issue is present on 3 different machines, running Sarge.


--- End Message ---
--- Begin Message ---
I'm sorry but your reports are based on a misunderstanding.  As
documented in their manual pages, dig and host are DNS tools.  They do
not use NSS, so they ignore the NSS databases.

To query the NSS hosts database, use "getent hosts".

--- End Message ---

Reply via email to