Re: nslookup enhancements for NSAP lookup
"Peder Chr. Norgaard" <pcn@tbit.dk> writes:
I hereby forward a set of enhancements to the nslookup program for easier lookup of NSAP addresses in DNS.
For those of you who use the ``host'' utility: Similar nsap support has been incorporated in ``host'' as per version 940917. See below for a few examples. [Note that this is the contrib/host, not the tools/host, as distributed with BIND. Apart from being a DNS query tool, this utility does syntax and semantics analysis of the retrieved data on the fly. Several features have been added since the version currently present in BIND.] The latest version can be retrieved via anonymous ftp from ``ftp.nikhef.nl'' in directory ``/pub/network'' as ``host.tar.Z'' or ``host_940917.tar.Z''. (Apologies if you receive this message more than once.) -- Eric Wassenaar [] host -V Version 940917 # Fetch the nsap address of the specified host. [] host -t nsap cursive.nsap.nist.gov cursive.nsap.nist.gov NSAP 0x47.0005.8000.5A00.0000.0001.E133.FFFF.FF00.0171.00 # Do the reverse lookup. 0x prefix and dots are optional. # The reverse name is printed in forward notation by default. [] host -n 0x47.0005.8000.5A00.0000.0001.E133.FFFF.FF00.0171.00 47.0005.8000.5A00.0000.0001.E133.FFFF.FF00.0171.00 PTR cursive.nsap.nist.gov # In verbose mode we see what we are actually doing. [] host -v -n 0x47.0005.8000.5A00.0000.0001.E133.FFFF.FF00.0171.00 Query about 0.0.1.7.1.0.0.0.F.F.F.F.F.F.3.3.1.E.1.0.0.0.0.0.0.0.0.0.A.5.0.0.0.8.5.0.0.0.7.4.nsap.int. for record types PTR Trying 0.0.1.7.1.0.0.0.F.F.F.F.F.F.3.3.1.E.1.0.0.0.0.0.0.0.0.0.A.5.0.0.0.8.5.0.0.0.7.4.nsap.int ... Query done, 1 answer, status: no error The following answer is not authoritative: 47.0005.8000.5A00.0000.0001.E133.FFFF.FF00.0171.00 3561 IN PTR cursive.nsap.nist.gov Authoritative nameservers: 47.0005.8000.5a00 281735 IN NS wolf.ncsl.nist.gov Additional information: wolf.ncsl.nist.gov 66686 IN A 129.6.55.3 wolf.ncsl.nist.gov 66686 IN A 129.6.224.3 # Make a zone listing of a reverse mapping domain. [] host -t any -l -n 0x47.0005.8000.5A00 !!! 0.0.A.5.0.0.0.8.5.0.0.0.7.4.nsap.int has only one nameserver wolf.ncsl.nist.gov 47.0005.8000.5A00 SOA wolf.ncsl.nist.gov. root.wolf.ncsl.nist.gov. ( 1994081700 ;serial (version) 1800 ;refresh period 300 ;retry refresh time 604800 ;expiration period 3600 ;default ttl ) 47.0005.8000.5a00 NS wolf.ncsl.nist.gov. 47.0005.8000.5a00.0000.0001.0002.0000.0c01.1748.00 PTR sura-cgw.nsap.nist.gov. 47.0005.8000.5a00.0000.0001.0002.0000.9300.c4f0.00 PTR pgw48.nsap.nist.gov. 47.0005.8000.5a00.0000.0001.e137.ffff.ff00.0164.00 PTR infidel.nsap.nist.gov. 47.0005.8000.5a00.0000.0001.e133 NS wolf.ncsl.nist.gov. # The same, but force the output to be in full zone file format. [] host -t any -lZ -n 0x47.0005.8000.5A00 !!! 0.0.A.5.0.0.0.8.5.0.0.0.7.4.nsap.int has only one nameserver wolf.ncsl.nist.gov 0.0.A.5.0.0.0.8.5.0.0.0.7.4.nsap.int. 3600 IN SOA wolf.ncsl.nist.gov. root.wolf.ncsl.nist.gov. ( 1994081700 ;serial (version) 1800 ;refresh period 300 ;retry refresh time 604800 ;expiration period 3600 ;default ttl ) 0.0.a.5.0.0.0.8.5.0.0.0.7.4.NSAP.INT. 3600 IN NS wolf.ncsl.nist.gov. 0.0.8.4.7.1.1.0.c.0.0.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.0.0.a.5.0.0.0.8.5.0.0.0.7.4.NSAP.INT. 3600 IN PTR sura-cgw.nsap.nist.gov. 0.0.0.f.4.c.0.0.3.9.0.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.0.0.a.5.0.0.0.8.5.0.0.0.7.4.NSAP.INT. 3600 IN PTR pgw48.nsap.nist.gov. 0.0.4.6.1.0.0.0.f.f.f.f.f.f.7.3.1.e.1.0.0.0.0.0.0.0.0.0.a.5.0.0.0.8.5.0.0.0.7.4.NSAP.INT. 3600 IN PTR infidel.nsap.nist.gov. 3.3.1.e.1.0.0.0.0.0.0.0.0.0.a.5.0.0.0.8.5.0.0.0.7.4.NSAP.INT. 3600 IN NS wolf.ncsl.nist.gov. # How to distinguish between dotted quads and nsaps. [] host -i 192.16.199.1 1.199.16.192.in-addr.arpa PTR nikhefh.nikhef.nl [] host -n 192.16.199.1 Invalid nsap address 192.16.199.1 [] host -i 192.16.199.80 80.199.16.192.in-addr.arpa PTR hef-router.nikhef.nl [] host -n 192.16.199.80 0.8.9.9.1.6.1.2.9.1.nsap.int does not exist (Authoritative answer)
participants (1)
-
e07@nikhef.nl