Script on Solaris 8

From: rmckee (rmckeever@earthlink.net)
Date: Wed Nov 20 2002 - 17:27:01 EST


Hello,

I have an nslookup script that reads in a file with ip address, then spits its
results to another file.
I know about using -sil, but I also want to suppress the Server:/Address:
stuff and only display Non-authoritative.
Example:

# nslookup -sil 12.251.129.189
Server: 111.111.111.111
Address: 111.111.111.111#22
 
Non-authoritative answer:
189.129.251.12.in-addr.arpa name = 12-251-129-189.client.attbi.com.
 
Authoritative answers can be found from:
251.12.in-addr.arpa nameserver = ns1.attbi.com.
251.12.in-addr.arpa nameserver = ns2.attbi.com.
ns1.attbi.com internet address = 204.127.198.4
ns2.attbi.com internet address = 216.148.227.68
 
#

So, I would like it to look like this in my log:

12.251.129.189:
189.129.251.12.in-addr.arpa name = 12-251-129-189.client.attbi.com.

(next IP, etc....)
222.252.222.222:
189.129.251.12.in-addr.arpa name = 12-251-129-189.client.attbi.com.

Thanks, upfront.

RM
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:19 EDT