Bug 8241

Summary: nslookup: prarameter [server] is not useful -- it always sends query to ISP DNS
Product: Busybox Reporter: Snoopy.Xiao <xiaosong8584>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED DUPLICATE    
Severity: normal CC: andrei, busybox-cvs
Priority: P5    
Version: 1.17.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: nslookup failed log (strace)

Description Snoopy.Xiao 2015-07-27 08:59:10 UTC
1>I have build and tested nslookup(busybox1.17.2) on fedora15(glibc-2.17-20.fc19.i686) it works well

2>when I cross build it in embeded environment(kernel3.4+uclibc0.9.29),
prarameter [server] of nslookup seems unuseful, it always sends query to ISP DNS.(from /etc/resolv.conf),  instead of the dns server specified in command line.

I'am not sure if busybox compatible with uclibc library.
attachment is a log of command "./strace /bin/nslookup www.baidu.com 1.1.1.1"
Comment 1 Snoopy.Xiao 2015-07-27 09:00:45 UTC
Created attachment 6126 [details]
nslookup failed log (strace)
Comment 2 Snoopy.Xiao 2015-07-27 10:27:06 UTC
Fix: the embeded environment(kernel3.4.11 +uclibc0.9.32)
Comment 3 Andrei Gherzan 2016-10-24 13:13:08 UTC
I reproduced this on BusyBox v1.25.1 and BusyBox v1.23.1 .
Comment 4 Andrei Gherzan 2016-10-24 13:15:53 UTC
Forgot to say that this was reproduced with GNU C Library (GNU libc) stable release version 2.21
Comment 5 Andrei Gherzan 2016-10-26 11:02:37 UTC
Duplicated of https://bugs.busybox.net/show_bug.cgi?id=8241

*** This bug has been marked as a duplicate of bug 675 ***
Comment 6 Andrei Gherzan 2016-10-26 11:03:14 UTC
Obviously i meant: https://bugs.busybox.net/show_bug.cgi?id=675. Sorry for the typo.