mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Move suffix example out of EDNS0 section (#2102)
This commit is contained in:
@@ -85,6 +85,12 @@ Thus:
|
|||||||
* Incoming Request Name: `ftp-us-west-1.example.org`
|
* Incoming Request Name: `ftp-us-west-1.example.org`
|
||||||
* Re-written Request Name: `ftp.service.us-west-1.consul`
|
* Re-written Request Name: `ftp.service.us-west-1.consul`
|
||||||
|
|
||||||
|
The following example rewrites the `schmoogle.com` suffix to `google.com`.
|
||||||
|
|
||||||
|
~~~
|
||||||
|
rewrite name suffix .schmoogle.com. .google.com.
|
||||||
|
~~~
|
||||||
|
|
||||||
### Response Rewrites
|
### Response Rewrites
|
||||||
|
|
||||||
When re-writing incoming DNS requests' names, CoreDNS re-writes the `QUESTION SECTION`
|
When re-writing incoming DNS requests' names, CoreDNS re-writes the `QUESTION SECTION`
|
||||||
@@ -249,12 +255,6 @@ Examples:
|
|||||||
rewrite edns0 local set 0xffee {client_ip}
|
rewrite edns0 local set 0xffee {client_ip}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
The following example rewrites the `schmoogle.com` suffix to `google.com`.
|
|
||||||
|
|
||||||
~~~
|
|
||||||
rewrite name suffix .schmoogle.com. .google.com.
|
|
||||||
~~~
|
|
||||||
|
|
||||||
The following example uses metadata and an imaginary "some-plugin" that would provide "some-label" as metadata information.
|
The following example uses metadata and an imaginary "some-plugin" that would provide "some-label" as metadata information.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
|
|||||||
Reference in New Issue
Block a user