Aug 15, 2017

Detecting DNS Server Problems

Deep inside you know it. It's the DNS. It always is.

If <insert-your-favorite-network-service-here> is not working as it should be, it's the DNS resolution that is causing problems 99% of the time. And when it's not the DNS fault, it still is.

Here is just a quick PowerShell script to check all your AD Integrated DNS Servers and their DNS Server logs for events and possible errors.

foreach ($dc in $(Get-ADDomain).ReplicaDirectoryServers) {
Get-EventLog -LogName 'DNS Server' -Newest 10 -ComputerName $dc |
Select-Object MachineName,TimeGenerated,EntryType,EventID,Message |
Format-Table -AutoSize
}
 Cheers,

-Ari
@arisaastamoinen

No comments:

Post a Comment