Commit graph

1994 commits

Author SHA1 Message Date
Miek Gieben
27e22b0696 Use strings.ToLower in server (#3304)
Automatically submitted.
2019-09-25 17:18:54 +00:00
Guangming Wang
eb59e79207 plugin: cleanup code based on staticcheck warnings (#3302)
TrimPrefix re-assign to former variable

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-09-25 13:23:43 +01:00
dependabot-preview[bot]
47719756fe build(deps): bump github.com/aws/aws-sdk-go from 1.23.21 to 1.24.3 (#3296)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.23.21 to 1.24.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.23.21...v1.24.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-24 07:25:14 +01:00
dependabot-preview[bot]
2881eacd06 build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.17.0 to 1.18.0 (#3295)
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases)
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.17.0...v1.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-24 07:24:49 +01:00
li mengyang
50bac4d3c3 fix: delete unused var and const (#3294)
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-09-24 07:06:37 +01:00
Guangming Wang
081e45afa3 cleanup: remove redundant return statement (#3297)
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-09-23 14:40:14 +01:00
Miek Gieben
004c5fca9d
all: simply registering plugins (#3287)
Abstract the caddy call and make it simpler.

See #3261 for some part of the discussion.

Go from:

~~~ go
func init() {
       caddy.RegisterPlugin("any", caddy.Plugin{
               ServerType: "dns",
               Action:     setup,
       })
}
~~~

To:

~~~ go
func init() { plugin.Register("any", setup) }
~~~

This requires some external documents in coredns.io to be updated as
well; the old way still works, so it's backwards compatible.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-09-20 08:02:30 +01:00
yeya24
85e65702bd add host metrics (#3277)
* add host metrics

Signed-off-by: yeya24 <yb532204897@gmail.com>

* update hosts readme docs

Signed-off-by: yeya24 <yb532204897@gmail.com>
2019-09-19 16:38:15 +01:00
Miek Gieben
62317c3c14 update doc to not use the root zone for everything (#3288)
Update all documentation in the tree to use example.org as an example
configuration (in so far possible). As to get out of the just use "."
and fallthrough and things would be fine.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-09-19 06:17:53 -07:00
Miek Gieben
31299108ce Run go mod -tidy (#3286)
* Run go mod -tidy

Tidy up and fix the require of x/net to the hash used in miekg/dns, this
seems to fix the "incompatible version bla bla"

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

* Run go mod tidy

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-09-19 06:16:36 -07:00
Guangming Wang
2324439adf ready_test.go: rm t.Fatalf in goroutine (#3284)
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-09-19 07:04:19 +01:00
dependabot-preview[bot]
77e8b38877 build(deps): bump github.com/aws/aws-sdk-go from 1.23.17 to 1.23.21 (#3282)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.23.17 to 1.23.21.
- [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.23.17...v1.23.21)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 11:12:26 +01:00
dependabot-preview[bot]
fadc75454a build(deps): bump github.com/miekg/dns from 1.1.16 to 1.1.17 (#3280)
* build(deps): bump github.com/miekg/dns from 1.1.16 to 1.1.17

Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.16 to 1.1.17.
- [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.16...v1.1.17)

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

* Update go.mod
2019-09-16 11:12:10 +01:00
dependabot-preview[bot]
7e6e9175cf build(deps): bump github.com/prometheus/common from 0.6.0 to 0.7.0 (#3281)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.6.0...v0.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 10:53:20 +01:00
yeya24
88d25cdc20 remove an unused variable (#3278)
Signed-off-by: yeya24 <yb532204897@gmail.com>
2019-09-16 07:28:42 +01:00
Chris O'Haver
ac36144f07
circleci: updates for minikube -> kind transition (#3274)
* updates for minikube -> kind transition

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

* update container build

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2019-09-10 11:34:08 -04:00
Miek Gieben
a52a427b4a stop fuzzing: its build is broken (#3272)
Automatically submitted.
2019-09-10 10:41:56 +00:00
Yong Tang
6579d60b08 Fix RFC link for RFC8484 (#3271)
This fix fixes 3270

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-09-10 07:22:43 +01:00
Miek Gieben
be923eaf9b
default config: add log (#3269)
When there is no Corefile found we load the default. Add the log plugin
to it, so you can see queries actually landing in CoreDNS.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-09-09 14:41:50 +01:00
dependabot-preview[bot]
368440d6b2 build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.16.1 to 1.17.0 (#3265)
Bumps [gopkg.in/DataDog/dd-trace-go.v1](https://github.com/DataDog/dd-trace-go) from 1.16.1 to 1.17.0.
- [Release notes](https://github.com/DataDog/dd-trace-go/releases)
- [Commits](https://github.com/DataDog/dd-trace-go/compare/v1.16.1...v1.17.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 10:53:34 +01:00
dependabot-preview[bot]
d3403ff311 build(deps): bump google.golang.org/api from 0.9.0 to 0.10.0 (#3267)
Bumps [google.golang.org/api](https://github.com/google/google-api-go-client) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/google/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/google/google-api-go-client/compare/v0.9.0...v0.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 10:52:59 +01:00
dependabot-preview[bot]
37f5d489c6 build(deps): bump github.com/Azure/go-autorest/autorest (#3268)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.9.0 to 0.9.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/autorest/v0.9.0...autorest/v0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 10:52:48 +01:00
dependabot-preview[bot]
dfb9c9516f build(deps): bump github.com/aws/aws-sdk-go from 1.23.13 to 1.23.17 (#3266)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.23.13 to 1.23.17.
- [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.23.13...v1.23.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 10:52:38 +01:00
Chris O'Haver
70f2bd1dff dont duplicate service recrod for every port (#3240) 2019-09-08 08:28:30 +01:00
Cricket Liu
acabfc5e9e Making README text consistent with other plugins' READMEs (#3254) 2019-09-08 08:26:25 +01:00
Cricket Liu
ab59b28c4f Making cancel's README consistent with other plugins' READMEs (#3253) 2019-09-08 08:26:16 +01:00
Cricket Liu
b156e0440f Making dnssec's README consistent with other plugins' READMEs (#3252) 2019-09-08 08:26:06 +01:00
Cricket Liu
9b192564ac Making README consistent with other plugins' READMEs (#3251) 2019-09-08 08:25:58 +01:00
Cricket Liu
9dc2e3162c Making README consistent with other plugins' READMEs (#3250) 2019-09-08 08:25:35 +01:00
Cricket Liu
5339949596 Making README consistent with other plugins' READMEs (#3249) 2019-09-08 08:25:26 +01:00
Cricket Liu
782994583b Making README consistent with other plugins' READMEs (#3248) 2019-09-08 08:25:17 +01:00
Cricket Liu
ea66273463 Making README consistent with other plugins' READMEs (#3247) 2019-09-08 08:24:43 +01:00
Cricket Liu
47b8ce1fff Fixing the top-level description (#3246) 2019-09-08 08:23:54 +01:00
Cricket Liu
db489056b8 Making README consistent with other plugins' READMEs (#3245) 2019-09-08 08:23:38 +01:00
Cricket Liu
31fd9328cd Making README consistent, fixing "meta data" (#3244) 2019-09-08 08:23:20 +01:00
Cricket Liu
878f906854 Making README consistent with other plugins' READMEs (#3243) 2019-09-08 08:23:07 +01:00
Yong Tang
ac2365da77 Bump Travis CI to use golang 1.13.x (#3262)
Automatically submitted.
2019-09-07 11:30:29 +00:00
Kasisnu
c9e00b9edf Pin golang.org/x/net in go.mod (#3260)
Signed-off-by: kasisnu <kasisnu@gmail.com>
2019-09-07 04:02:39 -07:00
Yong Tang
e4df752b17 Update go mod tidy (and fix for Azure/go-autorest & azure-sdk-for-go) (#3258)
See https://github.com/coredns/coredns/pull/3209#issuecomment-525016357
for the previous issues, also see https://github.com/Azure/go-autorest/issues/414
for some further background.

Basically go mod has some issue when multiple tags exists (as main module and submodule)
within the same repo. That was fixed in go-autorest very recently, though
azure-sdk-for-go has not been fully updated yet.

This fix is a temporarily one with `replace` fix. Once azure-sdk-for-go
is updated then we could drop the `replace fix`

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-09-06 12:31:05 -04:00
Cricket Liu
41115fb93d Update README.md (#3242)
Minor textual cleanup.
2019-09-05 19:41:13 +01:00
Chris O'Haver
630d3d60b9
plugin/kubernetes: Handle multiple local IPs and bind (#3208)
* use all local IPs

* mult/bind ips

* gofmt + boundIPs fix

* fix no matching endpoint case

* don't duplicate NS records in answer

* fix answer dedup

* fix comment

* add multi local ip test case
2019-09-05 09:07:55 -04:00
Miek Gieben
d79562842a plugin/acl: whitespace cleanup (#3239)
OWNERS file was padded, remove empty lines. Fix code block in README,
and set codeblock type to 'corefile' without the upper case C.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-09-04 19:06:10 -07:00
An Xiao
79f37a1460 Add plugin ACL for source ip filtering (#3103)
* Add plugin ACL for source ip filtering

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Allow all arguments to be optional and support multiple qtypes in a single policy

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Add newline before third party imports

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Use camel instead of underscore in method name

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Start with an upper case letter in t.Errorf()

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Use the qtype parse logic in miekg/dns

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Use third party trie implementation as the ip filter

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Update based on rdrozhdzh's comment

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Change the type of action to int

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Add IPv6 support

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Update plugin.cfg

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Remove file functionality

Signed-off-by: An Xiao <hac@zju.edu.cn>

* Update

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Update README

Signed-off-by: Xiao An <hac@zju.edu.cn>

* remove comments

Signed-off-by: Xiao An <hac@zju.edu.cn>

* update

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Update dependency

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Update

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Update test

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Add OWNERS

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Refactor shouldBlock and skip useless check

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Introduce ActionNone

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Update label name

Signed-off-by: Xiao An <hac@zju.edu.cn>

* Avoid capitalizing private types

Signed-off-by: Xiao An <hac@zju.edu.cn>
2019-09-04 08:43:45 -07:00
dependabot-preview[bot]
7894154bfd build(deps): bump github.com/aws/aws-sdk-go from 1.23.8 to 1.23.13 (#3237)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.23.8 to 1.23.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.23.8...v1.23.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-02 17:02:49 +01:00
orangelynx
5d9a3dbd33 Fix for 3235. Adds go.sum and go.mod to .dockerignore to avoid permission issues during docker build process. (#3236) 2019-09-01 08:26:55 +01:00
Miek Gieben
37b9550d62
Up version to 1.6.3 (#3233)
Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-31 10:08:22 +01:00
Miek Gieben
739cba48b6
Notes update for the release. (#3231)
* Notes update for the release.

acl might not make tomorrow (plan to release then), so remove it for
now. Add other PRs that got merged and flesh it out some more.

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

* Remove xfr highlight for k8s

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

* Small tweaks while preparing the release

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-31 09:54:43 +01:00
Miek Gieben
25d85338e4
doc update: run Makefile.doc (#3232)
Add the new plugins ones: clouddns and sign. Remove federation from it.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-30 15:58:25 +01:00
Miek Gieben
c466003a94
startup: add logo (#3230)
* startup: add logo

As discussed in #3225, lets add a little logo. This PR incorperates this
in the startup text. It also removes the logging output as this outputs
identical lines of text, but for no clear reason. This means --quiet now
means "no output on startup at all".

Currently it looks like this:

~~~
.:1053
   ______                ____  _   _______
  / ____/___  ________  / __ \/ | / / ___/	CoreDNS-1.6.2
 / /   / __ \/ ___/ _ \/ / / /  |/ /\__ \ 	linux/amd64, go1.12.9,
/ /___/ /_/ / /  /  __/ /_/ / /|  /___/ /
\____/\____/_/   \___/_____/_/ |_//____/
~~~

We have 2 lines extra on the right if we need to print more (no ideas
come to mind currently).

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

* Add distinct marker for grep and cut purposes

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-30 15:12:17 +01:00
Miek Gieben
94930d20ea
plugin/file: rework outgoing axfr (#3227)
* plugin/file: rework outgoing axfr

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

* Fix test

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

* Actually properly test xfr

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

* Fix test

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-30 13:47:27 +01:00