From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98) Description of problem: Using telnet or ssh to a host which is named in /etc/hosts causes the client to perform a DNS lookup for the name. This includes "localhost". host.conf says "order hosts, bind"; nsswitch.conf says for hosts: "files nisplus dns". /etc/hosts says "127.0.0.1 localhost.localdomain localhost". strace and ltrace tell me that it's using lib_files, then lib_nisplus, then lib_dns. When I take dns out of nsswitch, it resolves quickly. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.type "telnet localhost" - takes a long time to respond 2.copy telnet from (say) mandrake 7.2, same command comes back straight away 3. Actual Results: slow lookup with DNS traffic for entries in /etc/hosts Expected Results: instant lookup for entries in /etc/hosts Additional info:
*** This bug has been marked as a duplicate of 57998 ***