Summary: This thread explains how Dynatrace monitors DNS lookups and provides insights into resolution times. It includes configuration tips for detecting DNS-related performance issues.
Occasionally, customers ask about performing regular DNS lookups for certain domains to check whether they are still reachable.
However, some customers have to overcome organizational challenges with this, because the extensions run on an ActiveGate, and if you want to run an ActiveGate outside of your corporate network (because you want to test the DNS lookup outside of your corporate network), then there may be additional hurdles to jump.
Another way of doing this is by using a DNS-over-HTTPS (DoH) service and just sending an HTML request and doing a DNS lookup that way. That can be done with the built-in functionality of HTTP Monitors (be sure to validate the result!) and has the advantage that it will work both inside your corporate network (with Private Locations) and outside (with Public synthetic locations).
I know. These are the same ones that are linked to in the blog post I linked above.
Problem is, if you want to run a DNS test from outside your company’s network, you’ll need an ActiveGate outside your company’s network to run these extensions.
Using DoH will work without having to run an external ActiveGate, but can simply run on Public Synthetic locations instead.
Occasionally, customers ask about doing regular DNS lookups of certain domains so they know whether these domains are still reachable.
So the customer is not interested if the DNS server is operating, but if the record has been (or not) propagated? Or is it a case of records being deleted?
you do not need to run any DNS validation plugin outside your company’s network to perform a DNS validation “from the outside”.
If I got you right you can use any DNS lookup from the inside and just perform the lookup against an external DNS server?
Just like with “dig” against different NS servers:
(I do have a split DNS setup, where FQDNs resolve to different IPs while in the LAN or if queried on the public Internet)
% dig unifi.dy.natrace.it @8.8.8.8 | grep "ANSWER SECTION" -A 1
;; ANSWER SECTION:
unifi.dy.natrace.it. 285 IN A 46.244.228.59
% dig unifi.dy.natrace.it @192.168.1.252 | grep "ANSWER SECTION" -A 1
;; ANSWER SECTION:
unifi.dy.natrace.it. 0 IN A 192.168.1.254
@DavorinKrivak wrote:
So the customer is not interested if the DNS server is operating, but if the record has been (or not) propagated? Or is it a case of records being deleted?
Yes, exactly. They want to make sure their DNS record hasn’t expired or been deleted accidentally.
In my experience DNS queries (via UDP/TCP 53) is almost never blocked in connected infrastructure that is not completely isolated. So it’s more likely that you can do DNS queries than DNS over HTTP queries in my opinion.
(I remember the times where I used DNSTX - tunneling data over DNS TXT queries in expensive public WiFi Hotspots without paying because DNS queries were always allowed
Another way could be to perform queries to the authoritative DNS server of the (public) DNS entry by determining the AUTH DNS server from whatever DNS server is available on an Activegate (assuming plugin solution) and then using the solution above.
But this would still require to be able to perform DNS queries to the outside.
A shell script can be kept on their network premise server which belongs to a DMZ. The execution script can consist list of domain names which needed to be checked on scheduled basis and output can be generated as required in a log file. We can the try pulling this logs in Dynatarce. Script executing triggers and backup renaming of logs or deleting it will be required to be schedule using some cron jobs. Below is jsut a simple example hope you can do something similar terms to help with the required data.
{…
while read ADDR
do
nslookup ${ADDR} | tee -a mylookup.log
done < mylookup
…where ‘mylookup’ is a file with one IP or FQDN per line: