COREDNS-WHOAMI(7)

πŸ“¦
version 1.15.0 Β· 2 versions
, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… COREDNS-WHOAMI(7)

okay so this is one of those pages from the CoreDNS Plugins manual β€” yes, that's the manual name, we're folding it in right here at the top so it doesn't get lost πŸŽ€ β€” and it's all about a tiny little plugin called whoami. March 2026 edition, bestie, stay with me.


✨ NAME ✨

whoami β€” literally just tells you your resolver's local IP address, port, and transport. that's it. that's the whole job 🫢


🌸 DESCRIPTION 🌸

ngl, the whoami plugin is not really that useful β€” the manpage said it, not me πŸ’€ β€” but what it IS good for is being a simple (fast!) endpoint to test clients against. when whoami sends back a response, your client's IP address shows up in the additional section as either an A or an AAAA record. iconic behavior.

the reply always has an empty answer section. like, always. the port and transport get tucked into the additional section as an SRV record, and the transport can be "tcp" or "udp":

._<transport>.qname. 0 IN SRV 0 0 <port> .

the whoami plugin will respond to every A or AAAA query, regardless of the query name β€” it does not care what you asked for, it's answering anyway πŸ’…

and here's the fun part: if CoreDNS can't find a Corefile on startup, this is the default plugin that gets loaded. so it's basically the "hello? are you alive?" plugin β€” you can use it to check that CoreDNS is responding to queries at all. other than that? limited use in production, fr fr. it's giving test-environment main character energy, not prod energy.


⭐ SYNTAX ⭐

whoami

that's literally the whole syntax. no flags. no arguments. no notes. slay.


πŸ¦‹ EXAMPLES πŸ¦‹

start a server on the default port and load the whoami plugin:

example.org {
    whoami
}

when you query for "example.org A", CoreDNS will respond with:

;; QUESTION SECTION:
;example.org.   IN       A

;; ADDITIONAL SECTION:
example.org.            0       IN      A       10.240.0.1
_udp.example.org.       0       IN      SRV     0 0 40212

see that? empty answer section, your IP chilling in the additional section, and the port (40212) + transport (udp) hanging out in the SRV record. obsessed 😭✨


πŸ”₯ SEE ALSO πŸ”₯

heads up bestie: those two are the only SEE ALSO references, don't go looking for more, i checked πŸ’œ

and that's the whole page! πŸŽ€ this masterpiece comes to you from CoreDNS, dated March 2026, and it's COREDNS-WHOAMI(7) all day long. go test a client, bestie, you got this πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from