Which C library do you use? Did you setup /etc/hosts.conf correctly? It should look like this: --- order hosts, bind multi on ---
If you use glibc you shold add 'dns' to /etc/nsswitch.conf file like that: --- ... hosts: files dns networks: files dns ... --- This will tell glibc to look for hostnames in /etc/hosts and via dns. Additionally glibc needs the two libraries libresolv and libnss_dns for this setting to work! Good luck Eberhard