diff options
author | 2017-08-07 13:24:09 -0700 | |
---|---|---|
committer | 2017-08-07 13:24:09 -0700 | |
commit | e1c1521ad564dbae4106fba7c8cf29d9bb62778c (patch) | |
tree | 076bad082cd8a1c12a904e3eea9eebd330281976 /README.md | |
parent | 468d5b57de34e269a3c394385db146d98473d6e7 (diff) | |
download | coredns-e1c1521ad564dbae4106fba7c8cf29d9bb62778c.tar.gz coredns-e1c1521ad564dbae4106fba7c8cf29d9bb62778c.tar.zst coredns-e1c1521ad564dbae4106fba7c8cf29d9bb62778c.zip |
Core: convert IP addresses to reverse zone (#838)
* Core: convert IP addresses to reverse zone
If we see IP/mask syntax and the mask mod 8 == 0 we assume a reverse
zone and convert to in-addr or .arpa.
* typos
* integration test
* Addr is not used
* core: clean up normalize
Create a SplitHostPort function that can be used both from normalize.go
and address.go. This removes some (not all!) duplication between the
both and makes it work with reverse address notations.
* More tests
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -168,6 +168,19 @@ example.org { } ~~~ +IP addresses are also allowed. They are automatically converted to reverse zones: + +~~~ txt +10.0.0.0/24 { + # ... +} +~~~ +Means you are authoritative for `0.0.10.in-addr.arpa.`. + +The netmask must be dividable by 8, if it is not the reverse conversion is not done. This also works +for IPv6 addresses. If for some reason you want to serve a zone named `10.0.0.0/24` add the closing +dot: `10.0.0.0/24.` as this also stops the conversion. + Listening on TLS and for gRPC? Use: ~~~ txt |