Commit Graph

1273 Commits

Author SHA1 Message Date
Chris O'Haver
0188090ae9 add CNAME example to README (#5537)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-08-03 13:51:49 +03:00
Chris O'Haver
95fcf2c480 plugin/cache: Add cache disable option (#5540)
* add cache disable options

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-28 10:51:08 -04:00
Ondřej Benkovský
2fe5273cd1 plugin/acl : add support for Extended DNS Errors (#5532)
* plugin/acl : add support for Extended DNS Errors

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>

* fixup! plugin/acl : add support for Extended DNS Errors

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-07-25 07:44:13 -07:00
Abirdcfly
1cb294dbf9 remove redundant continue in test (#5529)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-21 08:38:38 -04:00
Chris O'Haver
513f27b9a9 plugin/forward: Enable multiple forward declarations (#5127)
* enable multiple declarations of forward plugin

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-20 10:35:04 -04:00
Chris O'Haver
11059dd855 remove trailing empty lines per linter (#5526)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-19 15:26:17 -04:00
Shane Xie
edbe02c0f9 core: add log listeners for k8s_event plugin (#5451)
add log listener interface

Signed-off-by: xh4n3 <xyn1016@gmail.com>
2022-07-18 09:52:06 -04:00
Chris O'Haver
29f3dcfa10 plugin/ready: Reset list of readiness plugins on startup (#5492)
* reset readiness plugins list on startup

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-18 09:50:15 -04:00
coredns[bot]
0e4ca22f44 auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-07-11 10:31:48 +00:00
Ondřej Benkovský
c2dbb7141a add golangci-lint linter (#5499) 2022-07-10 11:06:33 -07:00
Ondřej Benkovský
abc5ac8017 plugin/trace : make zipkin HTTP reporter more configurable using Corefile (#5460)
* plugin/trace : make zipkin HTTP reporter more configurable using Corefile

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-07-08 07:20:19 -04:00
Chris O'Haver
83adb8fa22 plugin/file/cache: Add metadata for wildcard record responses (#5308)
For responses synthesized by known wildcard records, publish metadata containing the wildcard record name

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-07 17:07:04 -04:00
Chris O'Haver
e80d696502 plugin/k8s_external: Add support for PTR requests (#5435)
* Exclude External IP addresses from being added to the existing kubernetes' plugin IP->Service index
* Add support for PTR requests on External IPs of Services to the k8s_external plugin

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-06 13:55:15 -04:00
Chris O'Haver
d903a963ee dont lameduck when reloading (#5472)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-06 13:52:18 -04:00
Chris O'Haver
c4d02442ef add tsig to codeowners; update chaos authors (#5479)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-07-01 10:06:30 -07:00
coredns[bot]
390e88637e auto remove trailing whitespaces
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-06-28 10:30:12 +00:00
Chris O'Haver
68e141eff2 plugin/tsig: new plugin TSIG (#4957)
* expose tsig secrets via dnsserver.Config
* add tsig plugin

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-27 15:48:34 -04:00
Yong Tang
0218a34008 Fix out-of-index issue in rewrite plugin (#5462)
This PR fixes another out-of-index issue in rewrite to avoid
security vuln.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2022-06-26 16:06:43 -07:00
Ondřej Benkovský
e0dead4aa2 plugin/kubernetes : make kubernetes client log in CoreDNS format (#5461)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-06-26 14:49:45 -07:00
Yong Tang
4a40e9e3a0 Fix a crash in rewrite plugin when rule type is missing (#5459) 2022-06-25 09:17:35 -07:00
Ondřej Benkovský
501e50312e plugin/trace: make zipkin and datadog reporters log errors using CoreDNS logger (#5452) 2022-06-23 03:40:13 -07:00
Ondřej Benkovský
af4d84d915 plugin/trace: read trace context info from headers for DOH (#5439)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-06-20 07:08:53 -07:00
Chris O'Haver
037e4920c2 plugin/health: Bypass proxy in self health check (#5401)
* add detail to docs; bypass proxy in self health check

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-17 15:49:53 -04:00
Chris O'Haver
dded10420b plugin/cache: Add option to adjust SERVFAIL response cache TTL (#5320)
* add servfail cache opt

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-17 15:48:57 -04:00
Chris O'Haver
d60ce0c8d4 retain response AD bit if requestor's AD bit was set (#5191)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-17 15:47:35 -04:00
Chris O'Haver
d679f2e7d0 fix 'verify' option name in readme (#5441)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-17 15:31:16 -04:00
Ondřej Benkovský
dcc3d76018 remove unused coredns_forward_sockets_open metric (#5431)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-06-13 07:30:34 -07:00
Chris O'Haver
4690d10f87 plugin/cache: Reword serve_stale docs for clarity (#5394)
* reword for clarity; use consistent terminology

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-06-07 09:43:03 -04:00
Andy Lindeman
6e58595c61 Log the literal value, not a format string (#5425)
Signed-off-by: Andy Lindeman <andy@lindeman.io>
2022-06-05 13:17:00 -04:00
coredns[bot]
8f7f150bf3 auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-05-30 10:29:34 +00:00
Radim Hatlapatka
91bcbc2e3a recover from panic log including stacktrace to help finding the origin (#5392) 2022-05-24 14:36:36 +02:00
Tintin
71f68a3363 Fixing issue #5376 by adding a check to parse out Zone info (#5387)
* Fixing #5376 by adding a check to parse out Zone information

Signed-off-by: Tintin <samrath.sodi@gmail.com>

* using IndexByte instead of strings.Split()

Signed-off-by: Tintin <samrath.sodi@gmail.com>

* using plugin logger for logging parsing failure

Signed-off-by: Tintin <samrath.sodi@gmail.com>

* using var keywork instead of short declaration operator

Signed-off-by: Tintin <samrath.sodi@gmail.com>

* reordering imports

Signed-off-by: Tintin <samrath.sodi@gmail.com>
2022-05-20 06:52:30 +02:00
RetoHaslerMGB
d594d61341 Correct timeout description (#5388) 2022-05-19 02:48:25 -07:00
coredns[bot]
68316f4efb auto remove trailing whitespaces
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2022-05-17 10:29:52 +00:00
Chris O'Haver
4d1d9adb0e fix and document zone-match regex-no-match case (#5180)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-05-13 23:23:28 -04:00
lobshunter
dbb8a12394 plugin/dnstap: support FQDN TCP endpoint (#5377)
* plugin/dnstap: support FQDN TCP endpoint

Signed-off-by: lob <pengyu@pingcap.com>

* plugin/dnstap: remove unused variable

Signed-off-by: lob <pengyu@pingcap.com>
2022-05-12 14:13:26 -04:00
dilyevsky
2895b06732 [plugin/route53] Cleanup AWS config/credentials setup. (#5370)
Signed-off-by: Dmitry Ilyevsky <ilyevsky@gmail.com>
2022-05-09 13:35:42 -04:00
Patrick W. Healy
a5b9749462 Don't add OPT RR to non-EDNS0 queries (#5368)
* Don't add OPT RR to non-EDNS0 queries

Signed-off-by: Patrick W. Healy <phealy@phealy.com>
Signed-off-by: Patrick W. Healy <patrick.healy@microsoft.com>

* Update plugin/bufsize/README.md

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
Signed-off-by: Patrick W. Healy <patrick.healy@microsoft.com>

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2022-05-06 15:34:12 -04:00
Lorenz Brun
7a7b0a2b9b Bump Kubernetes to 1.24 (#5364)
Signed-off-by: Lorenz Brun <lorenz@monogon.tech>
2022-05-04 13:38:21 -04:00
Chris O'Haver
c02cd52208 fix k8s start up timeout ticker (#5361)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-05-03 10:06:36 -04:00
Balazs Nagy
4ae29a449c geoip: read source IP from EDNS0 subnet if provided (#5183)
* geoip: read source IP from EDNS0 subnet if provided

This patch implements EDNS backend processing (similar in powerdns: https://doc.powerdns.com/authoritative/settings.html#setting-edns-subnet-processing). This feature comes very handy to test whether your geo config is working properly.

Signed-off-by: Balazs Nagy <julsevern@gmail.com>
2022-05-02 18:25:02 +01:00
Antoine Tollenaere
66f2ac7568 plugin/cache: Add refresh mode setting to serve_stale (#5131)
This PR adds an optional REFRESH_MODE parameter on the serve_stale configuration directive of the
cache plugin, which verifies that the upstream is still unavailable before returning stale entries.

Signed-off-by: Antoine Tollenaere <atollena@gmail.com>
2022-05-02 13:16:33 -04:00
Chris O'Haver
c4bc1a5471 plugin/cache: Fix cache poisoning exploit (#5174) 2022-05-01 05:57:03 -07:00
Chris O'Haver
5a4437bb23 plugin/bind: Fix listener collision notes in readme (#5349)
* clarify listener collision notes in readme

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

* formatting

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-04-28 10:06:15 -04:00
xuweiwei
c1857f4889 plugin/file: unified NoData result (#5086)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
2022-04-25 12:05:24 -04:00
Marius Kimmina
15e470ed24 add positive tests to TestTLS function (#5330)
Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>
2022-04-25 07:36:50 -07:00
Chris O'Haver
0e5d276125 plugin/template: fix rcode option documentation (#5328)
* docs: fix incorrect default rcode value, and reference source for valid values

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-04-23 16:51:56 -04:00
Ondřej Benkovský
a929b0b1ec plugin/health : rework overloaded goroutine to support graceful shutdown (#5244)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
2022-04-13 13:09:03 -04:00
hansedong
0622a6c66c plugin/forward: configurable domain support for healthcheck (#5281)
* plugin/forward: configurable domain support for healthcheck

Signed-off-by: hansedong <admin@yinxiaoluo.com>
2022-04-12 12:39:48 -04:00
Chris O'Haver
e60c179194 plugin/k8s_external: Set authoritative bit in responses (#5284)
set authoritative bit in responses

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2022-04-12 11:01:15 -04:00