[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#396633: libc6: gethostbyname ignores "order bind,hosts" line in /etc/host.conf



Package: libc6
Version: 2.3.2.ds1-22sarge4
Severity: important


gethostbyname seems to ignore the "order" line in my /etc/host.conf.

I got my machine name both in DNS and /etc/hosts.
My hosts file reads:
127.0.0.1      localhost
192.168.1.1    mybox.mynet.prv
 I got a few more lines with the preconfigured standard IPV6 addresses that I dont think matter in here.

The DNS is also configured to link mybox.mynet.prv to an external address, lets say its 1.2.3.4

My host.conf file says:
order bind,hosts
multi on

The spected result is that when I use gethostbyname with mybox.mynet.prv
I should get 1.2.3.4 as a resply, but Im getting 192.168.1.1

If i remove the 192.168.1.1 line from /etc/hosts then I get the spected
result when using gethostbyname (1.2.3.4)



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.18.1
Locale: LANG=es_ES@euro, LC_CTYPE=es_ES@euro (charmap=ISO-8859-15)

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information



Reply to: