I Need To Make A Change With My IT Support! Call (225) 706-8414

Test AD and Internet DNS information for a given hostname

You are working in a network where the AD domain name is the same as your public Internet domain name. In other words, instead of using something like example.local for your AD domain and example.com for your public domain, you use example.com for both.

This can be okay except you now need to maintain two DNS domains, your AD one and your public one. The biggest issue in doing this is that sometimes a DNS change in one isn’t pushed to the other. So, why not check it with a script (by hand or via your monitoring system)?

Solution

In the attached script, I do some digging using nslookup to dig into both AD DNS and public DNS. This can be done because there are certain well-known public DNS servers that we can use. Google for example has 8.8.8.8.

The script:

TestLocalIPandRemoteIP.cmd

To use it, just specify the DNS record you want to test, e.g., you could test it this way:

C:> TestLocalIPandRemoteIP.cmd mail.example.com

Concerned About Cyber Attacks?

CLICK HERE >

Want to Migrate to the Cloud?

CLICK HERE >
Office 365

Ready to Experience Microsoft Office 365?

Want the latest IT news directly in your inbox? Subscribe now!