Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nslookup and the Command ine

Status
Not open for further replies.

Trancemission

Technical User
Oct 16, 2001
108
GB
Not sure if this is the right forum :)

I am trying to simply do an MX lookup on x domain from the command line. I can do interactive no problem but cannot find a way to do a MX lookup on one command line.

I would have thought it would be something like:

nslookup type=MX whatmx.doman.com my.nameserver.com ?!?

Cheers Trancemission
=============
If it's logical, it'll work!
 
Not quite what I meant. I have no problem using it in Interactive-mode, but from the command line I was having trouble. The reason is I have a bactch of domains (700+) that I want to do MX lookups and format the results.

I have now managed to find a way round. If I edit my .nslookuppc file and add:

type=MX

BINGO! my default results from the command line are the MX records

Cheers Trancemission
=============
If it's logical, it'll work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top