| 1 |
.\" Generated by Mmark Markdown Processor - mmark.miek.nl |
| 2 |
.TH "ECS" 7 "August 2026" "atomdns handlers" "atomdns authors" |
| 3 |
|
| 4 |
.SH "NAME" |
| 5 |
.PP |
| 6 |
\fIecs\fP \- add client subnet address |
| 7 |
|
| 8 |
.SH "DESCRIPTION" |
| 9 |
.PP |
| 10 |
This handler adds the EDNS0 client subnet's (RFC 7871) subnet to the current context. If none is found, nothing |
| 11 |
is added. Other handlers, like \fIgeoip\fP or \fIacl\fP can use this data instead of the source IP address. |
| 12 |
|
| 13 |
.SH "SYNTAX" |
| 14 |
.PP |
| 15 |
.RS |
| 16 |
|
| 17 |
.nf |
| 18 |
ecs |
| 19 |
|
| 20 |
.fi |
| 21 |
.RE |
| 22 |
|
| 23 |
.SH "EXAMPLES" |
| 24 |
.PP |
| 25 |
Enable cookies: |
| 26 |
|
| 27 |
.PP |
| 28 |
.RS |
| 29 |
|
| 30 |
.nf |
| 31 |
example.org { |
| 32 |
ecs |
| 33 |
whoami |
| 34 |
} |
| 35 |
|
| 36 |
.fi |
| 37 |
.RE |
| 38 |
|
| 39 |
.SH "CONTEXT" |
| 40 |
.PP |
| 41 |
The \fIecs\fP handler adds a single key to the context: |
| 42 |
|
| 43 |
.RS |
| 44 |
.TS |
| 45 |
allbox; |
| 46 |
l l l l |
| 47 |
l l l l |
| 48 |
. |
| 49 |
\fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP |
| 50 |
\fB\fCecs/addr\fR \fB\fCnetip.Addr\fR 198.51.100.1 The address. |
| 51 |
.TE |
| 52 |
.RE |
| 53 |
|
| 54 |
|
| 55 |
.PP |
| 56 |
When the \fIlog\fP handler is used the address is automatically logged as \fB\fCecs.addr=..\fR. |
| 57 |
|
| 58 |
.SH "SEE ALSO" |
| 59 |
.PP |
| 60 |
See RFC 7871, atomdns\-log(7), atomdns\-geoip(7) and atomdns\-acl(7). |