Score:0

How to check DNS in present in the Domain Controller or Not?

cn flag

I want to check whether the DNS is present in the Domain Controller or not? or is there a way to filter out domain controllers without the DNS?

Score:1
in flag

Technically a none dns server shouldnt have port 53 open as a request will goto port 53 but generated on a different port for the source computer. However to avoid systems that are misconfigured, use the nslookup command and specify the query server as the DC host. If it isnt running DNS, then it should fail to respond to your query.

Sheik Sena Reddy avatar
cn flag
Hello Aalom, If I run the command (Get-ADDomainController -Filter * ).HostName | where { (Get-WindowsFeature -ComputerName $_ -Name DNS ) -ne $null} will I get Domain controller without DNS? is that correct? @borcan22
Aalom avatar
in flag
Providing syntax and construct is correct i would say most of it looks good, except your doing a going to get results for systems with DNS, your querying for systems with DNS and then saying not equal to a null value, meaning it does return DNS. And you want without DNS then you should use -eq instead.
Sheik Sena Reddy avatar
cn flag
Yes Correct, I did use eq to filter DC's without DNS. Thanks
Score:0
sg flag

To be sure, you can run wireshark or tcpdump to see what happens within host. Just listen to port 53 and look inside of some packets.

Score:0
cn flag

We can use powershell script to filter Domain Controller's without DNS

(Get-ADDomainController -Filter * ).HostName | where { (Get-WindowsFeature -ComputerName $_ -Name DNS ) -eq $null}
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.