 |
 |
Testing... |
 |
|
 |
Main Menu |
 |
|
 |
Topics |
 |
|
 |
Voice Over IP |
 |
|
 |
Last 10 Articles... |
 |
|
 |
Search this site |
 |
|
|  |
 |
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. |
|  |
 |
|
|