[Buildroot] DNS resolv issue with localhost

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jul 5 19:04:37 UTC 2011


Le Tue, 05 Jul 2011 14:28:03 +0200,
Jigar SOLANKI <jigar.solanki at labri.fr> a écrit :

> Problem SOLVED :
> I was missing the nsswitch.conf file in /etc, so the resolv order was
> wrong (nslookup localhost was requesting the dns server in
> /etc/resolv.conf whereas it should have beeb /etc/hosts)
> I just added a nsswitch.conf from an another correctly running linux.

So you're using a glibc-based system, right ? If so, maybe we should
add this nsswitch.conf file to the default Buildroot and make sure it
gets installed when a glibc toolchain is used.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list