[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 65
  • Last Modified:

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.
0
canuckconsulting
Asked:
canuckconsulting
  • 2
  • 2
1 Solution
 
Benjamin VoglarCommented:
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
 
Benjamin VoglarCommented:
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
 
canuckconsultingAuthor Commented:
Cheers for the help!
0

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now