need some help to setup nslookup
Denis Vlasenko
vda.linux at googlemail.com
Fri Jul 27 12:24:48 UTC 2007
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