"Need help to configure DNS on the Embedded system"

Eberhard Stoll eberhard.stoll at berghof.com
Tue May 16 23:36:30 EST 2006


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




More information about the Linuxppc-embedded mailing list