https://qa.mandrakesoft.com/show_bug.cgi?id=409
------- Additional Comments From [EMAIL PROTECTED] 2003-02-07 18:20 ------- This bug is still valid. ------- 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.)
