Commit Graph

815 Commits

Author SHA1 Message Date
Miek Gieben
0736ccb18e better
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 09:35:10 +01:00
Miek Gieben
ec151309dd Implement TO
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 09:16:05 +01:00
Miek Gieben
def3238287 Set some metadata
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 09:00:54 +01:00
Miek Gieben
6da97627a7 Make node id a property
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 08:47:17 +01:00
Miek Gieben
acd0b73a49 Add more options to the plugin
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-16 07:15:09 +01:00
Miek Gieben
c2594d1768 remove fmt
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 20:34:58 +01:00
Miek Gieben
e24c9703e5 Its working
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 20:33:53 +01:00
Miek Gieben
1652395efa Check everything in
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 17:26:09 +01:00
Miek Gieben
5f2d5788b0 Its working
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-15 16:37:18 +01:00
Miek Gieben
cf478b0aed more
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-14 10:56:09 +01:00
Miek Gieben
0090269744 more debugging
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-14 09:10:21 +01:00
Miek Gieben
b5008763c9 This does something
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-13 11:51:06 +01:00
Miek Gieben
519ef9ca79 more
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-13 11:21:20 +01:00
Miek Gieben
722133881b more
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-12 16:06:06 +01:00
Miek Gieben
822e45ebb5 more doc updates
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-11 09:04:59 +01:00
Miek Gieben
3e095ad847 Add more to the README
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-11 08:48:30 +01:00
Miek Gieben
3de4ab3c0b Copy grpc xDS client from grpc-go
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-10 17:18:16 +01:00
Miek Gieben
99c7aa1ab0 add grpc-go code
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-10 16:58:08 +01:00
Miek Gieben
99c828c787 Start documenting xds
Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-10 09:52:29 +01:00
Miek Gieben
d5c5ba010c Add traffic plugin
This allows for advanced loadbalancing and maybe geoIP loadbalancing.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-09 17:07:22 +01:00
Zheng Xie
f81f28d97b plugin/cache: update comment to conform to the implementation (#3573)
Signed-off-by: zheng xie <xiez1989@gmail.com>
2020-01-03 14:26:53 +01:00
Jonathan Nagy
e3266d24f7 Resolve TXT records via CNAME (#3557)
* Add test case for TXT lookup via CNAME

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>

* Return HostType of explicit TXT records

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>

* Adapt TXT method lookup to allow lookup via CNAME

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>

* Implement lookup of TXT records via CNAME

Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>
2020-01-03 14:16:04 +01:00
Zou Nengren
99e7c3dee7 registry cache_miss logic (#3578)
Signed-off-by: zouyee <zounyee1989@gmail.com>
2020-01-03 10:06:37 +01:00
Miek Gieben
fc546cf129 doc: fix generated manual pages (#3571)
Went over all generated manual pages and fixed some markdown issues,
mostly escaping "_" to avoid underlining entire paragraphs.

Some textual fixes in route53 and other cloud DNS plugins.

Regenerated the markdown with mmark.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-12-29 13:35:17 +01:00
Antonio Ojea
e1cf9ccdab Bump kubernetes plugin schema version (#3554)
The Kubernetes DNS specification schema version was
updated to 1.1.0 in order to support IPv6

Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2019-12-19 09:34:03 -05:00
Zou Nengren
dded126317 bump k8s releated library (#3552)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-12-18 05:32:00 -08:00
Zou Nengren
5e04c27238 Dedup policy implement between grpc and proxy plugin (#3537)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-12-17 08:15:31 +00:00
Yong Tang
a34d564c07 Remove trailing whitespace as otherwise make check fails (#3515)
This PR removes trailing whitespace as otherwise `make check` fails

This PR fixes 3513

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-12-07 15:47:18 +00:00
Miek Gieben
a53321d9d6 plugin/sign: fix signing of authoritative data (#3479)
Don't sign data we are not authoritative for. This adds an AuthWalk
which skips names we should not authoritative for. Adds a few tests to
check this is the case. Generates zones have been compared to
dnssec-signzone.

A number of changes have been made:

* don't add DS records to the apex
* NSEC TTL is the SOA's minttl value (copying bind9)
* Various cleanups
* signer struct was cleaned up: doesn't need ttl, nor expiration or
  inception.
* plugin/sign: remove apex stuff from names()
  This is never used because we will always have other types in the
  apex, because we *ADD* them ourselves, before we sign (DNSKEY, CDS and
  CDNSKEY).

Signed-off-by: Miek Gieben <miek@miek.nl>
Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>
2019-12-06 19:54:31 +00:00
Zou Nengren
799dce4bff redirect handler for pprof index (#3503)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-12-06 19:04:49 +00:00
Zou Nengren
13fca02316 use pkg/reuseport in rest plugins (#3492)
Automatically submitted.
2019-12-06 10:55:40 +00:00
Gonzalo Paniagua Javier
b4df2d0d4c Add a serve_stale option for plugin/cache (#3468)
Automatically submitted.
2019-11-29 15:17:50 +00:00
Miek Gieben
24176a97e6 Move to CODEOWNERS (#3489)
* Move to CODEOWNERS

No change in who own what; just a move to CODEOWNERS. This allows
dreck cleanups.

Added .dreck.yaml for alias and exec.

Fixes: #3486

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

* stickler bot

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

* sort the file

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-29 13:17:05 +00:00
Zou Nengren
768ca99c57 Fix reloading in health and ready (#3473)
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-11-20 12:14:37 +00:00
Gonzalo Paniagua Javier
f91c55d6cd Fix reloading in plugin/pprof. (#3454)
* Fix reloading in plugin/pprof.

Reloading the server without changing the listen address results in an
error because Startup is called for newly set up plugins before Shutdown
is called for the old ones.

Signed-off-by: Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Use pkg/reuseport when listening.

Use coredns' newly added reuseport.

Signed-off-by: Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Revert go.{mod,sum} changes.

Signed-off-by: Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
2019-11-18 07:58:00 +00:00
Yong Tang
f100d61183 Fix incorrect sample configuration in clouddns (#3457)
Automatically submitted.
2019-11-17 18:53:10 +00:00
Miek Gieben
e14e053d3d create pkg/reuseport (#3455)
* create pkg/reuseport

Move the core server listening functions to a new package so plugins can
use them.

Also make *all* servers use the functions here; as only the udp/tcp
listeners where using SO_REUSEPORT (if available). This is the only
actual change in this PR; in it's core it's just a move of 2 files.

This can also be used to cleanup the dance we're doing now for
re-acquiring the sockets in e.g. the metrics plugins and the ready
plugin.

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

* Also push a small doc update

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-16 18:02:46 -08:00
Miek Gieben
4831e7f947 bufsize: go gen and docs (#3449)
Run 'go generate' and 'make -f Makefile.doc' to generate the chaos
plugin author list and update the manual pages.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-15 07:45:09 -08:00
Miek Gieben
1e3330c12b pkg/fall: add (a lot of) guidance (#3450)
update the pkg doc to talk about various trade off

Fixes #2723

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-15 09:14:29 -05:00
Chris O'Haver
672992751e plugin/bufsize: remove trailing whitespace (#3444) 2019-11-14 16:13:49 +00:00
Kohei Yoshida
8cc034eece plugin/bufsize: add usecase description (#3437)
* add usecase

Signed-off-by: yukihira <yukihira.lab@gmail.com>

* fix some comments

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>
2019-11-14 07:37:45 +00:00
Kohei Yoshida
1743ca3f02 add OWNERS file (#3441)
Signed-off-by: yukihira <yukihira.lab@gmail.com>
2019-11-13 09:49:24 +00:00
Kohei Yoshida
e23a34abb4 Add bufsize plugin for preparing the DNS Flag Day and avoiding IP fragmentation (#3401)
* add bufsize plugin

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* add docstring and comment

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* delete stdout messages when get an error

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* change to context.Background from TODO

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* define default bufsize as defaultBufSize constant

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* fix some comments

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* function name change: parse

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>

* function name change: parse

Signed-off-by: ykhr53 <yukihira.lab@gmail.com>
2019-11-10 08:10:12 +00:00
Guangming Wang
113783ed91 Call wg.Add in main goroutine to avoid race conditons. (#3433)
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-11-07 15:29:50 +00:00
Miciah Dashiel Butler Masters
1942746c48 plugin/reload: Fix "durations" documentation link (#3431)
* plugin/reload/README.md: Fix the syntax of the link to the Go
documentation for duration values.

Signed-off-by: Miciah Dashiel Butler Masters <mmasters@redhat.com>
2019-11-06 13:27:55 -08:00
Miek Gieben
5ecd4ec57a transfer: small doc update (#3426)
Tweak the README a little. Name and spell out axfr/ixfr.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-11-05 10:57:22 -05:00
Chris O'Haver
a7ab592e78 plugin/transfer: Zone transfer plugin (#3223)
* transfer plugin

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2019-11-01 12:02:43 -04:00
Euan Kemp
431c70e8b9 Correct some if/iff mixups (#3406)
This is a fixup for https://github.com/coredns/coredns/pull/3310 which
replaced some 'iff's with 'if' under the assumption they were typos.

I'm fairly confident they were "If and only if"
(https://en.wikipedia.org/wiki/If_and_only_if), which is commonly
shortened as "iff".

I've updated them to the full length 'if, and only if' for the sake of
readability.

Signed-off-by: Euan Kemp <euan@ngrok.com>
2019-10-29 09:38:56 -04:00
Dan Panzarella
1821d9cb7e small typo in autopath README so->to (#3408)
Automatically submitted.
2019-10-28 19:17:54 +00:00
Chris O'Haver
6f375cbbda add MustNormalize (#3385)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2019-10-19 08:08:14 +01:00