Commit graph

2805 commits

Author SHA1 Message Date
dependabot[bot]
ab32b3f72a
build(deps): bump github.com/aws/aws-sdk-go from 1.38.51 to 1.38.55 (#4675) 2021-06-07 06:12:55 -07:00
dependabot[bot]
d151ea74df
build(deps): bump github.com/Azure/go-autorest/autorest (#4672) 2021-06-07 05:52:40 -07:00
dependabot[bot]
ad731b700d
build(deps): bump go.etcd.io/etcd/api/v3 from 3.5.0-beta.4 to 3.5.0-rc.0 (#4670) 2021-06-07 05:52:06 -07:00
coredns[bot]
cd1134f0c9 auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-06-07 10:43:28 +00:00
Sven Nebel
47be274d34
Fix plugin file reload comment (#4665)
Signed-off-by: Sven Nebel <nebel.sven@gmail.com>
2021-06-05 15:06:25 +02:00
Chris O'Haver
e2f70b976a
download -> tidy (#4664)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-06-04 13:52:30 -04:00
Chris O'Haver
846ace3f51
Fix IPv6 case for CIDR format reverse zones (#4652)
* fix ipv6 case for cidr.Class

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* add check and test case for invalid ipv6 cidr

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* net package is bad at detecting ipv6/ipv4

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* rename Class -> Split

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-06-04 10:17:17 +02:00
coredns[bot]
a50c0f151f auto go mod tidy
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-06-02 10:51:29 +00:00
dependabot[bot]
19e14cb0b5
build(deps): bump github.com/aws/aws-sdk-go from 1.38.45 to 1.38.51 (#4657) 2021-05-31 06:23:42 -07:00
dependabot[bot]
0bacc2c953
build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.28.0 to 1.31.1 (#4660) 2021-05-31 06:23:21 -07:00
dependabot[bot]
0566aa3e28
build(deps): bump go.etcd.io/etcd/client/v3 (#4658) 2021-05-31 06:22:45 -07:00
Miek Gieben
bcbe624eb4
Add -p for port flag (#4653)
-p is the default flag in DNS software for setting the port, we use
'dns.port' because of preventing clashes with other caddy software
users. This is no longer an issue, so we can do what we want here.

Add -p to works like -dns.port.

(this PR includes generated manpage, but that shouldn't matter too much)

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-05-28 07:08:13 -07:00
Miek Gieben
053c4d5ca1
Bump version and amend notes to include latest PRs (#4634)
* Bump version and amend notes to include latest PRs

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

* Update notes/coredns-1.8.4.md

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

* Update notes/coredns-1.8.4.md

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

* Update notes/coredns-1.8.4.md

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

* Update notes/coredns-1.8.4.md

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

* Remove newline and set data anew

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

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-28 12:14:09 +02:00
Ben Kochie
9edfaed631
Reduce the cardinality of health endpoint metrics (#4650)
The health endpoint histogram has a large amount of cardinality for a
simple endpoint. Introduce a new "Slim" set of buckets for `/health` to
reduce the metrics load on large deployments. Especially those that have
per-node DNS caching services.

Add a metric to count internal health check failures rather than use the
timeout value as side effect monitor of the check error. This avoids
incorrectly recording the timeout value if there is an error that is not
a timeout (ex. refused)

Signed-off-by: SuperQ <superq@gmail.com>
2021-05-27 15:16:38 +02:00
uesyn
4c0fdc3909
plugin/kubernetes: consistently choose EndpointSlices or Endpoints for unstable API (#4647)
* confirm endpointslices is served or not

Signed-off-by: uesyn <suemura@zlab.co.jp>

* Apply suggestions

Signed-off-by: uesyn <suemura@zlab.co.jp>
2021-05-27 08:48:52 -04:00
Chris O'Haver
d8a0d97df2
deprecate Normalize and MustNormalize (#4648)
* deprecate normalize and mustnormalize

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* add runtime warning

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* elaborate runtime warning

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* include caller info

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-27 13:26:14 +02:00
coredns[bot]
b56f2efe54 auto go mod tidy
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-05-26 10:37:37 +00:00
dependabot[bot]
037802dae5
build(deps): bump google.golang.org/grpc from 1.37.1 to 1.38.0 (#4643)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.37.1 to 1.38.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.37.1...v1.38.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 07:33:16 -07:00
dependabot[bot]
ca9a8584eb
build(deps): bump k8s.io/client-go from 0.21.0 to 0.21.1 (#4646)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.21.0 to 0.21.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.21.0...v0.21.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-24 10:07:51 -04:00
dependabot[bot]
2741b5d3ca
build(deps): bump github.com/prometheus/common from 0.24.0 to 0.25.0 (#4644)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.24.0...v0.25.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 06:48:34 -07:00
dependabot[bot]
5fdfb67484
build(deps): bump k8s.io/apimachinery from 0.21.0 to 0.21.1 (#4642)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.21.0...v0.21.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 06:47:55 -07:00
dependabot[bot]
fa5f715dfa
build(deps): bump google.golang.org/api from 0.29.0 to 0.47.0 (#4641)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.29.0 to 0.47.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.29.0...v0.47.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 06:47:44 -07:00
dependabot[bot]
e097dfdc2d
build(deps): bump github.com/aws/aws-sdk-go from 1.38.40 to 1.38.45 (#4640)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.38.40 to 1.38.45.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.40...v1.38.45)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 06:47:30 -07:00
Miek Gieben
163ac033ae
Revert "plugin/file: Fix in wrong answers returned when wildcard and concrete records exist (#4599)" (#4633)
reverting as I don't want to release 1.8.4 with this enabled.

This reverts commit fbf3f07f46.
2021-05-20 16:25:18 -04:00
Chris O'Haver
0348b019be
plugin/forward: Document and warn for unsupported FROM CIDR notations (#4639)
* trap unsupported FROM cidr notations

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* make is a warning

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-20 09:24:36 +02:00
Miek Gieben
5d80a6e21e
Fix obsure crash in Corefile parsing (#4637)
This was found by fuzzing.

We need to make this a fully qualified domain name to catch all errors
in dnsserver/register.go and not later when plugin.Normalize() is called again on these
strings, with the prime difference being that the domain name is fully
qualified. This was found by fuzzing where "ȶ" is deemed OK, but "ȶ." is
not (might be a bug in miekg/dns actually). But here we were checking ȶ,
which is OK, and later we barf in ȶ. leading to "index out of range".

Added a tests and check manually if it would crash with the current code
(yes), and fail with an error in this PR (yes).

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-05-19 10:38:37 -07:00
Chris O'Haver
df736adbc8
bump etcd to v3.5.0-beta3 (#4638)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-19 09:30:06 -07:00
coredns[bot]
5ebcea9ccd auto go mod tidy
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-05-19 10:31:30 +00:00
Chris O'Haver
e4f7f19f58
bump etcd to v3.5.0-beta2 (#4635)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-19 11:03:33 +02:00
Jason Du
fbf3f07f46
plugin/file: Fix in wrong answers returned when wildcard and concrete records exist (#4599)
* plugin/file: Fix in wrong answers returned when wildcard and concrete records exist

Signed-off-by: Jason Du <xdu@infoblox.com>

* Remove superfluous change

Signed-off-by: Jason Du <xdu@infoblox.com>

* Re-implementation and new test case
If the domain's terminal is neither the matching wildcard, nor a domian directly
under the wildcard, return NXDOMAIN

Signed-off-by: Jason Du <xdu@infoblox.com>

* Fix empty non-terminal & add test case

Signed-off-by: Jason Du <xdu@infoblox.com>

* Cleanup

Signed-off-by: Jason Du <xdu@infoblox.com>

* Fix case on domain name with character before * and add more test cases

Signed-off-by: Jason Du <xdu@infoblox.com>

* Use different IPs for records in cornerCasesWildcard zone file

Signed-off-by: Jason Du <xdu@infoblox.com>
2021-05-17 13:21:08 -07:00
Miek Gieben
5f41d8eb1f
reverse zone: fix Normalize (#4621)
Make normalize return multiple "hosts" (= reverse zones) when a
non-octet boundary cidr is given.

Added pkg/cidr package that holds the cidr calculation routines; felt
they didn't really fit dnsutil.

This change means the IPNet return parameter isn't needed, the hosts are
all correct. The tests that tests this is also removed: TestSplitHostPortReverse
The fallout was that zoneAddr _also_ doesn't need the IPNet member, that
in turn make it visible that zoneAddr in address.go duplicated a bunch
of stuff from register.go; removed/refactored that too.

Created a plugin.OriginsFromArgsOrServerBlock to help plugins do the
right things, by consuming ZONE arguments; this now expands reverse
zones correctly. This is mostly mechanical.

Remove the reverse test in plugin/kubernetes which is a copy-paste from
a core test (which has since been fixed).

Remove MustNormalize as it has no plugin users.

This change is not backwards compatible to plugins that have a ZONE
argument that they parse in the setup util.

All in-tree plugins have been updated.

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-05-17 13:19:54 -07:00
Chris O'Haver
5409379648
consider nil ready as ready (#4632)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-17 16:10:30 -04:00
dependabot[bot]
fc24fe076f
build(deps): bump github.com/aws/aws-sdk-go from 1.38.37 to 1.38.40 (#4630)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.38.37 to 1.38.40.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.37...v1.38.40)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 00:24:08 -07:00
dependabot[bot]
aaad8dbf14
build(deps): bump github.com/prometheus/common from 0.23.0 to 0.24.0 (#4629)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.23.0...v0.24.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 00:23:54 -07:00
Jason Du
d1f520a5b2
Fix etcd to use v3.5.0-alpha.0 (#4628)
Signed-off-by: Jason Du <xdu@infoblox.com>
2021-05-14 23:55:01 -07:00
Miek Gieben
ef0feaed31
1.8.4 notes: set date to today (#4627) 2021-05-14 07:09:55 -07:00
Keith Coleman
184d5e5214
check for two days of remaining validity (#4606)
Signed-off-by: Keith C <keith@fraudmarc.com>
2021-05-14 10:49:16 +02:00
Yong Tang
7b43d04269
Update 1.8.4 note, in preparation of release (#4624) 2021-05-12 14:12:55 -07:00
Chris O'Haver
03bfc8b033
add note about endpointslice list/watch requirement (#4623)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-12 11:08:17 -07:00
coredns[bot]
3f64a21329 auto go mod tidy
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-05-12 10:31:32 +00:00
Miek Gieben
795c02eff9
Add preliminary notes for 1.8.4 (#4535)
* Add preliminary notes for 1.8.4

Draft notes for 1.8.4

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

* Update notes/coredns-1.8.4.md

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

* Update notes/coredns-1.8.4.md

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

* Update notes/coredns-1.8.4.md

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

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-11 10:37:01 +02:00
dependabot[bot]
c6cd160ec4
build(deps): bump github.com/aws/aws-sdk-go from 1.38.30 to 1.38.37 (#4619)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.38.30 to 1.38.37.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.30...v1.38.37)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 10:32:36 +02:00
Miek Gieben
e42614edc5
reverse zones (#4538)
* core: fix v4 non-octet reverse zones

This fixes the reverse zones handling. Add expanstion of the reverse
notation to all octet boundary subnets and add those to the config - just as if
they were directly typed in the config.

This takes inspiration from #4501, but that (even with DCO!!) seems to
be just using https://github.com/apparentlymart/go-cidr/ so use that
instead - I think a minor function is still needed that one is copied
from #4501.

Also sort the zones we are listing on startup - caught in this PR
because of the expanded zones being not listed next to each other.

This also removes the need for FilterFunc from the config, so this is
now gone as well, making the whole thing slightly more efficient.

Add couple of reverse unit tests and a e2e test that queries for the
correct (and incorrect) reverse zones and checks the reply.

Closes: #4501
Fixes: #2779

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

* Add more test cases

Add test from origin bug report: #2779

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

* Rebase and fix conflicts

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-05-11 09:50:18 +02:00
Steve Greene
fdfc9bcdd2
test: Fix rare race condition in TestZoneReload (#4617)
The following test failure for `TestZoneReload` can be observed
periodically:

`file_reload_test.go:58: Expected two RR in answer section got 2`

This failure can be consistently reproduced using the following command
(on my machine, at least):

`( cd test ; go test -v -race -run "TestZoneReload" ./... -count=500)`

test/file_reload_test.go:

Address a typo in a test failure message.

Sleep for double the file reload interval to avoid a rare
race condition between test code and the file plugin's reload code,
which is presumably a result of the time it takes to actually reload.

Signed-off-by: Stephen Greene <sgreene@redhat.com>
2021-05-11 09:11:20 +02:00
Chris O'Haver
0a3375e76b
copy unready exclusion to v1beta1 func (#4616)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-10 13:29:56 -04:00
Chris O'Haver
24547447d0
plugin/kubernetes: Support both v1 and v1beta1 EndpointSlices (#4570)
* support v1 and v1beta1 endpointslice

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* update comments

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-05-10 09:57:23 -07:00
dependabot[bot]
7354552296
build(deps): bump github.com/miekg/dns from 1.1.41 to 1.1.42 (#4612) 2021-05-10 06:08:54 -07:00
Keith Coleman
611500b7d4
plugin/dnssec: interface type correction for periodicClean sig validity check (#4608)
Signed-off-by: Keith C <keith@fraudmarc.com>
2021-05-06 10:33:16 +02:00
Yury Tsarev
8487111871
Add Absa to Adopters list (#4604)
Signed-off-by: Yury Tsarev <yury.tsarev@absa.africa>
2021-05-05 14:41:31 +02:00
Théotime Lévêque
8e17f753d9
Add backmarket.com to adopters list (#4603) 2021-05-05 05:15:12 -07:00