Commit Graph

1990 Commits

Author SHA1 Message Date
Miek Gieben
6f028d0427 fuzz: some cleanups (#3143)
* fuzz: some cleanups

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

* smaller

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

* documentation

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

* comments

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-19 08:06:25 +00:00
Yong Tang
6fa61119bd Update build command inside docker (#3145)
Since we use golang 1.12 and gomod, it is not necessary
to match the impor path to `/go/src/github.com/coredns/coredns`
in order to build coredns. For that reason the build command
inside docker could be simplified with:
```
$ docker run --rm -i -t -v $PWD:/v -w /v golang:1.12 make
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-08-19 07:02:08 +00:00
Yong Tang
6402cef337 Move federation plugin to github.com/coredns/federation (#3139)
* Remove federation

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

* Rebuild and point to github.com/coredns/federation

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

* Export `localNodeName` => `LocalNodeName`, to be used by federation (until deprecation)

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

* Remove plugin/kubernetes/federation.go (=> kubernetes/federation repo)

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

* Update github.com/coredns/federation

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

* sticker-ci fix

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-08-18 14:41:51 -07:00
AllenZMC
bbf148360b fix wrong spells in coredns-007.md (#3142) 2019-08-18 16:53:46 +00:00
Yevgeny Pats
c33fc9e3b0 Add Continuous Fuzzing Integration to Fuzzit (#3093)
This feature introduce continuous fuzzing with the following
features:

* Ruzzing: fuzz-targets are run continuously on master
( the fuzzers are updated every time new code is pushed to master)
* Regresion: In addition to unit-tests travis runs all fuzz
targets through the generated corpus to catch bugs early  on
in the CI process before merge.
2019-08-18 08:40:59 +00:00
Miek Gieben
bbc78abf6f plugin/clouddns: tiny fixes for the README (#3140)
* plugin/clouddns: tiny fixes for the README

Did a post-merge review. Fix a few typos.

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

* Naming;

coredns -> CoreDNS
clouddns -> Cloud DNS
and italics then the plugin's name are mentioned.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-18 08:40:34 +00:00
Yong Tang
b53d822e62 Additional content in clouddns plugin, and format of markdown (#3138)
This PR adds some content in clouddns plugin to mention about
the fact that privately hosted zone does not need to attach to
a VPC.
Also change PROJECT_NAME to PROJECTT_ID, and reformt the markdown
to replace tab with 4 whitespace.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-08-17 21:46:48 +00:00
Yong Tang
ef7efae761 Remove merge left overs (#3136)
Looks like there were some leftover in PR 3011 during
the merge conflict rebase. This PR removes the unneeded file
and fixed the plugin.cfg

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-08-17 21:07:23 +00:00
Palash Nigam
194b0f95b4 Add Google Cloud DNS plugin (#3011)
Signed-off-by: Palash Nigam <npalash25@gmail.com>

Closes: #2822
2019-08-17 13:59:09 -07:00
AllenZMC
bde393096f fix wrong spells in zone.go (#3135) 2019-08-17 15:29:46 +00:00
zhangguoyan
86edb15c27 plugin/forward: fix a typo (#3133) 2019-08-16 16:34:12 +00:00
AllenZMC
d36ca09c97 fix mis-spelling in object.go (#3134) 2019-08-16 09:29:06 -04:00
AllenZMC
fe60f10300 fix typos in kubernetes.go (#3132) 2019-08-15 09:15:23 -04:00
Cricket Liu
d42f54467f Update README.md (#3131)
Just minor textual cleanup.
2019-08-14 13:48:14 -04:00
AllenZMC
70b9cdb541 fix wrong spells in coredns-002.md (#3130) 2019-08-14 13:39:25 +00:00
Miek Gieben
795a3ebb64 up version to 1.6.2 (#3129)
Signed-off-by: Miek Gieben <miek@miek.nl>
v1.6.2
2019-08-14 08:22:30 +00:00
Miek Gieben
ea0d6abc85 Tweak the notes a bit (#3128)
Say a thing about 1.12.8 and HTTP/2

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-14 08:10:50 +00:00
Miek Gieben
fcbe70f4f8 run gofmt -w -s **/*.go (#3126)
format and simplify; highlighted some stuff in route53_test.go that
could be further simplified.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-14 07:56:12 +00:00
AllenZMC
3c45e55f91 Update parse.go (#3122) 2019-08-13 09:47:23 -07:00
Miek Gieben
a23617b84b Add release notes for 1.6.2
Add notes for next release; azure was merged, nice to get that out, some
other bugfixes.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-13 16:46:45 +01:00
Miek Gieben
ebc465d0dc plugin/route53: various updates (#3108)
In the setup function use plugin.Error() to wrap the errors with the
plugin name. Because there isn't a separate setup() function this is
done for all returned errors.

Remove *upstream.Upstream from the New parameters as this is always set
and adjust the tests to account for this.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-13 08:02:29 -07:00
Miek Gieben
ca57dd3568 deps: update (#3120)
Just building in master updates the deps.

Pushing this as a PR to get a clean build back.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-13 13:56:21 +00:00
Chris O'Haver
a64ff8cc0a fix NXDOMAIN/NODATA fallthough case (#3118) 2019-08-12 18:43:22 +00:00
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