Solved

Tool to detect and alert when DNS failover occurs

Posted on 2016-07-18
4
46 Views
Last Modified: 2016-07-18
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
Comment
Question by:canuckconsulting
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Benjamin Voglar
ID: 41717066
Go in Event Viewer.

Find DNS client and then enable logging.

Then in Actions Bar click on Attach a Task To this log ....
0
 

Author Comment

by:canuckconsulting
ID: 41717165
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
 
LVL 12

Accepted Solution

by:
Benjamin Voglar earned 500 total points
ID: 41717184
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
 

Author Closing Comment

by:canuckconsulting
ID: 41717304
Cheers for the help!
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question