Commit Graph

2666 Commits

Author SHA1 Message Date
coredns-auto-go-mod-tidy[bot]
02f2474824 auto go mod tidy 2020-10-12 10:50:21 +00:00
dependabot-preview[bot]
0a1a35241a build(deps): bump github.com/Azure/go-autorest/autorest/azure/auth (#4195)
Bumps [github.com/Azure/go-autorest/autorest/azure/auth](https://github.com/Azure/go-autorest) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/Azure/go-autorest/releases)
- [Changelog](https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/azure/auth/v0.5.2...autorest/azure/auth/v0.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 03:49:46 -07:00
coredns-auto-go-mod-tidy[bot]
151cf9563e auto go mod tidy 2020-10-12 10:15:03 +00:00
dependabot-preview[bot]
d7063cc244 build(deps): bump github.com/aws/aws-sdk-go from 1.35.2 to 1.35.7 (#4191)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.35.2 to 1.35.7.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.35.2...v1.35.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 03:14:28 -07:00
coredns-auto-go-mod-tidy[bot]
41b6f69c27 auto go mod tidy 2020-10-12 09:49:37 +00:00
dependabot-preview[bot]
ac54a03eb2 build(deps): bump github.com/cenkalti/backoff/v4 from 4.0.2 to 4.1.0 (#4192)
Bumps [github.com/cenkalti/backoff/v4](https://github.com/cenkalti/backoff) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/cenkalti/backoff/releases)
- [Commits](https://github.com/cenkalti/backoff/compare/v4.0.2...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 02:49:00 -07:00
dependabot-preview[bot]
985892acfc build(deps): bump github.com/miekg/dns from 1.1.31 to 1.1.32 (#4193)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.31 to 1.1.32.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.31...v1.1.32)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 02:48:43 -07:00
dependabot-preview[bot]
0b0272c967 build(deps): bump github.com/Azure/go-autorest/autorest (#4194)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.11.7 to 0.11.10.
- [Release notes](https://github.com/Azure/go-autorest/releases)
- [Changelog](https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/v0.11.7...autorest/v0.11.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 02:48:11 -07:00
Miek Gieben
02f52b5d27 notes: more PR and clarify backwards incompat changes (#4185)
A new PR and author. Also clarify the impact of the backwards
incompatible changes are minimal for most users.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-10-08 09:08:03 +02:00
Miek Gieben
04e532b257 core: fix crash with no plugins (#4184)
* core: fix crash with no plugins

A Corefile that defines a zone without plugins crashes coredns with the
stack trace below. Change this to return a refused.

~~~ corefile
 example.org {
    whoami
    log
    cache
    debug
}

example.net {
}
~~~

Asking for anyhing in example.net does this. Add test that tests this.

~~~
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xa5e6a4]

goroutine 55 [running]:
github.com/coredns/coredns/core/dnsserver.(*Server).ServeDNS(0xc000438f60, 0x2059420, 0xc0005a4030, 0x206c0e0, 0xc000522140, 0xc0005ae000)
	/home/miek/src/github.com/coredns/coredns/core/dnsserver/server.go:247 +0x884
github.com/coredns/coredns/core/dnsserver.(*Server).ServePacket.func1(0x206dd00, 0xc00009e180, 0xc0005ae000)
	/home/miek/src/github.com/coredns/coredns/core/dnsserver/server.go:126 +0xaf
github.com/miekg/dns.HandlerFunc.ServeDNS(0xc000529270, 0x206dd00, 0xc00009e180, 0xc0005ae000)
	/home/miek/go/pkg/mod/github.com/miekg/dns@v1.1.31/server.go:37 +0x44
github.com/miekg/dns.(*Server).serveDNS(0xc000286c60, 0xc000282400, 0x34, 0x200, 0xc00009e180)
	/home/miek/go/pkg/mod/github.com/miekg/dns@v1.1.31/server.go:609 +0x2f7
github.com/miekg/dns.(*Server).serveUDPPacket(0xc000286c60, 0xc0003b03b4, 0xc000282400, 0x34, 0x200, 0xc00000e320, 0xc000522080)
	/home/miek/go/pkg/mod/github.com/miekg/dns@v1.1.31/server.go:549 +0xb2
created by github.com/miekg/dns.(*Server).serveUDP
	/home/miek/go/pkg/mod/github.com/miekg/dns@v1.1.31/server.go:479 +0x292
~~~

Also fix single typo in chaos_test.go

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix naming

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-10-07 15:58:14 +02:00
Johnny Bergström
383cc2809b fix alpn for http/2 upgrade when using DoH (#4182)
Signed-off-by: Johnny Bergström <johnny@klaudify.se>
2020-10-06 15:38:12 +02:00
coredns-auto-go-mod-tidy[bot]
f2ec292e46 auto go mod tidy 2020-10-05 09:31:16 +00:00
dependabot-preview[bot]
f2d0dca62e build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.26.0 to 1.27.0 (#4177)
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases)
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.26.0...v1.27.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-05 02:30:35 -07:00
coredns-auto-go-mod-tidy[bot]
7339235de1 auto go mod tidy 2020-10-05 08:18:05 +00:00
dependabot-preview[bot]
145a75c5ed build(deps): bump github.com/Azure/go-autorest/autorest (#4176)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.11.6 to 0.11.7.
- [Release notes](https://github.com/Azure/go-autorest/releases)
- [Changelog](https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/v0.11.6...autorest/v0.11.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-05 10:17:33 +02:00
dependabot-preview[bot]
098363ada6 build(deps): bump github.com/aws/aws-sdk-go from 1.34.32 to 1.35.2 (#4175)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.34.32 to 1.35.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.32...v1.35.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-05 10:17:23 +02:00
dependabot-preview[bot]
7295104989 build(deps): bump github.com/dnstap/golang-dnstap from 0.2.1 to 0.2.2 (#4174)
Bumps [github.com/dnstap/golang-dnstap](https://github.com/dnstap/golang-dnstap) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/dnstap/golang-dnstap/releases)
- [Commits](https://github.com/dnstap/golang-dnstap/compare/v0.2.1...v0.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-05 10:17:14 +02:00
Chris O'Haver
042e57a177 fix lameduck docs (#4169)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-10-01 08:03:34 -07:00
Miek Gieben
6edc8fe7f6 More 1.8.0 notes updates: add latest merged PRs (#4168)
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-10-01 08:02:57 -07:00
Chris O'Haver
b1a69f70bd dont return 200 during shutdown (#4167)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-10-01 16:13:23 +02:00
Macks
a0f7120864 plugins/auto: allow fallthrough if no zone match (#4166)
* plugins/auto: allow fallthrough if no zone match

this is a solution to #3033

Signed-off-by: Macks <macksme@outlook.com>

* plugin/auto.go remove whitespace

Signed-off-by: Macks <macksme@outlook.com>
2020-10-01 15:25:19 +02:00
Chris O'Haver
275a62c70a update README examples to use transfer plugins (#4163)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-09-30 17:57:18 +02:00
Miek Gieben
5235b35e3f doh support: make no TLS config fatal (#4162)
without TLS you can't have a functioning DoH server as no client will be
able to talk to it. Make this a fatal failure.

Add some extra docs on how to start a DoH capable server.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-30 17:17:24 +02:00
Miek Gieben
0cb0136570 Add proto and remote tags to trace plugin (#4159)
* Add proto and client-ip trace tags

Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>

* Commit my own suggestion

Signed-off-by: Miek Gieben <miek@miek.nl>

Co-authored-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
2020-09-29 10:43:58 +02:00
Miek Gieben
a617ef3064 update 1.8.0 notes (#4156)
* typos fixed
* a cache fix
* update/finalize some other bits

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-28 10:53:50 -07:00
Miek Gieben
35b40a84f2 plugin/cache: Fix filtering (#4148)
The filtering of DNSSEC records in the cache plugin was not done
correctly. Also the change to introduced this bug didn't take into
account that the cache - by virtue of differentiating between DNSSEC and
no-DNSSEC - relied on not copying the data from the cache.

This change copies and then filters the data and factors the filtering
into a function that is used in two places (albeit with on ugly boolean
parameters to prevent copying things twice).

Add tests, do_test.go is moved to test/cache_test.go because the OPT
handing is done outside of the cache plugin. The core server re-attaches
the correct OPT when replying, so that makes for a better e2e test.

Added small unit test for filterRRslice and an explicit test that asks
for DNSSEC first and then plain, and vice versa to test cache behavior.

Fixes: #4146

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-28 07:53:00 -07:00
coredns-auto-go-mod-tidy[bot]
1a1ce9a9c8 auto go mod tidy 2020-09-28 12:58:12 +00:00
dependabot-preview[bot]
1cb9d90d6e build(deps): bump github.com/aws/aws-sdk-go from 1.34.22 to 1.34.32 (#4153)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.34.22 to 1.34.32.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.22...v1.34.32)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-28 14:57:35 +02:00
dependabot-preview[bot]
efb5024b4d build(deps): bump k8s.io/client-go from 0.19.1 to 0.19.2 (#4150)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.19.1 to 0.19.2.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.19.1...v0.19.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-28 14:57:12 +02:00
dependabot-preview[bot]
db1439fe5f build(deps): bump github.com/prometheus/common from 0.13.0 to 0.14.0 (#4149)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.13.0...v0.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-28 14:56:58 +02:00
Miek Gieben
25c3ef52f2 Add notes for next 1.8.0 release (#4143)
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-24 12:40:40 -07:00
coredns-auto-go-mod-tidy[bot]
8c6ca43571 auto make -f Makefile.doc 2020-09-24 18:30:59 +00:00
Yong Tang
9798dd067f Cherry-pick: Implement notifies for transfer plugin (#3972) (#4142)
* Implement notifies for transfer plugin (#3972)

* Fix notifies in transfer plugin

Signed-off-by: Miek Gieben <miek@miek.nl>

* Make it compile

Signed-off-by: Miek Gieben <miek@miek.nl>

* Port more plugins

Signed-off-by: Miek Gieben <miek@miek.nl>

* golint

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix tests

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix notifies in transfer plugin

Signed-off-by: Miek Gieben <miek@miek.nl>

* Make it compile

Signed-off-by: Miek Gieben <miek@miek.nl>

* Port more plugins

Signed-off-by: Miek Gieben <miek@miek.nl>

* golint

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix tests

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix tests

Signed-off-by: Miek Gieben <miek@miek.nl>

* really fix test

Signed-off-by: Miek Gieben <miek@miek.nl>

* Implement ixfr fallback and unify file and auto for transfering

Signed-off-by: Miek Gieben <miek@miek.nl>

* Add transfer tests

copied and modified from #3452

Signed-off-by: Miek Gieben <miek@miek.nl>

* Test correct selection of plugin

Signed-off-by: Miek Gieben <miek@miek.nl>

* add upstream back in

Signed-off-by: Miek Gieben <miek@miek.nl>

* Implement ixfr fallback and unify file and auto for transfering

Signed-off-by: Miek Gieben <miek@miek.nl>

* fix test

Signed-off-by: Miek Gieben <miek@miek.nl>

* properly merge

Signed-off-by: Miek Gieben <miek@miek.nl>

* Remove plugin/kubernetes/setup_transfer_test.go

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

Co-authored-by: Miek Gieben <miek@miek.nl>
2020-09-24 20:30:39 +02:00
coredns-auto-go-mod-tidy[bot]
279194f2e4 auto go mod tidy 2020-09-24 16:15:18 +00:00
Miek Gieben
b003d06003 For caddy v1 in our org (#4018)
* For caddy v1 in our org

This RP changes all imports for caddyserver/caddy to coredns/caddy. This
is the v1 code of caddy.

For the coredns/caddy repo the following changes have been made:

* anything not needed by us is deleted
* all `telemetry` stuff is deleted
* all its import paths are also changed to point to coredns/caddy
* the v1 branch has been moved to the master branch
* a v1.1.0 tag has been added to signal the latest release

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix imports

Signed-off-by: Miek Gieben <miek@miek.nl>

* Group coredns/caddy with out plugins

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove this file

Signed-off-by: Miek Gieben <miek@miek.nl>

* Relax import ordering

github.com/coredns is now also a coredns dep, this makes
github.com/coredns/caddy fit more natural in the list.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix final import

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-24 18:14:41 +02:00
Miek Gieben
24e668ecf0 goreport card fixes (#4139)
This fixes some inefassign as report by Go report card:
https://goreportcard.com/report/github.com/coredns/coredns

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-22 09:22:00 +02:00
Miek Gieben
aa82ca62fb coredns: bump version to 1.7.1 (#4136)
Set correct date on the release notes and add one more PR (for cache)

Signed-off-by: Miek Gieben <miek@miek.nl>
v1.7.1
2020-09-21 12:10:03 +02:00
Miek Gieben
16d489851e plugin/hosts: make hosts plugin cursive (#4131)
nit-picking PR, when using the name of the plugin make it cursive.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-18 02:39:11 -07:00
Miek Gieben
acf9a0fa19 cache: default to DNSSEC (#4085)
* cache: default to DNSSEC

This change does away with the DNS/DNSSEC distinction the cache
currently makes. Cache will always make coredns perform a DNSSEC query
and store that result. If a client just needs plain DNS, the DNSSEC
records are stripped from the response.

It should also be more memory efficient, because we store a reply once
and not one DNS and another for DNSSEC.

Fixes: #3836

Signed-off-by: Miek Gieben <miek@miek.nl>

* Change OPT RR when one is present in the msg.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix comment for isDNSSEC

Signed-off-by: Miek Gieben <miek@miek.nl>

* Update plugin/cache/handler.go

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>

* Update plugin/cache/item.go

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>

* Code review; fix comment for isDNSSEC

Signed-off-by: Miek Gieben <miek@miek.nl>

* Update doc and set AD to false

Set Authenticated Data to false when DNSSEC was not wanted. Also update
the readme with the new behavior.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Update plugin/cache/handler.go

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2020-09-17 07:28:43 -07:00
Miek Gieben
22b6846626 notes: update 1.7.1 (#4128)
Updates the notes with latest PRs. I want the cache PR to be included in
this release as well, if possible.

Should release somewhere this week.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-17 05:55:10 -07:00
coredns-auto-go-mod-tidy[bot]
a48426eef4 auto go mod tidy 2020-09-16 18:33:38 +00:00
Zou Nengren
8e1ab71720 bump prometheus with zipkin (#4109)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
2020-09-16 11:33:08 -07:00
Ruslan Drozhdzh
f96a2f1f69 plugin/forward: fix panic when expire is configured as 0s (#4115)
Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
2020-09-15 14:36:39 +02:00
coredns-auto-go-mod-tidy[bot]
0329de55c7 auto go mod tidy 2020-09-14 09:57:14 +00:00
dependabot-preview[bot]
a97d03226a build(deps): bump github.com/aws/aws-sdk-go from 1.34.18 to 1.34.22 (#4118)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.34.18 to 1.34.22.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.34.18...v1.34.22)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-14 11:56:40 +02:00
coredns-auto-go-mod-tidy[bot]
fd49c80514 auto make -f Makefile.doc 2020-09-14 09:43:13 +00:00
Ruslan Drozhdzh
30a4a87eaa plugin/forward: add hit/miss metrics for connection cache (#4114)
Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
2020-09-14 11:42:55 +02:00
coredns-auto-go-mod-tidy[bot]
2fe5d684f9 auto go mod tidy 2020-09-14 09:36:18 +00:00
dependabot-preview[bot]
63efda7950 build(deps): bump k8s.io/client-go from 0.19.0 to 0.19.1 (#4120)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.19.0 to 0.19.1.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.19.0...v0.19.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-14 11:35:43 +02:00
coredns-auto-go-mod-tidy[bot]
dbab5a7a62 auto go mod tidy 2020-09-14 09:30:41 +00:00