2019-08-30 15:58:25 +01:00
|
|
|
.\" Generated by Mmark Markdown Processer - mmark.miek.nl
|
2020-03-31 14:18:39 +00:00
|
|
|
.TH "COREDNS-NSID" 7 "March 2020" "CoreDNS" "CoreDNS Plugins"
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2019-06-24 12:37:27 +01:00
|
|
|
.SH "NAME"
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
\fInsid\fP - adds an identifier of this server to each reply.
|
|
|
|
|
|
2019-06-24 12:37:27 +01:00
|
|
|
.SH "DESCRIPTION"
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
This plugin implements RFC 5001
|
|
|
|
|
\[la]https://tools.ietf.org/html/rfc5001\[ra] and adds an EDNS0 OPT
|
|
|
|
|
resource record to replies that uniquely identify the server. This is useful in anycast setups to
|
|
|
|
|
see which server was responsible for generating the reply and for debugging.
|
2018-01-04 12:53:07 +00:00
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
This plugin can only be used once per Server Block.
|
|
|
|
|
|
2019-06-24 12:37:27 +01:00
|
|
|
.SH "SYNTAX"
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
|
|
|
|
|
.nf
|
2018-01-04 12:53:07 +00:00
|
|
|
nsid [DATA]
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
.fi
|
2019-04-06 08:42:40 +01:00
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
\fBDATA\fP is the string to use in the nsid record.
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
If \fBDATA\fP is not given, the host's name is used.
|
|
|
|
|
|
2019-06-24 12:37:27 +01:00
|
|
|
.SH "EXAMPLES"
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
2018-01-04 12:53:07 +00:00
|
|
|
Enable nsid:
|
|
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
|
|
|
|
|
.nf
|
2019-09-27 13:30:22 +01:00
|
|
|
example.org {
|
2018-01-04 12:53:07 +00:00
|
|
|
whoami
|
|
|
|
|
nsid Use The Force
|
|
|
|
|
}
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
.fi
|
2019-04-06 08:42:40 +01:00
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
.PP
|
2018-01-04 12:53:07 +00:00
|
|
|
And now a client with NSID support will see an OPT record with the NSID option:
|
|
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
% dig +nsid @localhost a whoami.example.org
|
2018-01-04 12:53:07 +00:00
|
|
|
|
|
|
|
|
;; Got answer:
|
|
|
|
|
;; \->>HEADER<<\- opcode: QUERY, status: NOERROR, id: 46880
|
|
|
|
|
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 3
|
|
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
\&....
|
2018-01-04 12:53:07 +00:00
|
|
|
|
|
|
|
|
; OPT PSEUDOSECTION:
|
|
|
|
|
; EDNS: version: 0, flags:; udp: 4096
|
|
|
|
|
; NSID: 55 73 65 20 54 68 65 20 46 6f 72 63 65 ("Use The Force")
|
|
|
|
|
;; QUESTION SECTION:
|
2019-09-27 13:30:22 +01:00
|
|
|
;whoami.example.org. IN A
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
.fi
|
2019-04-06 08:42:40 +01:00
|
|
|
.RE
|
|
|
|
|
|
2019-06-24 12:37:27 +01:00
|
|
|
.SH "ALSO SEE"
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
RFC 5001
|
|
|
|
|
\[la]https://tools.ietf.org/html/rfc5001\[ra]
|
|
|
|
|
|