Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!bionet!agate!ucbvax!VM1.NODAK.EDU!NU021172 From: NU021172@VM1.NODAK.EDU (Marty Hoag) Newsgroups: comp.protocols.tcp-ip.domains Subject: Re: Finding hostnames of a domain Message-ID: <9104191818.AA24424@ucbvax.Berkeley.EDU> Date: 18 Apr 91 13:18:08 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: North Dakota Higher Education Computer Network Lines: 56 On Wed, 17 Apr 91 09:09:21 -0400 you said: > >You can usually find out with ls if you ask the right nameserver: ... >> set q=a >> server arizona.edu >Default Server: arizona.edu >Address: 128.196.128.233 > >> ls arizona.edu >[arizona.edu] >Host or domain name Internet address > arizona server = Arizona.EDU > Arizona 128.196.128.233 > Arizona 128.196.128.234 > arizona server = CS.Arizona.EDU > CS 192.12.69.5 > arizona server = pendragon.cs.purdue.edu ... Is it a bug or a feature that this list is almost useless unless you do a set debug . Note on the sample above that the "Host or domain name" field is less than illuminating in most cases! The problem is that nslookup only lists the first element of the name, no matter what the domain is! The system I normally use is not unix but I just stumbled across this. I didn't see it listed in the man pages. Here is the same request with "set debug" on. Note that instead of just "pendragon" which you would have gotten without debug, you see that the entry is really not an arizona entity. > set debug > ls arizona.edu res_mkquery(0, arizona.edu, 1, 252) &arizona.edua Host or domain name Internet address arizona.edu server = Arizona.EDU 86400 Arizona.EDU 128.196.128.233 86400 Arizona.EDU 128.196.128.234 86400 arizona.edu server = CS.Arizona.EDU 86400 CS.Arizona.EDU 192.12.69.5 86400 arizona.edu server = pendragon.cs.purdue.edu 86400 pendragon.cs.purdue.edu 128.10.2.5 120034 arizona.edu 128.196.128.233 86400 arizona.edu 128.196.128.234 86400 wmorgan.peds-pulm.arizona.edu 128.196.164.8 86400 sec1.peds-pulm.arizona.edu 128.196.164.6 86400 ----------- Marty Hoag ND Higher Education Computer Network US Mail: NDSU Computer Center Phone: (701)-237-8639 Fax: (701)-237-7464 PO Box 5164 / UCCS Bitnet: nu021172@NDSUVM1 (NOTE 0 = ZERO) Fargo, ND 58105 Internet: nu021172@VM1.NoDak.EDU UUCP: ...!uunet!plains!vm1.nodak.edu!nu021172