Your message dated Sat, 16 May 2009 19:05:42 +0100
with message-id <20090516180542.ga4...@s.cotton.clara.co.uk>
and subject line Re: [libc6] file /etc/nsswitch.conf and /etc/host.conf are not 
used by libc6 !
has caused the Debian Bug report #528957,
regarding [libc6] file /etc/nsswitch.conf and /etc/host.conf are not used by 
libc6 !
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
528957: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528957
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.7-18
Severity: serious
                
        
Problem is about host name resolving.

-> cat /etc/host.conf
order hosts, bind
-> grep host /etc/nsswitch.conf
hosts: files [SUCCESS=return NOTFOUND=continue UNAVAIL=continue 
TRYAGAIN=continue] dns

So if i try a host lookup with a name which is defined in my local
/etc/hosts such as ...
-> grep printer /etc/hosts
192.168.2.3             srvprinter

... then, when lanching ...
-> host srvprinter
srvprinter has address 192.168.2.3
and this is a good answer (!!), but if a make a tcpdump on port 53, i see a
request on the dns server, and this behavior is NOT conform to the order as
defined in either /etc/host.conf or /etc/nsswitch.conf

Furthermore, when launching down my Ethernet interface, (my dns server is no
more available), then i confirm alway this behavior.

In this case, when no network is available, then the same command responds
with a timeout, this behavior is BAD because libc6 must ALWAYS make access
to local ressource (because order...) before launching network access.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable'), (33, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.6.jml.grsec.061-grsec (SMP w/1 CPU core; PREEMPT)
Locale: lang=fr_fr.ut...@euro, lc_ctype=fr_fr.ut...@euro (charmap=ISO-8859-15) 
(ignored: LC_ALL set to
fr_fr.iso-8859...@euro)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1                      1:4.3.2-1.1 GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  glibc-doc                     2.7-18     GNU C Library: Documentation
pn  libc6-i686                    <none>     (no description available)
ii  locales                       2.7-18     GNU C Library: National Language (


Best regards

-- 
--------------------------------------
 -- Jean-Marc LACROIX                 --
  -- mailto : jeanmarc.lacr...@free.fr --
    ---------------------------------------



--- End Message ---
--- Begin Message ---
On Sat, May 16, 2009 at 07:33:36PM +0200, Jean Marc Lacroix wrote:
> -> host srvprinter
> srvprinter has address 192.168.2.3
> and this is a good answer (!!), but if a make a tcpdump on port 53, i see a
> request on the dns server, and this behavior is NOT conform to the order as
> defined in either /etc/host.conf or /etc/nsswitch.conf

Hi Jean,

'host' is a utility, similar to 'nslookup' (deprecated) or 'dig',
used to query DNS servers for domain names and zones. 

/usr/bin/host doesn't use libc's host-resolving functions.  It
always uses DNS, and it can query servers other than the ones that
the system is configured to use by default.

Please try "getent hosts srvprinter" instead, which does use
libc's resolver.

(I'm closing this bug; please reopen it if getent fails).

Regards,
Steve


--- End Message ---

Reply via email to