Commit Graph

1867 Commits

Author SHA1 Message Date
dependabot-preview[bot]
555e4877ae build(deps): bump github.com/aws/aws-sdk-go from 1.21.2 to 1.22.3 (#3116)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.21.2 to 1.22.3.
- [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.21.2...v1.22.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-12 18:28:39 +00:00
dependabot-preview[bot]
04fa7d1e71 build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.16.0 to 1.16.1 (#3114)
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go) from 1.16.0 to 1.16.1.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases)
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.16.0...v1.16.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-12 18:26:51 +00:00
dependabot-preview[bot]
a5de7932c5 build(deps): bump github.com/Azure/go-autorest/autorest (#3112)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.5.0 to 0.8.0.
- [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.5.0...autorest/v0.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-12 18:26:37 +00:00
dependabot-preview[bot]
cdbe55e551 build(deps): bump github.com/prometheus/client_golang (#3111)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.0.0...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-12 18:26:01 +00:00
Miek Gieben
6466d01055 doc: formatting and point to plugin.md (#3107)
* doc: formatting and point to plugin.md

Slight tweaks in CONTRIBUTING.md and point to plugin.md which also has a
bunch of info.

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

* Update plugin.md

Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>

* Add minimize to configuration knobs

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

* more

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-12 18:24:57 +00:00
Andrey Meshkov
1ef24a8813 Fix handling truncated responses in forward (#3110)
* Fix handling truncated responses in forward

* Removed error check after proxy.Connect
See https://github.com/coredns/coredns/pull/3110/files#r312942826
2019-08-12 18:24:16 +00:00
Miek Gieben
ebe6a41e50 deps: up klog to 0.4.0 (#3109)
New version to get the fix for:
https://github.com/kubernetes/klog/pull/83
which can fix:
https://github.com/coredns/coredns/pull/3055

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-10 07:19:59 +00:00
Chris O'Haver
3a59c833a0 plugin/kubernetes: Don't do a zone transfer for NS requests (#3098)
* fix switch order

* remove fallthough

* add test

* fix test

* distingush nxdomain/nodata for at least first subdomain of zone

* restore fallthough; reorder switch cases
2019-08-09 21:14:48 +00:00
Miek Gieben
6a6e9a9b33 mechanical: run: go gen and make -f Makefile.doc (#3104)
no manual updates; just generated stuff.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-09 08:40:30 -07:00
Miek Gieben
1bb753c5b0 plugin/azure: clean up readme (#3102)
document the environment option and some cleanups. Go over the code and
fix/tweak random bits here and there.

Condense a few lines here and there.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-09 08:10:26 -07:00
Darshan Chaudhary
879466b028 Add plugin for Azure DNS (#2945)
* Add plugin for Azure DNS

Signed-off-by: darshanime <deathbullet@gmail.com>

* Rename AzureDNS plugin to Azure

Signed-off-by: darshanime <deathbullet@gmail.com>

* remove upstream from azure syntax

Signed-off-by: darshanime <deathbullet@gmail.com>

* Rename azure plugin block keynames

Signed-off-by: darshanime <deathbullet@gmail.com>

* Normalize zone name before lookup in zones

Signed-off-by: darshanime <deathbullet@gmail.com>

* Update import path for caddy

Signed-off-by: darshanime <deathbullet@gmail.com>

* normalize azure zone name only if required

Signed-off-by: darshanime <deathbullet@gmail.com>

* Add support for MX, SRV, TXT, records

Signed-off-by: darshanime <deathbullet@gmail.com>

* Add specs for new record types

Signed-off-by: darshanime <deathbullet@gmail.com>

* Use sequential updates for zones

Signed-off-by: darshanime <deathbullet@gmail.com>

* Add OWNERS file for azure plugin

Signed-off-by: darshanime <deathbullet@gmail.com>

* Rename imports for third party packages

Signed-off-by: darshanime <deathbullet@gmail.com>

* Capitalize values in README

Signed-off-by: darshanime <deathbullet@gmail.com>

* Shorten keys for azure plugin config

Signed-off-by: darshanime <deathbullet@gmail.com>

* Fixup readme for azure plugin

Signed-off-by: darshanime <deathbullet@gmail.com>
2019-08-09 08:10:28 +01:00
ethan
5b74d0f957 metrics.go: hemp message correction (#3100)
Signed-off-by: ethan <guangming.wang@daocloud.io>
2019-08-08 18:27:53 +02:00
Miek Gieben
935354deb3 README: add DoH example (#3096)
Show example for DoH. And cleanup the README (format to 80 column
linewidth).

Fixes: #3094

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-08 15:17:53 +01:00
dependabot-preview[bot]
883d47685f build(deps): bump github.com/prometheus/client_golang (#3090)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.0.0...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-05 07:50:38 -07:00
dependabot-preview[bot]
cdb2c8e765 build(deps): bump github.com/aws/aws-sdk-go from 1.21.6 to 1.21.9 (#3089)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.21.6 to 1.21.9.
- [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.21.6...v1.21.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-05 07:50:21 -07:00
Matt Kulka
94468c41b0 plugin/route53: make refresh frequency adjustable (#3083)
the current update frequency for the refresh loop in the route 53 plugin is hard-coded
to 1 minute. aws rate-limits the number of api requests so less frequent record refreshes
can help when reaching those limits depending upon your individual scenarios. this pull
adds a configuration option to the route53 plugin to adjust the refresh frequency.

thanks for getting my last pull released so quickly. this is the last local change that
i have been running and would love to get it contributed back to the project.

Signed-off-by: Matt Kulka <mkulka@parchment.com>
2019-08-03 18:07:28 -07:00
Miek Gieben
fc1e313ca7 plugin/file: unify a serial logging (#3088)
Use %d SOA serial when logging about the SOA serial.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-03 02:31:01 -07:00
Miek Gieben
6faff83d7f Make -f Makefile.doc: mechanical change (#3082)
Wanted this *before* 1.6.1 but I forgot; ah well...

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-01 14:00:37 +00:00
Miek Gieben
1fda5703fc Release 1.6.1 (#3081)
... and another one

Signed-off-by: Miek Gieben <miek@miek.nl>
v1.6.1
2019-08-01 09:50:28 -04:00
Miek Gieben
a01b202b6a Fixes races in test and klog (#3079)
Various fixes to make things less flaky:

* kubernetes: put klog.SetOutput in the setup function, not in the init
  function to see if that helps
* file: make z.Expired a boolean instead of a pointer to a boolean
* test: fix TestSecondaryZoneTransfer test, which wasn't actually
  testing in the right way. It's more right now, but may still be racy
  (race introduced because a file's lazy loading of zones)

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-01 05:51:37 -07:00
Miek Gieben
3219a2b93a Release notes for 1.6.1 (#3080)
Add the new (short) notes for the 1.6.1 release.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-01 05:51:14 -07:00
Miek Gieben
07f016191d plugin/hosts: create inline map in setup (#3071)
* plugin/hosts: create inline map in setup

The inline map wasn't create in the setup.go fuction leading to a crash,
which is masked by a recover (but leads to a SERVFAIL, and not logging
the request).

Various other simplifications.

host plugin could use some test that actually cover these edgecases.

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

* PR review changes

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-31 19:37:09 +00:00
Matt Kulka
45e17c325c [plugin/route53]: Increase ListResourceRecordSets paging size. (#3073)
without the paging parameter set, it will default to 100 records per request. with large enough zones and
potentially multiple coredns daemons configured to pull from route 53, this can quickly add up and reach
aws global api rate limits (5/sec per root account). increasing paging to max can help reduce the number
of requests needed to pull records for a zone without no down side that i am aware of.

this helps issue #2353, but probably is not a complete fix.

Signed-off-by: Matt Kulka <mkulka@parchment.com>
2019-07-31 12:09:10 -07:00
Miek Gieben
cd5dcebe93 core: log panics (#3072)
These are too hidden now. They increase the issue-load, because people
don't see them.

Add log.Errorf in the core/dnsserver recover routine.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-31 18:18:49 +00:00
Alan
7be2226eab fix ineffectual assignment to err (#3066)
Signed-off-by: alan <zg.zhu@daocloud.io>
2019-07-31 06:47:46 +00:00
Yong Tang
b8f40a8150 Move github.com/openzipkin/zipkin-go-opentracing => github.com/openzipkin-contrib/zipkin-go-opentracing (#3070)
Move github.com/openzipkin/zipkin-go-opentracing => github.com/openzipkin-contrib/zipkin-go-opentracing
and run `go mod tidy`

Fixes 3069

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-07-31 06:44:56 +00:00
Erik Wilson
367d285765 plugin/reload: Graceful reload of imported files (#3068)
Automatically submitted.
2019-07-30 22:44:16 +00:00
Miek Gieben
4fda9535d2 plugin/kubernetes: remove some of the klog setup (#3054)
I don't believe this is actually needed (anymore). The:

os.Stderr = os.Stdout

is a crazy hack that def. needs to go.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-30 16:35:07 +00:00
dependabot-preview[bot]
6cea8869cf build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.16.0 to 1.16.1 (#3061)
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go) from 1.16.0 to 1.16.1.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases)
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.16.0...v1.16.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-29 08:10:42 -07:00
dzzg
7122fda09d cleanup: error message typos in setup_test.go (#3065)
Signed-off-by: zhengguang zhu <zhengguang.zhu@daocloud.io>
2019-07-29 07:58:45 -07:00
dependabot-preview[bot]
c3516279ed build(deps): bump github.com/aws/aws-sdk-go from 1.21.2 to 1.21.6 (#3060)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.21.2 to 1.21.6.
- [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.21.2...v1.21.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-29 06:55:36 -07:00
dependabot-preview[bot]
f50e1dc912 build(deps): bump google.golang.org/grpc from 1.22.0 to 1.22.1 (#3062)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.22.0 to 1.22.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.22.0...v1.22.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-29 06:55:23 -07:00
AllenZMC
79f352d2b3 fix typos in coredns-1.5.2.md (#3063) 2019-07-29 09:35:29 -04:00
Miek Gieben
0a218d3cf4 Tag v1.6.0 (#3059)
Signed-off-by: Miek Gieben <miek@miek.nl>
v1.6.0
2019-07-28 20:00:28 +00:00
Michael Grosser
5a2a422b38 Fix typo 2019-07-28 10:03:46 +00:00
Miek Gieben
4ecc9c4c43 release: coredns 1.6.0 release (#3058)
* fix the notes and set release date to today
* run a 'make -f Makefile.doc' to generate the manal pages.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-28 10:02:52 +00:00
Miek Gieben
b209cb162c contrib: add words on adding new plugins (#3057)
* contrib: add words on adding new plugins

New plugins are usually dropped in one giant ball of code, add some
words on how this can be approached and made to work faster.

(will at least give us something to point at)

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

* Update CONTRIBUTING.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>

* Update CONTRIBUTING.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>

* Update CONTRIBUTING.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>
2019-07-28 10:02:38 +00:00
Miek Gieben
92a636df53 plugin/file: z.Expired needs be read under a rlock (#3056)
Read lock before reading the Expired field of a zone.

Fixes: #3053

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-27 08:06:50 -07:00
Miek Gieben
7a3371d740 plugin/file: allow README.md testing (#3052)
* Fix corefile usage

* plugin/file: allow README.md testing

Allow readme testing for the file plugin and fix bugs that where found:

* the reader wasn't reset when re-reading the same io.reader for a
  different origin.

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

* Update test/example_test.go

Co-Authored-By: Michael Grosser <development@stp-ip.net>
2019-07-27 11:47:55 +00:00
Miek Gieben
cfc4948f92 More note tweaks; couple of typos for 1.6.0 (#3049)
Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-26 07:10:49 +00:00
Yong Tang
e5b44f4bd3 Update CONTRIBUTING.md for dependency update methods (go dep -> go mod) (#3048)
* Update CONTRIBUTING.md for dependency update methods (go dep -> go mod)

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

* Small fix for reveiw comment

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-07-25 21:55:26 +00:00
Chris O'Haver
4f268ad801 update to client-go 12.0.0 (#3047) 2019-07-25 13:24:12 -07:00
Yong Tang
ee6c5f87d1 Update CONTRIBUTING.md (#3046)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-07-25 13:20:23 -07:00
Miek Gieben
89fa9bc61e plugin/host: don't append the names when reparsing hosts file (#3045)
The host plugin kept on adding entries instead of overwriting. Split the
inline cache off from the /etc/hosts file cache and clear /etc/hosts
file cache and re-parsing.

A bunch of other cleanup as well. Use functions defined in the plugin
package, don't re-parse strings if you don't have to and use To4() to
check the family for IP addresses. Fix all test cases a carried entries
are always fqdn-ed. Various smaller cleanup in unnessacry constants.

Fixes: #3014

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-25 11:53:07 -07:00
Miek Gieben
2a41b9a93b Add 1.6.0 release notes (#3044)
* Add 1.6.0 release notes

Preliminary notes for the 1.6.0 release

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

* Update notes/coredns-1.6.0.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>

* Update notes/coredns-1.6.0.md

Co-Authored-By: Michael Grosser <development@stp-ip.net>
2019-07-25 13:42:02 +00:00
Erfan Besharat
048987fca5 plugin/file: Add SOA serial to axfr log (#3042) 2019-07-24 17:39:07 +00:00
Miek Gieben
eba020e6a1 plugin/file: simplify locking (#3024)
* plugin/file: simplify locking

Simplify the locking, remove the reloadMu and just piggyback on the
other lock for accessing content, which assumes things can be move
underneath.

Copy the Apex and Zone to new vars to make sure the pointer isn't
updated from under us.

The releadMu isn't need at all, the time.Ticker firing while we're
reading means we will just miss that tick and get it on the next go.

Add rrutil subpackage and put some more generic functions in there, that
are now used from file and the tree package. This removes some
duplication.

Rename additionalProcessing that didn't actually do that to
externalLookup, because that's what being done at some point.

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

* Update plugin/file/lookup.go

Co-Authored-By: Michael Grosser <development@stp-ip.net>
2019-07-23 18:32:44 +00:00
dependabot-preview[bot]
637bd3c7dc build(deps): bump github.com/aws/aws-sdk-go from 1.21.1 to 1.21.2 (#3032)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.21.1 to 1.21.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.21.1...v1.21.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-23 07:44:47 -07:00
Mat Lowery
dae6aea292 Fix response_rcode_count_total metric (#3029) 2019-07-23 06:23:16 +00:00
dependabot-preview[bot]
2153cada45 build(deps): bump github.com/aws/aws-sdk-go from 1.21.0 to 1.21.1 (#3027)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.21.0 to 1.21.1.
- [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.21.0...v1.21.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-22 06:55:41 +00:00