Update README.md
parent
cac9d13ba7
commit
9de8988895
42
README.md
42
README.md
|
@ -1,25 +1,20 @@
|
|||
|
||||
# Alias plugin
|
||||
# alias
|
||||
|
||||
This plugin eliminates CNAME records from zone apex by making the subsequent resolved records look like they belong to the zone apex. This behaves similarily to [CloudFlare's Zone Flattening](https://support.cloudflare.com/hc/en-us/articles/200169056-CNAME-Flattening-RFC-compliant-support-for-CNAME-at-the-root).
|
||||
|
||||
Preferrably, this should not be used in favour of the RFC drafts for the new [ANAME](https://tools.ietf.org/html/draft-ietf-dnsop-aname-00) records, but the DNS library used by CoreDNS does not support ANAME records yet.
|
||||
|
||||
# Usage
|
||||
|
||||
```
|
||||
$ go get github.com/coredns/coredns
|
||||
$ go get github.com/serverwentdown/alias
|
||||
$ cd $GOPATH/src/github.com/coredns/coredns
|
||||
$ vim plugin.cfg
|
||||
# Add the line alias:github.com/serverwentdown/alias before the file middleware
|
||||
$ go generate
|
||||
$ go build
|
||||
$ ./coredns -plugins | grep alias
|
||||
```
|
||||
The *alias* plugin eliminates CNAME records from zone apex by making the subsequent resolved records look like they belong to the zone apex. This behaves similarily to [CloudFlare's Zone Flattening](https://support.cloudflare.com/hc/en-us/articles/200169056-CNAME-Flattening-RFC-compliant-support-for-CNAME-at-the-root).
|
||||
|
||||
This plugin only works with the `file` middleware with `upstream` set, or when A or AAAA records exist alongside the CNAME record.
|
||||
|
||||
> Preferrably, this should not be used in favour of the RFC drafts for the new [ANAME](https://tools.ietf.org/html/draft-ietf-dnsop-aname-00) records, but the DNS library used by CoreDNS does not support ANAME records yet.
|
||||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
alias
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
```
|
||||
example.com {
|
||||
file example.com.db {
|
||||
|
@ -43,3 +38,16 @@ into
|
|||
;; ANSWER SECTION:
|
||||
example.com. 299 IN A 123.123.45.67
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
$ go get github.com/coredns/coredns
|
||||
$ go get github.com/serverwentdown/alias
|
||||
$ cd $GOPATH/src/github.com/coredns/coredns
|
||||
$ vim plugin.cfg
|
||||
# Add the line alias:github.com/serverwentdown/alias before the file middleware
|
||||
$ go generate
|
||||
$ go build
|
||||
$ ./coredns -plugins | grep alias
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue