Today I had a Windows 2008 server's DNS in a bad state without Zabbix detecting it.
The DNS-server was still running and even resolving records from its cache, but it wasn't able to resolve any new records.....
restarting the DNS-server resolved this error.
I would like to create a function so it can detect this state.
I thought of 2 scenarios...
The 1st is quite easy to do. I can try to resolve a record with a short TTL (like pool.ntp.org). But because I don't know in the first place why the DNS-server wasn't able to resolve it's still possible the server just returns an answer even though the record has expired.
The 2nd scenario is using a FQDN with a wildcard and asking the DNS-server a subdomain with a random string. This record can't come out of the cache (AFAIK).
My problem here is adding a random string before the FQDN
What do you guys think?
The DNS-server was still running and even resolving records from its cache, but it wasn't able to resolve any new records.....
restarting the DNS-server resolved this error.
I would like to create a function so it can detect this state.
I thought of 2 scenarios...
The 1st is quite easy to do. I can try to resolve a record with a short TTL (like pool.ntp.org). But because I don't know in the first place why the DNS-server wasn't able to resolve it's still possible the server just returns an answer even though the record has expired.
The 2nd scenario is using a FQDN with a wildcard and asking the DNS-server a subdomain with a random string. This record can't come out of the cache (AFAIK).
My problem here is adding a random string before the FQDN
What do you guys think?
Comment