need some help to setup nslookup
Choi Jason
kbc_hyper at hotmail.com
Fri Jul 27 22:14:11 UTC 2007
You're right.
And I checked return value of getaddrinfo(), it was EAI_NONAME.
But I still don't know clue. :(
Thanks
Jason,
>From: "Denis Vlasenko" <vda.linux at googlemail.com>
>To: "Choi Jason" <kbc_hyper at hotmail.com>
>CC: busybox at busybox.net
>Subject: Re: need some help to setup nslookup
>Date: Fri, 27 Jul 2007 13:24:48 +0100
>
>On 7/25/07, Choi Jason <kbc_hyper at hotmail.com> wrote:
> > Hello All,
> >
> > I think I need your help at this time. :)
> > Now, I tried to use nslookup on my target system.
> > When I compiled busybox, I just turned on Networking Utilities ->
nslookup.
> > And I install this busybox to my target.
> > And I create /etc/resolv.conf.
> > Contents of /etc/resolv.conf is as followings
> > ----------------
> > search abc.net
> > nameserver 4.2.2.1
> > ----------------
> > And I create /etc/hosts as followings
> > ----------------
> > 127.0.0.1 localhost
> > 192.168.6.77 abc.site abc
> > 209.131.36.158 www.yahoo.com
> > ----------------
> >
> > When I tried "nslookup www.google.com", following message is displayed.
> > ----------------
> > # nslookup www.google.com
> > Server : 4.2.2.1
> > Address 1: 4.2.2.1
> >
> > nslookup: can't resolve 'www.google.com'
> > ----------------
> > And when I tried "nslookup www.yahoo.com", following message is
displayed.
> > ----------------
> > #nslookup www.yshoo.com
> > Server: 4.2.2.1
> > Address 1: 4.2.2.1
> >
> > Name: www.yahoo.com
> > Address 1: 209.131.36.158 www.yahoo.com
>
>Enable CONFIG_VERBOSE_RESOLUTION_ERRORS=y, it will give a bit more info:
>
>$ ./busybox nslookup www.sdjhgfklsdjgf.com
>Server: 172.26.128.68
>Address 1: 172.26.128.68 XXXXXXXXXXXXXXX
>
>nslookup: can't resolve 'www.sdjhgfklsdjgf.com': Name or service not known
>
^^^^^^^^^^^^^^^^^^^^^^^^^ here
>
>--
>vda
More information about the busybox
mailing list