You'll need to parse the results to meet your needs, but dnscmd (from the
W2K resource kit) can help you do that.

Darin.


----- Original Message ----- 
From: "A Wolkin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 29, 2004 1:05 PM
Subject: [IMail Forum] DNS/MX Question


Hello-

I am going to be doing some maintenance on DNS records and moving some of
the records to a new server. As long as I'm doing this, I am also planning
to phase out a few old mx hostnames.

I am hoping to write a simple script that will allow me to visually validate
the mx record (and the A as long as I'm at it) for each domain.

I was planning on using a simple dos bat file or windows compatible perl
script to look up the records and post them to a text file.  I was thinking
that I could just query the old dns server to get its results and then query
the new dns server and post them one line under another in a text file.

I was hoping to have an output such as:

domain.com old MX: test.domain.com
domain.com new MX: testnew.domain.com
domain.com old A: 1.1.1.1
domain.com new A: 1.1.1.1

domain1.com old MX: test.domain1.com
domain1.com new MX: testnew.domain1.com
domain1.com old A: 2.1.1.1
domain1.com new A: 2.1.1.1

Does anyone have any suggestions on how I might be able to accomplish this?
Or, is there a similar script already out there?

Thanks,
Andy

_________________________________________________________________
Get rid of annoying pop-up ads with the new MSN Toolbar - FREE!
http://toolbar.msn.com/go/onm00200414ave/direct/01/


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to