DNS regex lookup
John Abreau
jabr at blu.org
Sat Aug 17 21:57:49 EDT 2002
Gordon Keegan <gmkeegan at yahoo.com> writes:
> You used to be able to use nslookup:
>
> # nslookup
> Server a.b.c.d
>
> ls -d domain.com > outfile.txt
> ####### (x records received)
>
> exit
>
> # more outfile.txt
>
> But the current versions of nslookup that I've tried
> in RedHat and Mandrake say that nslookup is deprecated
> and to use host or dig. The help/man page for dig
> looks like you might be able to get the same info, but
> it might take some , um, digging. (sorry...)
I hadn't realized ls had been removed from nslookup. I just tried it
and got
The 'ls' command is not implemented.
In the old days, DNS was considered public information, like the phone
book; nobody bothered to restrict zone transfers back then. These days
it's common to block zone transfers in an attempt to make things harder
for the spammers and script kiddies.
The host command has a "-l" option to do the "ls" function. However,
if the DNS server in question doesn't let your client machine do zone
transfers, the "-l" will just get you an error:
Host blu.org not found: 5(REFUSED)
And thanks to the spammers and script kiddies, this is now the common case.
--
John Abreau / Executive Director, Boston Linux & Unix
ICQ 28611923 / AIM abreauj / JABBER jabr at jabber.org / YAHOO abreauj
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
Some people say, "The enemy of my enemy is my friend."
I often respond, "When elephants fight, it's the grass
that gets trampled."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 344 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20020817/dc1ce89f/attachment.sig>
More information about the Discuss
mailing list