VMS Help TCPIP Services, NSLOOKUP, Listing Domain Information *Conan The Librarian (sorry for the slow response - running on an old VAX) |
The ls command lists information about a domain. This command is useful for: o Determining the number of hosts within a domain o Hostnames and their IP addresses o Troubleshooting DNS problems Table 1-3 Options to the NSLOOKUP ls Command Option Function -a Lists aliases of hosts in the domain (CNAME entries) -d Lists all the entries in the domain -h Lists CPU and operating system information for the domain (HINFO entries) -m Lists mail exchangers (MX) entries in the domain -s Lists well known services (WKS) in the domain -t Lists a specified entry type The following examples shows the use of the ls command to obtain address records for all hosts within a zone. > ls -t a lgk.dec.com [condor.lgk.dec.com] @ 12H IN A 16.99.208.208 dhcp-253 12H IN A 16.99.208.253 ucxv4a 12H IN A 16.99.208.129 beavis 12H IN A 16.99.208.90 boxmor 12H IN A 16.99.208.30 kempo 12H IN A 16.99.208.47 pacnet 12H IN A 16.99.208.84 kwai 12H IN A 16.99.208.63 alxica 12H IN A 16.99.9.37 ppponvms 12H IN A 16.99.208.104 a71kt 12H IN A 16.99.208.142 peteathome 12H IN A 16.99.208.101 larisa 12H IN A 16.99.208.49 pigdog 12H IN A 16.99.208.140 ntruder 12H IN A 16.99.208.110 In the following example, the ls command displays alias records for hosts within the lgk.dec.com domain. > ls -a lgk.dec.com [condor.lgk.dec.com] $ORIGIN LGK.DEC.COM. celics 12H IN CNAME celtics news 12H IN CNAME nntpd.KLG.DEC.COM. tiger 12H IN CNAME ntruder console 12H IN CNAME bblts.KLG.DEC.COM. deebug 12H IN CNAME dot ayla 12H IN CNAME ayla.KLG.DEC.COM. cscibm 12H IN CNAME cscibm.KLG.DEC.COM. > Using the -m option obtains the MX records for hosts within the lgk.dec.com domain which the following example shows. > ls -m lgk.dec.com brigit 12H IN MX 10 brigit 12H IN MX 100 mail1.digital.com. 12H IN MX 100 mail2.digital.com. 12H IN MX 200 crl.DEC.com. piglet 12H IN MX 10 piglet 12H IN MX 100 mail1.digital.com. 12H IN MX 100 mail2.digital.com. 12H IN MX 200 crl.DEC.com. tieta 12H IN MX 10 tieta 12H IN MX 100 mail1.digital.com. 12H IN MX 100 mail2.digital.com. 12H IN MX 200 crl.DEC.com. sherry 12H IN MX 10 sherry 12H IN MX 100 mail1.digital.com. 12H IN MX 100 mail2.digital.com. 12H IN MX 200 crl.DEC.com. In the following example, using the -s option displays the well known services for a domain. > ls -s lgk.dec.com [condor.lgk.dec.com] WKStesthave 12H IN WKS 16.99.208.255 21 ( ) WKStesthavenot 12H IN WKS 16.99.208.255 255 ( ) WKStestnumbers 12H IN WKS 16.99.208.255 255 ( 21 23 ) You can redirect the output from this command to a file which is helpful when the domain consists of a large number of hosts. Once the file is created, you can look at its contents with the DCL TYPE command. > ls -t a klg.dec.com > systems.txt [condor.klg.dec.com] ############# Received 932 answers (0 records). $ TYPE SYSTEMS.TXT > ls -t a klg.dec.com [condor.klg.dec.com] $ORIGIN KLG.DEC.COM. @ 12H IN A 16.99.208.208 dhcp-253 12H IN A 16.99.208.253 ucxv4a 12H IN A 16.99.208.129 beavis 12H IN A 16.99.208.90 boxmor 12H IN A 16.99.208.30 kempo 12H IN A 16.99.208.47 pacnet 12H IN A 16.99.208.84 kwai 12H IN A 16.99.208.63 alxica 12H IN A 16.99.9.37 ppponvms 12H IN A 16.99.208.104
|