5 ms·
I kept running into DNS issues, and needed to triple-check that I was pointing to the right DNS servers, so I made this utility website that does exactly that:
by Fileformat 6y ago
I kept running into DNS issues, and needed to triple-check that I was pointing to the right DNS servers, so I made this utility website that does exactly that: which-dns [1]
This isn't a new idea ([2]), but mine supports https (hat tip to Matt Holt's certmagic [3]), is ad-free, and the source is available [4].
Let me know what you think!
[1] https://which.nameserve.rs https://which.nameserve.rs
[2] http://www.whatsmydnsserver.com/ http://www.whatsmydnsserver.com/
[3] https://github.com/caddyserver/certmagic https://github.com/caddyserver/certmagic
[4] AGPL. It is my first foray into golang. https://github.com/redirect2me/which-dns https://github.com/redirect2me/which-dns
- kortex 6y agoI find this really useful! I seem to frequently run into dns weirdness. Does it work internally e.g. diagnosing dns queries on a local net?
- Fileformat 6y agoIt only sees the "last hop" of recursive DNS resolution [1]. If you have internal DNS servers, you would need to run a copy of which-dns internally, and your internal DNS servers would need have the which-dns entries added. If you want to see if a local workstation is pointing to a different public/external DNS server than the rest of your network, it should work. [1] https://www.cloudflare.com/learning/dns/what-is-recursive-dns/ https://www.cloudflare.com/learning/dns/what-is-recursive-dn...
- sleavey 6y agoI just read the GitHub readme: > How does it work? You make a request to a hostname with a unique prefix. All hostnames resolve to the same IP, but the DNS server records which IP address the query came from. The webserver looks for this record and returns it. That's a smart way of detecting a user's DNS server - well done! Is there a way to "fail" the first request and try to force the user's secondary DNS to kick in so that it can be detected too?
- Fileformat 6y agoIt would be really nice to detect the user's secondary DNS. I'm not sure failing will do that, but it might reveal interesting things anyway. I'll add it to the to-do list.
- dgl 6y agoThe extended test on https://www.dnsleaktest.com/ https://www.dnsleaktest.com/ does that. There’s also various tests that reveal EDNS subnet leakage. It’s pretty easy to implement; somehow don’t respond to a request, but do respond to a second. (If you’re clever you can probably do it without server side state, e.g. encode a deadline in the custom hostname.)