Solved

Tool to detect and alert when DNS failover occurs

Posted on 2016-07-18
4
44 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

837 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