http://qa.mandrakesoft.com/show_bug.cgi?id=409
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.3.1-10mdk |2.3.2-4mdk
------- Additional Comments From [EMAIL PROTECTED] 2003-01-07 17:11 -------
This bug has been automatically updated to last version of product available.
Please check if it is still valid.
--
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: NEW
creation_date:
description:
The getaddrinfo function within glibc seems to be working badly with respect to
hosts vs dns lookup.
I have an /etc/host.conf file which has the
hosts,bind
which I read to tell the system to use the /etc/hosts file first and only then
go to the net nameservers. Using ssh , which uses the getaddrinfo routine, with
a hostname which is in the /etc/hosts file,
getaddrinfo reads /etc/host.conf, opens the /etc/hosts file, and then goes to
/etc/resolv.conf and requests the DNS info from the nameservers. If these time
out, it then goes back again to the hosts file and gets the address from there.
This seems to me to be a silly procedure.
In summary, with the hosts,bind entry in /etc/host.conf, why is the getaddrinfo
going to to bind to resolv the name, when it is there already in /etc/hosts?
Note that gethostbyname() works properly.
( Note that the /etc/host.conf file does have
multi on
but according to the docs, that should only return all addresses listed in
/etc/hosts, not go searching on the net as well.)