Tool to detect and alert when DNS failover occurs

We have a Windows 2012 IIS server which we think is losing connection to its primary DNS and failling over to its alternate.   We would like to receive an email notification when this occurs.  How can this be achieved?

If possible it would be useful for the alert to include any details which might help us investigate what is preventing it contacting the primary DNS.
canuckconsultingAsked:
Who is Participating?
 
Benjamin VoglarIT ProCommented:
Yes shure.

https://blogs.technet.microsoft.com/jhoward/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger/

It is posible with powershell to.

Just schedule:

$dns = Get-WinEvent -LogName Microsoft-Windows-DNS-Client/Operational
Send-MailMessage -To "mail@mail.com" -From "mail@mail.com" -Subject "DNS" -Body $dns
0
 
Benjamin VoglarIT ProCommented:
Go in Event Viewer.

Find DNS client and then enable logging.

Then in Actions Bar click on Attach a Task To this log ....
0
 
canuckconsultingAuthor Commented:
Thanks!  Is there a way to include the error in the email?  This would be handy if I initially have all logged errors sent to me.
0
 
canuckconsultingAuthor Commented:
Cheers for the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.