How to run check_dns from windows host with agent installed?

Apologies if this has been asked before
I have Linux hosts with CheckMK agent that allow me to run check_dns and it works; I need to perform the same service check from Windows-based hosts. are there clear instructions on how to set this up? the Windows-based hosts have checkMK agent installed and registered, but I’m not sure what are the next steps.

I believe this is not part of the agent as such.
If you go to Setup–>Services–>HTTP,TCP… and select the “Check DNS Service”…
You should be able to create a rule defining which DNS service
In the section “Check DNS service” you specify the DNS request.
In the section “Conditions” you can then specify your windows host. The DNS service check should then be found under your windows host services.

hi thanks, I’m not sure this is what I need?
i.e. check_dns script can essentially do an nslookup and report on the response and response time of the lookup. can the same be done from a windows host with minimal effort?
I don’t want to monitor the health/status of DNS service on a Windows server. I’m looking monitor dns response time from a windows client.

Hello I am working on an similar Problem.
We try to build an local check with Powershell

Not finished !

get-dns server address

$addresses = Get-DnsClientServerAddress -AddressFamily IPv4 |
Select-Object -ExpandProperty ServerAddresses

test servers

foreach ($address in $addresses){
$resolved = $false
$dnsport = Test-NetConnection $address -port 53 -InformationLevel Detailed

There we fight with the Output :slight_smile: