https://bugzilla.novell.com/show_bug.cgi?id=435261 Summary: "getent hosts something.local" has long delay Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: syseng@adnovum.ch QAContact: qa@suse.de Found By: --- Is the toplevel .local somewhere hardcoded in the name service switch, getent or cache daemon? There is a strange behaviour when using "getent hosts" with a local domain in /etc/hosts. It seems to ignore the query order defined in /etc/nsswitch.conf and searches DNS. It produces a long delay until the answer appears Compare the query times for toplevel domain .local and .lokus: # time getent hosts something.local 123.123.123.123 something.local real 0m15.015s user 0m0.000s sys 0m0.004s # time getent hosts something.lokus 231.231.231.231 something.lokus real 0m0.004s user 0m0.000s sys 0m0.004s # time getent hosts 127.0.0.1 localhost.localdomain localhost 123.123.11.88 myhost.example.com myhost 123.123.123.123 something.local 231.231.231.231 something.lokus real 0m0.003s user 0m0.004s sys 0m0.000s An strace of getent shows that it first contacts nscd socket, waits for 5 seconds and then opens nsswitch.conf. This 3 times. It happens on Suse 10.1 and Suse 11.0. When removing "dns" from /etc/nsswitch.conf, then the answer comes immediately. I checked it also on Solaris and there both domains are handled identically, so it's rather a bug than a feature. I'll attach straces of the getent queries. Configuration: # cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 123.123.11.88 myhost.example.com myhost 123.123.123.123 something.local 231.231.231.231 something.lokus # cat /etc/nsswitch.conf passwd: files ldap group: files ldap hosts: files dns networks: files services: files protocols: files rpc: files ethers: files netmasks: files netgroup: files ldap publickey: files bootparams: files automount: files ldap aliases: files # cat /etc/resolv.conf: nameserver 123.123.11.99 nameserver 123.123.22.88 nameserver 123.123.33.77 domain example.com search example.com my.example.com options ndots:1 Best regards, Bernd Nies -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.