BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000907 [BusyBox] New Features minor always 06-16-06 20:55 06-17-06 03:34
Reporter zenon View Status public  
Assigned To BusyBox
Priority normal Resolution won't fix  
Status closed   Product Version 1.00
Summary 0000907: More scriptable nslookup
Description It would be nice if the output used unique tags. As it is, "Address" is used twice and that complicates scripting:

root@OpenWrt:~# nslookup www.busybox.net 166.70.99.138
Server: codepoet.org
Address: 166.70.99.138

Name: www.busybox.net
Address: 140.211.166.41

Something like
IP=`nslookup www.busybox.net 81.169.159.148 |grep Address |sed 's/Address: *//'`
ends up with $IP containing the server's address. Substituting "Server IP" for the first "Address" would simplify life and increase usability.
 
(BTW, while creating the sample output above, I noticed that your primary name server has no PTR record:
$ host 166.70.154.59
Host 59.154.70.166.in-addr.arpa not found: 2(SERVFAIL)
)

Additional Information
Attached Files

- Relationships

- Notes
(0001429)
bernhardf
06-17-06 03:34

No, this would just increase the size needlessly.

Better fix your script:
./busybox nslookup www.busybox.net 166.70.99.138 | ./busybox sed -e '1,/^Name/d;s/Address:[ \t]*//'
140.211.166.41
 

- Issue History
Date Modified Username Field Change
06-16-06 20:55 zenon New Issue
06-16-06 20:55 zenon Status new => assigned
06-16-06 20:55 zenon Assigned To  => BusyBox
06-17-06 03:34 bernhardf Status assigned => closed
06-17-06 03:34 bernhardf Note Added: 0001429
06-17-06 03:34 bernhardf Resolution open => won't fix


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker