On 17.03.2013 03:12, Bob Proulx wrote: > Sven Uhlig wrote: >> Bob Proulx wrote: >>>> The problem is that "su" takes 25 seconds before it >>>> succeeds. >>> >>> That sounds like a DNS timeout. If you do a dns lookup of your >>> systems hostname does it respond? >> >> # nslookup baldur ** server can't find baldur: NXDOMAIN >> >> # nslookup baldur.asgard ** server can't find baldur.asgard: >> NXDOMAIN > > Unfortunately nslookup only looks at DNS. It is a DNS tool and > does not follow /etc/nsswitch.conf for looking at other locations > such as the /etc/hosts file. It is the reason I use the libc tool > 'getent' to use the libc lookup routine and do whatever is > configured. > > getent baldur.asgard >
That is why I used C's getnameinfo(). How should getent work? # getent baldur.asgard Unknown database: baldur.asgard # getent -V getent (Debian EGLIBC 2.13-38) 2.13 Nevermind, my problem is solved, see mail by Clive Standbridge. :) >> # ping baldur PING baldur.asgard (127.0.1.1) 56(84) bytes of >> data. > > See that ping does do the lookup and does find the address okay. > But although I know that many people use ping for a lookup tool > that is really only a side effect of the primary purpose of ping. I know but it is very convenient. > That long delay in sudo with dns broken is why I suspected a > problem with your 'su' delay and was thinking it might be similar. It is a network thing. $DISPLAY was set to 10.0.2.2:0 where it should have been localhost:10.0 >> In the output of strace I can see that /something/ happens with >> libnss, so DNS lookup. > > Another brainstorm idea. Do you have libnss-mdns installed? As > an experiment try removing it. I doubt you are using it. You can > always install it again. # apt-get purge libnss-mdns Package 'libnss-mdns' is not installed, so not removed > I wish I could be more help. Hopefully someone knowledgeable > about dbus will have help with a solution for it. Well, no help regarding dbus. But regarding X11Forwarding. Thank you for your input! Sven. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/514598ab.7020...@web.de