Help: DNS Resolver and Root Shell

Hui Li openlinuxsource at gmail.com
Tue Oct 22 15:43:02 UTC 2013


On Tue, 2013-10-22 at 17:31 +0200, Denys Vlasenko wrote:
> On Tue, Oct 22, 2013 at 3:55 PM, Hui Li <openlinuxsource at gmail.com> wrote:
> > On Mon, 2013-10-21 at 19:52 +0200, Denys Vlasenko wrote:
> >> On Mon, Oct 21, 2013 at 5:15 PM, Hui Li <openlinuxsource at gmail.com> wrote:
> >> > I created /etc/nsswitch.conf but seems still failed.
> >>
> >> Please post your /etc/nsswitch.conf,
> >> /etc/hosts
> >> and /etc/resolv.conf
> > /etc/nsswitch.conf:
> >
> > passwd:     files
> > shadow:     files
> > group:      files
> >
> > hosts:      files dns
> >
> > bootparams: nisplus [NOTFOUND=return] files
> >
> > ethers:     files
> > netmasks:   files
> > networks:   files
> > protocols:  files
> > rpc:        files
> > services:   files
> >
> > netgroup:   nisplus
> >
> > publickey:  nisplus
> >
> > automount:  files nisplus
> > aliases:    files nisplus
> 
> 
> Do you have /etc/hosts?
> 
Yes.
127.0.0.1       localhost
And I will get following error by hostname:
root at localhost:~# hostname -f
hostname: localhost: Resolver internal error
root at localhost:~# hostname
localhost
> If not, "ping localhost" will try to resolve "localhost" name via DNS.
> 
> 
> > /etc/resolv.conf:
> > nameserver 8.8.8.8
> 
> Is 8.8.8.8  a correct IP of your DNS server?
8.8.8.8 is Google's DNS server. I can ping it successfully.

Thanks.




More information about the busybox mailing list