DNSTRACER(8)
π DNSTRACER β the manual, but make it make sense π
okay so bestie, you know how DNS is basically the internet's group chat where everyone's gossiping about where everything lives? This is dnstracer(8), and it's the tool that traces the whole gossip chain back to the original source. Iconic behaviour, honestly.
β¨ NAME β¨
dnstracer β trace a chain of DNS servers to the source π΅οΈββοΈ
πΈ SYNOPSIS πΈ
dnstracer [options] name
π¦ DESCRIPTION π¦
So here's the vibe: dnstracer figures out where a given Domain Name Server (DNS) actually gets its info from, and then it follows that chain of DNS servers alllll the way back to the servers that actually know the data. It's giving investigative journalism. It's giving ancestry.com for IP addresses. π₯
The options are:
-cβ Disable local caching. no storing stuff for later, we're going in fresh π-Cβ Enable negative caching.-eβ Disable EDNS0 options.-Esize β Set EDNS0 size, default is1500bytes.-oβ Enable overview of received answers at the end. cute little recap, we love a summary β¨-qqueryclass β Change the query-class, default isA. You can either specify a number of the type (if you're brave π) or one of the following strings:a,aaaa,a6,soa,cname,hinfo,mx,ns,txtandptr.-rretries β Number of retries for DNS requests, default3. like, if at first you don't succeed, try three times π«Ά-sserver β DNS server to use for the initial request, default is aquired from the system. If a dot is specified (.),A.ROOT-SERVERS.NETwill be used. the dot is the main character here π-vβ Be verbose on what sent or received. she's a talker, she tells you everything π-4β Use only IPv4 servers, don't query IPv6 servers (only available when IPv6 support hasn't been disabled)-Ssourceaddress β Use this as source-address for the outgoing packets.
π HOW IT WORKS π
okay so here's the tea. It sends the specified name-server a non-recursive request for the name.
Non-recursive means: if the name-server knows it, it will return the data requested. If the name-server doesn't know it, it will return pointers to name-servers that are authoritive for the domain part in the name β or it will return the addresses of the root name-servers. basically "idk, ask her π".
If the name server does returns an authoritative answer for the name, the next server is queried. If it returns an non-authoritative answer for the name, the name servers in the authority records will be queried.
The program stops if all name-servers are queried. that's the end of the chain, bestie, we've reached the source β
β οΈ Make sure the server you're querying doesn't do forwarding towards other servers, as dnstracer is not able to detect this for you. like, she can't read minds, she's just a traceroute for DNS, give her some grace π
It detects so called lame servers, which are name-servers which has been told to have information about a certain domain, but don't have this information. fake friends, honestly. not the vibe. π
π HOW TO USE IT (EXAMPLES) π
Search for the A record of www.mavetju.org on your local nameserver:
dnstracer www.mavetju.org
Search for the MX record of mavetju.org on the root-nameservers:
dnstracer "-s" . "-q" mx mavetju.org
Search for the PTR record (hostname) of 212.204.230.141:
dnstracer "-q" ptr 141.230.204.212.in-addr.arpa
And for IPv6 addresses:
dnstracer "-q" ptr "-s" . "-o"
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.4.0.2.0.0.0.0.8.b.0.e.f.f.3.ip6.arpa
see how that last one is literally two lines? yeah. copy it exactly, don't rearrange it, she's sensitive. π
π SEE ALSO π
ntptrace(8), traceroute(8), dig(1) β the whole friend group π«Ά
π AUTHOR π
Edwin Groothuis, edwin@mavetju.org (http://www.mavetju.org)
See http://www.mavetju.org/contacts.php for mailing-lists.
okay that's the whole page, bestie, no cap. π§ version info from the header/footer: this is the Additional Software flavor of dnstracer(8), dated June 10, 2008 (yes that's the date twice, once for the source and once for the page β slay consistency π
). go trace something and be iconic. π
π¦ where this page comes from
- alpine 3.24: dnstracer-doc 1.10-r3 Β· BSD-2-Clause
- nixpkgs unstable: dnstracer 1.10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms