ROKUS.net - Home
 Home    sdcarroll*gmail   

  Testing...

· Today on AFN-K

Ha Ha
Click for Ewa Beach, Hawaii Forecast

  Main Menu
· TrackBack Tool


  Topics
· Blogs
· Dell Servers
· Korea
· Microsoft - Servers
· Microsoft - Exchange
· Misc
· Security
· XML

· · ·All Articles· · ·

  Voice Over IP

Please click

  Last 10 Articles...
· Reading this post will save you ten bucks...
· National Treasure (2004)
· Become your own webhost.
· Mok-dong (Seoul) Immigration Office Hours
· Need to publish confidential documents? Microsoft Redaction tool may be for you!
· RSS and XML: Seoul Computer Club Presentation.
· Operations Guides
· Cool Optical Illusions
· Microsoft releases SNARF - an email relationship tool
· Link Dump / Exchange

  Search this site
Google

ROKUS.NET


This blog is no longer updated.

Since I own the domain name for a couple more years, and the hosting was paid-in-advance, it's still here. But I've moved on to Hawaii, and no longer have the need to publish all the sorts of neat stuff that made up the contents of this website.

If you've linked to me, you are invited to unlink, as your readers will no longer be presented with new content. Thanks, Steve
"nslookup" command line query for MX records
Sunday, July 17, 2005 : Stephen D. Carroll, rokus.net

My MX records were dorked up last month. Symptoms were that I could send email from my domain, but replies were getting bounced as 5.5.1 rejects - the email server that was listed couldn't accept the replies (as they were for my domain, and that server was configured not to relay... good for them.)

In my never-ending quest for the perfect data center monitoring script, I found the following option for nslookup....

    nslookup -querytype=mx domain.f.q.d.n | findstr "MX"

...which kicks out a single line for each of your MX records, like so:

    C:\>nslookup -querytype=mx rokus.net | findstr "MX"
    Non-authoritative answer:
    rokus.net    MX preference = 10, mail exchanger = mail.rokus.net
    rokus.net    MX preference = 20, mail exchanger = alternatemxrecord.rokus.net         [*]
    rokus.net    MX preference = 30, mail exchanger = anothermxrecord.rokus.net         [*]

Now, all I have to do is verify that "mail.rokus.net" is what I actually expect to see. I guess I can write it out to file and import it later; in the interim, I'll just manually verfy it.

DNS bubbas, I'm watching you!

[*] lines included for the sake of this demo - it's not a real response. Just in case you're a-retentive to check...

Yeah, I know you can type 'nslookup' (return) and then 'set type=mx' (return) and then 'rokus.net' (return), but I wanted to script this.







Permalink |   Mail this...

"nslookup" command line query for MX records | Login/Create an account | 0 Comments
Comments are owned by the poster. We aren't responsible for their content.




  Help Desk Manager    

Logos not available:
Dell Certified Storage Network Professional
Snort Certified Professional



Standard disclaimers apply: This website contains the personal opinions of the author,
and is neither endorsed nor sponsored by the United States government, its agencies,
nor anyone else, to include my employer, my coworkers, my friends, or anyone
that I haven't yet met. If you nonconcur with what's included on this site, either
(a) leave a comment, send me an email, or tell me if you see me (e.g. "feedback") or (b) don't.

These guys make me look good: