Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DNS regex lookup



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>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org