.\" Generated by Mmark Markdown Processor - mmark.miek.nl .TH "WHOAMI" 7 "August 2026" "atomdns handlers" "atomdns authors" .SH "NAME" .PP \fIwhoami\fP \- return your resolver's local IP address, port and transport .SH "DESCRIPTION" .PP The \fIwhoami\fP handler is not really that useful, but can be used for having a simple (fast) endpoint to test clients against. When \fIwhoami\fP returns a response it will have your client's IP address in the additional section as either an A or AAAA record. .PP The reply always has an empty answer section. The port and transport are included in the additional section as a SRV record, network can be "tcp" or "udp". .PP If the \fIecs\fP handler added an address to the context, \fIthat\fP address is used instead. .PP .RS .nf \&.\_.qname. 0 IN SRV 0 0 . .fi .RE .PP The \fIwhoami\fP handler will respond to every A or AAAA query, regardless of the query name. .SH "SYNTAX" .PP .RS .nf whoami .fi .RE .SH "EXAMPLES" .PP Start a server on the default port and load the \fIwhoami\fP handler. .PP .RS .nf example.org { whoami } .fi .RE .PP When queried for "example.org A", atomdns will respond with: .PP .RS .nf ;; 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 .fi .RE