Debian Codegraph @

cmd/atomdns/man/atomdns-whoami.7

raw
1 .\" Generated by Mmark Markdown Processor - mmark.miek.nl
2 .TH "WHOAMI" 7 "August 2026" "atomdns handlers" "atomdns authors"
3
4 .SH "NAME"
5 .PP
6 \fIwhoami\fP \- return your resolver's local IP address, port and transport
7
8 .SH "DESCRIPTION"
9 .PP
10 The \fIwhoami\fP handler is not really that useful, but can be used for having a simple (fast) endpoint
11 to test clients against. When \fIwhoami\fP returns a response it will have your client's IP address in
12 the additional section as either an A or AAAA record.
13
14 .PP
15 The reply always has an empty answer section. The port and transport are included in the additional
16 section as a SRV record, network can be "tcp" or "udp".
17
18 .PP
19 If the \fIecs\fP handler added an address to the context, \fIthat\fP address is used instead.
20
21 .PP
22 .RS
23
24 .nf
25 \&.\_<network>.qname. 0 IN SRV 0 0 <port> .
26
27 .fi
28 .RE
29
30 .PP
31 The \fIwhoami\fP handler will respond to every A or AAAA query, regardless of the query name.
32
33 .SH "SYNTAX"
34 .PP
35 .RS
36
37 .nf
38 whoami
39
40 .fi
41 .RE
42
43 .SH "EXAMPLES"
44 .PP
45 Start a server on the default port and load the \fIwhoami\fP handler.
46
47 .PP
48 .RS
49
50 .nf
51 example.org {
52 whoami
53 }
54
55 .fi
56 .RE
57
58 .PP
59 When queried for "example.org A", atomdns will respond with:
60
61 .PP
62 .RS
63
64 .nf
65 ;; QUESTION SECTION:
66 ;example.org. IN A
67
68 ;; ADDITIONAL SECTION:
69 example.org. 0 IN A 10.240.0.1
70 \_udp.example.org. 0 IN SRV 0 0 40212
71
72 .fi
73 .RE