[Bug 675] New: nslookup does not properly use second argument [SERVER]
bugzilla at busybox.net
bugzilla at busybox.net
Wed Oct 21 16:52:42 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=675
Build: mips, 2009-10-04
Summary: nslookup does not properly use second argument [SERVER]
Product: Busybox
Version: 1.15.x
Platform: Other
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Networking
AssignedTo: unassigned at busybox.net
ReportedBy: dimedrol at sviblovo.ru
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
BusyBox v1.15.1 (2009-10-04 18:20:08 MSD) multi-call binary
hardware is Asus wifi router wl-500g premium.
$ cat /proc/cpuinfo
system type : Broadcom BCM4704 chip rev 9 pkg 0
cpu model : BCM3302 V0.6
BogoMIPS : 263.78
...
firmware is from http://code.google.com/p/wl500g/
$ uname -a
Linux my-test-router 2.4.37.6 #1 2009-10-04 18:23:22 MSD mips GNU/Linux
nslookup syntax is
$ nslookup
BusyBox v1.15.1 (2009-10-04 18:20:08 MSD) multi-call binary
Usage: nslookup [HOST] [SERVER]
Query the nameserver for the IP address of the given HOST
optionally using a specified DNS server
-------
For my tasks i need use the second argument [SERVER], for example:
nslookup www.ru 87.240.1.1
then nslookup show
Server: 87.240.1.1
Address 1: 87.240.1.1 ns1.qwerty.ru
Name: www.ru
Address 1: 194.87.0.50 www.ru
Looks as if it uses the second argument.
But really the SERVER argument (87.240.1.1) is not used for dns lookups. It is
seen from any sniffer, for example in tcpdump.
I run tcpdump on my internet router:
# tcpdump -nnpi eth0 port 53
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
20:34:08.430492 IP 10.101.251.9.1073 > 10.101.251.1.53: 2+ PTR?
1.1.240.87.in-addr.arpa. (41)
20:34:08.433413 IP 10.101.251.1.53 > 10.101.251.9.1073: 2 1/0/0 PTR
ns1.qwerty.ru. (68)
20:34:08.436927 IP 10.101.251.9.1073 > 10.101.251.1.53: 3+ AAAA? www.ru. (24)
20:34:08.438834 IP 10.101.251.1.53 > 10.101.251.9.1073: 3 0/0/0 (24)
20:34:08.439783 IP 10.101.251.9.1073 > 10.101.251.1.53: 4+ A? www.ru. (24)
20:34:08.455562 IP 10.101.251.1.53 > 10.101.251.9.1073: 4 1/0/0 A 194.87.0.50
(40)
20:34:08.458001 IP 10.101.251.9.1073 > 10.101.251.1.53: 5+ PTR?
50.0.87.194.in-addr.arpa. (42)
20:34:08.473415 IP 10.101.251.1.53 > 10.101.251.9.1073: 5 1/0/0 PTR www.ru.
(62)
-----------------
10.101.251.9 - is host with busybox
10.101.251.1 - is main router
It show that dns server 10.101.251.1 (from system /etc/resolv.conf) is used
instead one in command line (87.240.1.1).
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list