.\" Generated by Mmark Markdown Processor - mmark.miek.nl .TH "ECS" 7 "August 2026" "atomdns handlers" "atomdns authors" .SH "NAME" .PP \fIecs\fP \- add client subnet address .SH "DESCRIPTION" .PP This handler adds the EDNS0 client subnet's (RFC 7871) subnet to the current context. If none is found, nothing is added. Other handlers, like \fIgeoip\fP or \fIacl\fP can use this data instead of the source IP address. .SH "SYNTAX" .PP .RS .nf ecs .fi .RE .SH "EXAMPLES" .PP Enable cookies: .PP .RS .nf example.org { ecs whoami } .fi .RE .SH "CONTEXT" .PP The \fIecs\fP handler adds a single key to the context: .RS .TS allbox; l l l l l l l l . \fBKey\fP\fB Type\fP\fB Example\fP\fB Description\fP \fB\fCecs/addr\fR \fB\fCnetip.Addr\fR 198.51.100.1 The address. .TE .RE .PP When the \fIlog\fP handler is used the address is automatically logged as \fB\fCecs.addr=..\fR. .SH "SEE ALSO" .PP See RFC 7871, atomdns\-log(7), atomdns\-geoip(7) and atomdns\-acl(7).