Check average dns resolution time of your system dns resolver
curl -o- https://raw.githubusercontent.com/shahidcodes/dns-benchmark/main/bench-dns.sh | bash
It sends 1000 dns queries using dig
and takes an average from 'Query time:' response from dns server.