diff --git a/go.mod b/go.mod index 92e9e3e9a..2600b0943 100644 --- a/go.mod +++ b/go.mod @@ -34,7 +34,7 @@ require ( github.com/openzipkin-contrib/zipkin-go-opentracing v0.3.5 github.com/philhofer/fwd v1.0.0 // indirect github.com/prometheus/client_golang v1.2.1 - github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 + github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 github.com/prometheus/common v0.7.0 github.com/spf13/pflag v1.0.3 // indirect github.com/tinylib/msgp v1.1.0 // indirect @@ -42,7 +42,7 @@ require ( go.etcd.io/etcd v0.5.0-alpha.5.0.20190917205325-a14579fbfb1a golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc golang.org/x/net v0.0.0-20191003171128-d98b1b443823 // indirect - golang.org/x/sys v0.0.0-20191003212358-c178f38b412c + golang.org/x/sys v0.0.0-20191010194322-b09406accb47 google.golang.org/api v0.13.0 google.golang.org/genproto v0.0.0-20190701230453-710ae3a149df // indirect google.golang.org/grpc v1.24.0 diff --git a/go.sum b/go.sum index f03750f9a..96169ce75 100644 --- a/go.sum +++ b/go.sum @@ -72,6 +72,7 @@ github.com/caddyserver/caddy v1.0.3 h1:i9gRhBgvc5ifchwWtSe7pDpsdS9+Q0Rw9oYQmYUTw github.com/caddyserver/caddy v1.0.3/go.mod h1:G+ouvOY32gENkJC+jhgl62TyhvqEsFaDiZ4uw0RzP1E= github.com/cenkalti/backoff v2.1.1+incompatible h1:tKJnvO2kl0zmb/jA5UKAt4VoEVw1qxKWjE/Bpp46npY= github.com/cenkalti/backoff v2.1.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/cespare/xxhash/v2 v2.1.0 h1:yTUvW7Vhb89inJ+8irsUqiWjh8iT6sQPZiQzI6ReGkA= github.com/cespare/xxhash/v2 v2.1.0/go.mod h1:dgIUBU3pDso/gPgZ1osOZ0iQf77oPR28Tjxl5dIMyVM= github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= @@ -284,6 +285,7 @@ github.com/prometheus/client_golang v1.2.1/go.mod h1:XMU6Z2MjaRKVu/dC1qupJI9SiNk github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 h1:S/YWwWx/RA8rT8tKFRuGUZhuA90OyIBpPCXkcbwU8DE= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.4.1 h1:K0MGApIoQvMw27RTdJkPbr3JZ7DNbtxQNyi5STVM6Kw= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= @@ -296,6 +298,7 @@ github.com/prometheus/procfs v0.0.2 h1:6LJUbpNm42llc4HRCuvApCSWB/WfhuNo9K98Q9sNG github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.3 h1:CTwfnzjQ+8dS6MhHHu4YswVAD99sL2wjPqP+VkURmKE= github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= +github.com/prometheus/procfs v0.0.5 h1:3+auTFlqw+ZaQYJARz6ArODtkaIwtvBTx3N2NehQlL8= github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -420,6 +423,7 @@ golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe h1:6fAMxZRR6sl1Uq8U61gxU+kPT golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191003212358-c178f38b412c h1:6Zx7DRlKXf79yfxuQ/7GqV3w2y7aDsk6bGg0MzF5RVU= golang.org/x/sys v0.0.0-20191003212358-c178f38b412c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191010194322-b09406accb47 h1:/XfQ9z7ib8eEJX2hdgFTZJ/ntt0swNk5oYBziWeTCvY= golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/man/coredns-autopath.7 b/man/coredns-autopath.7 index ce5711bb8..e493dc451 100644 --- a/man/coredns-autopath.7 +++ b/man/coredns-autopath.7 @@ -1,5 +1,5 @@ .\" Generated by Mmark Markdown Processer - mmark.miek.nl -.TH "COREDNS-AUTOPATH" 7 "October 2019" "CoreDNS" "CoreDNS Plugins" +.TH "COREDNS-AUTOPATH" 7 "November 2019" "CoreDNS" "CoreDNS Plugins" .SH "NAME" .PP @@ -56,7 +56,7 @@ autopath my\-resolv.conf .RE .PP -Use \fB\fCmy-resolv.conf\fR as the file to get the search path from. This file only needs so have one line: +Use \fB\fCmy-resolv.conf\fR as the file to get the search path from. This file only needs to have one line: \fB\fCsearch domain1 domain2 ...\fR .PP diff --git a/man/coredns-forward.7 b/man/coredns-forward.7 index 3bb51dc4b..894fe7138 100644 --- a/man/coredns-forward.7 +++ b/man/coredns-forward.7 @@ -1,5 +1,5 @@ .\" Generated by Mmark Markdown Processer - mmark.miek.nl -.TH "COREDNS-FORWARD" 7 "October 2019" "CoreDNS" "CoreDNS Plugins" +.TH "COREDNS-FORWARD" 7 "November 2019" "CoreDNS" "CoreDNS Plugins" .SH "NAME" .PP diff --git a/man/coredns-transfer.7 b/man/coredns-transfer.7 new file mode 100644 index 000000000..fd9e0e7ef --- /dev/null +++ b/man/coredns-transfer.7 @@ -0,0 +1,42 @@ +.\" Generated by Mmark Markdown Processer - mmark.miek.nl +.TH "COREDNS-TRANSFER" 7 "November 2019" "CoreDNS" "CoreDNS Plugins" + +.SH "NAME" +.PP +\fItransfer\fP - answer zone transfers requests for compatible authoritative +plugins. + +.SH "DESCRIPTION" +.PP +This plugin answers zone transfers for authoritative plugins that implement +\fB\fCtransfer.Transferer\fR. + +.PP +Transfer answers AXFR requests and IXFR requests with AXFR fallback if the +zone has changed. + +.PP +Notifies are not currently supported. + +.SH "SYNTAX" +.PP +.RS + +.nf +transfer [ZONE...] { + to HOST... +} + +.fi +.RE + +.IP \(bu 4 +\fBZONES\fP The zones \fItransfer\fP will answer zone requests for. If left blank, +the zones are inherited from the enclosing server block. To answer zone +transfers for a given zone, there must be another plugin in the same server +block that serves the same zone, and implements \fB\fCtransfer.Transferer\fR. +.IP \(bu 4 +\fB\fCto\fR \fBHOST...\fP The hosts \fItransfer\fP will transfer to. Use \fB\fC*\fR to permit +transfers to all hosts. + + diff --git a/notes/coredns-1.6.5.md b/notes/coredns-1.6.5.md index 479befc71..bb426a99c 100644 --- a/notes/coredns-1.6.5.md +++ b/notes/coredns-1.6.5.md @@ -3,7 +3,7 @@ title = "CoreDNS-1.6.5 Release" description = "CoreDNS-1.6.5 Release Notes." tags = ["Release", "1.6.5", "Notes"] release = "1.6.5" -date = 2019-10-13T10:00:00+00:00 +date = 2019-11-06T10:00:00+00:00 author = "coredns" +++ @@ -14,14 +14,19 @@ A fairly small release that polishes various plugins and fixes a bunch of bugs. # Plugins +A new plugin [*transfer*](/plugins/transfer) that encapsulates the zone transfer knowledge and code +in one place. This makes it easier to add this functionality to new plugins. Plugins that already +implement zone transfers are expected to move to it in the 1.7.0 release. + * [*forward*](/plugins/forward) don't block on returning sockets; instead timeout and drop the - socket on the floor, this makes each go-routine guarantee to exit . + socket on the floor, this makes each go-routine guarantee to exit. * [*kubernetes*](/plugins/kubernetes) adds metrics to measure kubernetes control plane latency, see documentation for details. -* [*file*](/plugins/file) fixes a panic when comparing domains names +* [*file*](/plugins/file) fixes a panic when comparing domains names. ## Brought to You By +Chris O'Haver, Erfan Besharat, Hauke Löffler, Ingo Gottwald, @@ -34,6 +39,7 @@ yuxiaobo96. ## Noteworthy Changes * core: Make request.Request smaller (https://github.com/coredns/coredns/pull/3351) +* pkg/log: Add Clear to stop debug logging (https://github.com/coredns/coredns/pull/3372) * plugin/cache: move goroutine closure to separate function to save memory (https://github.com/coredns/coredns/pull/3353) * plugin/clouddns: remove initialization from init (https://github.com/coredns/coredns/pull/3349) * plugin/erratic: doc and zone transfer (https://github.com/coredns/coredns/pull/3340) @@ -41,4 +47,6 @@ yuxiaobo96. * plugin/forward: make Yield not block (https://github.com/coredns/coredns/pull/3336) * plugin/forward: Move map to array (https://github.com/coredns/coredns/pull/3339) * plugin/kubernetes: Measure and expose DNS programming latency from Kubernetes plugin. (https://github.com/coredns/coredns/pull/3171) -* plugin/route53: remove amazon intialization from init (https://github.com/coredns/coredns/pull/3348) +* plugin/route53: Remove amazon initialization from init (https://github.com/coredns/coredns/pull/3348) +* plugin/transfer: Zone transfer plugin (https://github.com/coredns/coredns/pull/3223) +* plugins: Add MustNormalize (https://github.com/coredns/coredns/pull/3385)