mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
Looks like the last commit missed a `~` in the docs. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
28 lines
498 B
Markdown
28 lines
498 B
Markdown
# nsid
|
|
|
|
*nsid* add an identifier of this server to each reply.
|
|
|
|
This plugin implements RFC 5001 and adds an EDNS0 OPT resource record to replies that uniquely
|
|
identifies the server. This can be useful in anycast setups to see which server was responsible for
|
|
generating the reply and for debugging.
|
|
|
|
## Syntax
|
|
|
|
~~~ txt
|
|
nsid [DATA]
|
|
~~~
|
|
|
|
**DATA** is the string to use in the nsid record.
|
|
|
|
If **DATA** is not given, the host's name is used.
|
|
|
|
## Examples
|
|
|
|
Enable nsid:
|
|
|
|
~~~ corefile
|
|
. {
|
|
nsid
|
|
}
|
|
~~~
|