When a site will not load and you run AdGuard Home or Pi-hole, the first question is whether the block comes from your resolver or from the internet. One command, run twice, answers it.
Normally your devices ask the DNS server in your router or on your network. dig lets you pick the server yourself, so you can compare answers side by side:
dig +short example.com @192.168.1.3
dig +short example.com @1.1.1.1
Replace the first address with your own resolver, the second is Cloudflare’s public DNS. +short prints only the answer instead of the full report.
- Your resolver gives
0.0.0.0or nothing, the public one gives a real address: your filter list blocks it. In AdGuard Home the query log shows which rule did it. - Both give the same address: DNS is fine, look at the firewall, the site or the browser.
- Both give nothing: the name is wrong or the domain has a problem.
- The answers differ, and neither is blocked: one of them has an old cached record. Wait or flush the cache.
Ask for a record type with dig MX example.com or dig AAAA example.com. Without +short you also see the TTL, the number of seconds the answer may be cached, which explains why a change at your domain host takes a while to show up. dig +trace example.com follows the lookup from the root servers down.
When something is wrong, I would work through it in this order: ask your own resolver, ask a public resolver, then look in the query log of the filter for that name. If you use Tailscale with a custom DNS server, the same test tells you whether a name is answered by the tailnet or by the internet. Two commands and one log line are usually enough to know whose problem it is before you touch any setting.
dig is part of the dnsutils package on Debian and Ubuntu (bind-utils on Fedora) and already on macOS. On Windows, nslookup example.com 192.168.1.3 does a similar job. Note that your own machine can still cache answers, so a browser may disagree with dig; that is just another cache.
Further reading: dig manual (BIND 9), On this site: set DNS servers per network service with networksetup, On this site: tailscale dns status shows what MagicDNS is really doing, On this site: Guide: AdGuard Home with Unbound: resolve DNS yourself instead of asking Cloudflare or your ISP
Going deeper: Guide: AdGuard Home with Unbound: resolve DNS yourself instead of asking Cloudflare or your ISP