From: Lionel Orry <lionel.orry@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] DNS resolv issue with localhost
Date: Fri, 21 Sep 2012 08:38:36 +0000 (UTC) [thread overview]
Message-ID: <loom.20120921T103525-82@post.gmane.org> (raw)
In-Reply-To: 20110705210437.47fd7806@skate
Thomas Petazzoni <thomas.petazzoni@...> writes:
>
> 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
I just ran into the exact same problem, and here is a links to a LFS manual
stating the problem as well :
http://archive.linuxfromscratch.org/lfs-museum/4.1/LFS-BOOK-4.1-HTML/chapter06/glibc.html#AEN2505
So yes I think that should be good to ship nsswitch.conf.
For information, I used the nsswitch.conf file found in my external toolchain
sysroot that was re-created under buildroot, in my case it was at
<buildroot_path>/output/host/usr/sh4-unknown-linux-gnu/sysroot/etc/nsswitch.conf
Kind regards,
Lionel
prev parent reply other threads:[~2012-09-21 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 22:42 [Buildroot] DNS resolv issue with localhost Jigar SOLANKI
2011-07-05 12:28 ` Jigar SOLANKI
2011-07-05 19:04 ` Thomas Petazzoni
2012-09-21 8:38 ` Lionel Orry [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20120921T103525-82@post.gmane.org \
--to=lionel.orry@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox