I assure you, you are wrong! Just check the straces will you ;-) Besides i did create a perl script and test your theory as that was my first suspicion...
The problem is definately caused by slapd. The real question is why does java check with LDAP first when no other apps do that by default (and my nsswitch.conf defaults to dns then ldap) Best regards, Ole Christian Rynning *proof* [EMAIL PROTECTED]:~# cat mongo.pl #!/usr/bin/perl use IO::Socket; my($a)=inet_ntoa((gethostbyname($ARGV[0]))[4]); print "$a\n"; [EMAIL PROTECTED]:~# ./mongo.pl mongo.pl Usage: Socket::inet_ntoa(ip_address_sv) at ./mongo.pl line 3. [EMAIL PROTECTED]:~# ./mongo.pl debian.org 192.25.206.10 [EMAIL PROTECTED]:~# su oc [EMAIL PROTECTED]:/root$ ./mongo.pl userland.org 199.181.107.181 Jeroen van Wolffelaar wrote: >On Tue, Sep 20, 2005 at 12:51:43AM +0200, Jeroen van Wolffelaar wrote: > > >>To be honest, I wouldn't know how to most easily invoke gethostname(2) from >>the command-line to test... >> >> > >Well, try 'getent hosts foo.example.com', both as root and non-root. getent is >part of libc6, and is the userland tool to do nss queries. > >--Jeroen > > > -- A | c/o Marie Eikrem, Fagerborggt 48A, NO-0360 OSLO M | +47 411 44 384 W | http://www.foo.mu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]