Commit Graph

2478 Commits

Author SHA1 Message Date
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
dependabot-preview[bot]
1a4e635b19 build(deps): bump github.com/farsightsec/golang-framestream (#4117)
Bumps [github.com/farsightsec/golang-framestream](https://github.com/farsightsec/golang-framestream) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/farsightsec/golang-framestream/releases)
- [Commits](https://github.com/farsightsec/golang-framestream/compare/v0.2.0...v0.3.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-14 11:30:06 +02:00
coredns-auto-go-mod-tidy[bot]
5673a9d569 auto go mod tidy 2020-09-14 09:27:40 +00:00
dependabot-preview[bot]
1d5c5e8fff build(deps): bump github.com/Azure/go-autorest/autorest/azure/auth (#4124)
Bumps [github.com/Azure/go-autorest/autorest/azure/auth](https://github.com/Azure/go-autorest) from 0.5.1 to 0.5.2.
- [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.1...autorest/azure/auth/v0.5.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-14 11:27:00 +02:00
Miek Gieben
e082bb5a61 plugin/trace: fix struct allignment (#4112)
* plugin/trace: fix struct allignment

A 64 bit entity needs to be the first in a struct to make it work on 32
bit systems.

Fixes: #4111

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

* plugin/erratic does makes the same mistake

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-09-09 10:45:14 +02:00
Ruslan Drozhdzh
04af1c692c plugin/forward: init ClientSessionCache in tls.Config (#4108)
* plugin/forward: init ClientSessionCache in tls.Config

 - ClientSessionCache may speed up a TLS handshake in upcoming connections
   to the same TLS server

Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>

* add comment

Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
2020-09-08 21:36:06 +08:00
coredns-auto-go-mod-tidy[bot]
ca43f845eb auto go mod tidy 2020-09-07 08:27:02 +00:00
dependabot-preview[bot]
0e441847b5 build(deps): bump github.com/dnstap/golang-dnstap from 0.2.0 to 0.2.1 (#4107)
Bumps [github.com/dnstap/golang-dnstap](https://github.com/dnstap/golang-dnstap) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/dnstap/golang-dnstap/releases)
- [Commits](https://github.com/dnstap/golang-dnstap/compare/v0.2.0...v0.2.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-07 10:26:25 +02:00
coredns-auto-go-mod-tidy[bot]
18c8e1a3f1 auto go mod tidy 2020-09-07 08:25:54 +00:00
dependabot-preview[bot]
c3e8597093 build(deps): bump github.com/aws/aws-sdk-go from 1.34.13 to 1.34.18 (#4105)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.34.13 to 1.34.18.
- [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.13...v1.34.18)

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-07 10:25:20 +02:00
Yong Tang
7b78170041 Fix trailing whitespace (#4103)
The latest commit (e233f59) on master branch introduced a trailing
whitespace and is causing Travis CI build to fail:
https://travis-ci.org/github/coredns/coredns/builds/722988413

This PR fixes the failing test.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-09-06 20:57:56 -04:00
Hu Shuai
e233f59ee8 Fix some typos in comments. (#4100)
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
2020-09-01 09:10:45 +02:00
Miek Gieben
9e4a177d9f clouddns,route53: fix lingering goroutines after restart (#4096)
Stop the context so the refresh loop terminates on restart.

Fixes: #3815

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-08-31 06:39:01 -07:00
coredns-auto-go-mod-tidy[bot]
c126e7fc11 auto go mod tidy 2020-08-31 08:14:07 +00:00
dependabot-preview[bot]
6707bfca2f build(deps): bump github.com/aws/aws-sdk-go from 1.34.5 to 1.34.13 (#4092)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.34.5 to 1.34.13.
- [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.5...v1.34.13)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-31 10:13:32 +02:00
coredns-auto-go-mod-tidy[bot]
8aace11da8 auto go mod tidy 2020-08-31 08:13:12 +00:00
dependabot-preview[bot]
77428f578f build(deps): bump k8s.io/client-go from 0.18.8 to 0.19.0 (#4095)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.18.8 to 0.19.0.
- [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.18.8...v0.19.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-08-31 10:12:33 +02:00
coredns-auto-go-mod-tidy[bot]
bbd341fd59 auto go mod tidy 2020-08-31 08:11:23 +00:00
dependabot-preview[bot]
2620fea518 build(deps): bump github.com/Azure/go-autorest/autorest (#4090)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.11.3 to 0.11.4.
- [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.3...autorest/v0.11.4)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-31 10:10:43 +02:00
Miek Gieben
ecd61a2165 Update the 1.7.1 notes (#4086)
* Update the 1.7.1 notes

Add bunch of PR, remote the text that should show up in the 1.8.0
release.

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

* Update notes/coredns-1.7.1.md

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

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2020-08-28 15:08:37 +02:00
coredns-auto-go-mod-tidy[bot]
aced73f8cb auto make -f Makefile.doc 2020-08-24 07:12:24 +00:00
Olivier Lemasle
f36715e889 Enable debug globally if enabled in any server config (#4007)
* Enable debug globally if enabled in any server config

It was currently enabled only if the plugin debug
was enabled in the last server config of the Corefile.

Signed-off-by: Olivier Lemasle <o.lemasle@gmail.com>

* Add test and update debug's README

Signed-off-by: Olivier Lemasle <o.lemasle@gmail.com>
2020-08-24 09:12:00 +02:00
Zhou Hao
f6262eb2f6 cleanup tempfiles for erratic_autopath_test (#4080)
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
2020-08-20 06:11:56 -07:00
Zhou Hao
abeba46029 fix misspell (#4081)
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
2020-08-20 09:59:35 +02:00
Grant Garrett-Grossman
6c747d7097 Update README.md (#4068)
* Update README.md

Specify that serial must change for the zone file to be reloaded.

Signed-off-by: Grant Garrett-Grossman <grantlg2@illinois.edu>

* Update plugin/auto/README.md

Co-authored-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Grant Garrett-Grossman <grantlg2@illinois.edu>

Co-authored-by: Miek Gieben <miek@miek.nl>
2020-08-19 20:33:40 -07:00
coredns-auto-go-mod-tidy[bot]
aa16e0eff1 auto go mod tidy 2020-08-17 14:42:22 +00:00
dependabot-preview[bot]
82dba58ba9 build(deps): bump github.com/aws/aws-sdk-go from 1.34.0 to 1.34.5 (#4072)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.34.0 to 1.34.5.
- [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.0...v1.34.5)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-17 07:41:48 -07:00
coredns-auto-go-mod-tidy[bot]
7ab99416be auto go mod tidy 2020-08-17 14:21:38 +00:00
dependabot-preview[bot]
d9f2efaac0 build(deps): bump k8s.io/client-go from 0.18.6 to 0.18.8 (#4074)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.18.6 to 0.18.8.
- [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.18.6...v0.18.8)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-17 07:21:00 -07:00
coredns-auto-go-mod-tidy[bot]
2baf2cda13 auto go mod tidy 2020-08-17 13:42:25 +00:00
dependabot-preview[bot]
27a83cdebb build(deps): bump k8s.io/api from 0.18.6 to 0.18.8 (#4073)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.18.6 to 0.18.8.
- [Release notes](https://github.com/kubernetes/api/releases)
- [Commits](https://github.com/kubernetes/api/compare/v0.18.6...v0.18.8)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-17 06:41:50 -07:00
coredns-auto-go-mod-tidy[bot]
9ca82fb28b auto go mod tidy 2020-08-17 13:37:57 +00:00
dependabot-preview[bot]
8ca97dacb6 build(deps): bump github.com/Azure/go-autorest/autorest/azure/auth (#4070)
Bumps [github.com/Azure/go-autorest/autorest/azure/auth](https://github.com/Azure/go-autorest) from 0.5.0 to 0.5.1.
- [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/tracing/v0.5.0...autorest/azure/auth/v0.5.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-08-17 06:37:18 -07:00
Miek Gieben
9230e1772b pkg/upstream: set edns0 and Do when required (#4055)
Set these options of the requests warrents them.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-08-13 09:26:30 -07:00
Yong Tang
1efd7e3694 Bump to golang 1.15 (#4064)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-08-12 11:36:04 -07:00
coredns-auto-go-mod-tidy[bot]
fc8be1e223 auto go mod tidy 2020-08-10 16:26:59 +00:00
dependabot-preview[bot]
a1277df7a5 build(deps): bump github.com/Azure/go-autorest/autorest (#4052)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.11.2 to 0.11.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/v0.11.2...autorest/v0.11.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-08-10 09:26:25 -07:00
dependabot-preview[bot]
459bca0121 build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.25.0 to 1.26.0 (#4050)
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases)
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.25.0...v1.26.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-08-10 09:25:53 -07:00
dependabot-preview[bot]
623095fa36 build(deps): bump github.com/aws/aws-sdk-go from 1.33.17 to 1.34.0 (#4054)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.33.17 to 1.34.0.
- [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.33.17...v1.34.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-08-10 09:25:37 -07:00