This project is mirrored from https://github.com/coredns/coredns.git.
The repository failed to update .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
- 17 Dec, 2018 4 commits
-
-
Taras Tsugrii authored
-
Miek Gieben authored
* Add more fuzzing Signed-off-by:
Miek Gieben <miek@miek.nl> * More fuzzing targets Signed-off-by:
Miek Gieben <miek@miek.nl> * Fuzzing: add more fuzzing targets Also add Corefile fuzzing. Signed-off-by:
Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
Missed this before the release. Add the manpage. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
Show from and to address when detecting a loop they may aid in debugging. Hard to create a unit test, but this is a startup run with self induced loop: ~~~ corefile .:1053 { loop log forward . 127.0.0.1:1053 } ~~~~ ~~~ :1053 2018-12-16T10:11:03.695Z [INFO] CoreDNS-1.3.0 2018-12-16T10:11:03.695Z [INFO] linux/amd64, go1.11, CoreDNS-1.3.0 linux/amd64, go1.11, 2018-12-16T10:11:03.696Z [FATAL] plugin/loop: Loop (127.0.0.1:51384 -> :1053) detected for zone ".", see https://coredns.io/plugins/loop#troubleshooting. Query: "HINFO 2781022615773629442.4133547885299871809." ~~~ Update the docs and polished that a bit as well. Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 16 Dec, 2018 1 commit
-
-
Yong Tang authored
* Update client-go to v10.0.0 (Kubernetes 1.13) This fix updates client-go to v10.0.0 which matches Kubernetes 1.13 (released several days ago). Other changes in Gopkg.yaml: - Updated apimachinary, api, klog, yaml associated with k8s version go dep will not automatically match the version. - Added [prune] field (otherwise go dep will not prune automatically) Signed-off-by:
Yong Tang <yong.tang.github@outlook.com> * Updated Gopkg.lock Signed-off-by:
Yong Tang <yong.tang.github@outlook.com> * Updated vendor for client-go v10.0.0 Signed-off-by:
Yong Tang <yong.tang.github@outlook.com>
-
- 15 Dec, 2018 1 commit
-
-
Miek Gieben authored
Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 14 Dec, 2018 1 commit
-
-
Miek Gieben authored
* Add new plugin: external This plugin works in conjunction with the kubernetes plugin and exports ingress and LB addresses as DNS records. It bypasses backend.go and backend_lookup.go flow because it is not needed. README, tests are implemented. The tests only exercise the unit tests, this has not been tested in any ci. Signed-off-by:
Miek Gieben <miek@miek.nl> * Rename to k8s_external Signed-off-by:
Miek Gieben <miek@miek.nl> * go gen Signed-off-by:
Miek Gieben <miek@miek.nl>
-
- 12 Dec, 2018 2 commits
-
-
Miek Gieben authored
update the manpages by running make -f Makefile.doc No other changes. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
The miekg/dns API is a bit scruffy (documentation PR in flight soon), but these both need to be set for the correct RCODE to be reflected in the returned packet. Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 11 Dec, 2018 1 commit
-
-
Miek Gieben authored
* core: edns0 tweaks Per comment thread in https://github.com/coredns/coredns/pull/2357 which spotted a bug; updated the code and added some comments. This function should probably be redone as some point or made obsolete. Signed-off-by:
Miek Gieben <miek@miek.nl> * Remove setting options when m is EDNS0 record Assume upstream set them correctly or a plugin. Signed-off-by:
Miek Gieben <miek@miek.nl>
-
- 10 Dec, 2018 1 commit
-
-
Miek Gieben authored
This clear out the remaining map[x]bool usage and moves the bool to an empty struct. Two note worthy other changes: * EnableChaos in the server is now also exported to make it show up in the documentation. * The auto plugin is left as is, because there the boolean is explicitaly set to false to signal 'to-be-deleted' and the key is left as-is. Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 09 Dec, 2018 2 commits
-
-
Yong Tang authored
Automatically submitted.
-
Miek Gieben authored
* plugin/kubernetes: smaller map to continue with a theme: the map[string]bool can be reduced to map[string]struct{} to reduce a tiny amount of memory. Signed-off-by:Miek Gieben <miek@miek.nl> * fix tests Signed-off-by:
Miek Gieben <miek@miek.nl>
-
- 08 Dec, 2018 4 commits
-
-
Yong Tang authored
This fix converts bool map to struct{} map in etcd.go (there might be several other places). Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
Miek Gieben authored
This is a relic from the etcd integration and only used to remove in the final answer returned to the client. We do need it. Make it a constant and only one character wide. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
These maps where all map[x]bool. Change this a map[x]struct{} as this is smaller and we only use these map to signal "this element exists". This should preserve a (small) amount of memory. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
Make the NewSRV and friends slightly smarter. Optimize the calling of targetStrip which is almost certainly not used. Added benchmark show a modest improvement: benchmark old ns/op new ns/op delta BenchmarkNewSRV-4 300 283 -5.67% Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 07 Dec, 2018 4 commits
-
-
StormXX authored
-
Daniel Garcia authored
-
Miek Gieben authored
* Fix EDNS0 compliance Do SizeAndDo in the server (ScrubWriter) and remove all uses of this from the plugins. Also *always* do it. This is to get into compliance for https://dnsflagday.net/. The pkg/edns0 now exports the EDNS0 options we understand; this is exported to allow plugins add things there. The *rewrite* plugin used this to add custom EDNS0 option codes that the server needs to understand. This also needs a new release of miekg/dns because it triggered a race-condition that was basicly there forever. See: * https://github.com/miekg/dns/issues/857 * https://github.com/miekg/dns/pull/859 Running a test instance and pointing the https://ednscomp.isc.org/ednscomp to it shows the tests are now fixed: ~~~ EDNS Compliance Tester Checking: 'miek.nl' as at 2018-12-01T17:53:15Z miek.nl. @147.75.204.203 (drone.coredns.io.): dns=ok edns=ok edns1=ok edns@512=ok ednsopt=ok edns1opt=ok do=ok ednsflags=ok docookie=ok edns512tcp=ok optlist=ok miek.nl. @2604:1380:2002:a000::1 (drone.coredns.io.): dns=ok edns=ok edns1=ok edns@512=ok ednsopt=ok edns1opt=ok do=ok ednsflags=ok docookie=ok edns512tcp=ok optlist=ok All Ok Codes ok - test passed. ~~~ Signed-off-by:
Miek Gieben <miek@miek.nl> Signed-off-by:
Miek Gieben <miek@miek.nl> * typos in comments Signed-off-by:
Miek Gieben <miek@miek.nl>
-
Daniel Garcia authored
-
- 06 Dec, 2018 1 commit
-
-
Chris O'Haver authored
Automatically submitted.
-
- 05 Dec, 2018 1 commit
-
-
Miek Gieben authored
Automatically submitted.
-
- 04 Dec, 2018 1 commit
-
-
Chris O'Haver authored
* improve loop troubleshoot docs * fix spelling
-
- 02 Dec, 2018 1 commit
-
-
Yong Tang authored
Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
- 01 Dec, 2018 3 commits
-
-
Miek Gieben authored
I think this is causing problem and it will actually clash with the scrubbing that now happens for all plugins anyway. We're assuming the returned message will be valid even with tc being set. request.Scrub follows that same logic. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
* pkg/up: implement backoff Every 2nd failure we double the interval until we hit 4 * interval. This to have some sort of backoff, esp when a large cluster of coredns shares an upstream (original intent of up package) they will hammer the upstream. This put some back pressure on that. Signed-off-by:
Miek Gieben <miek@miek.nl> * Update plugin/pkg/up/up.go Co-Authored-By:
miekg <miek@miek.nl>
-
Chris O'Haver authored
-
- 30 Nov, 2018 2 commits
-
-
Miek Gieben authored
We're not doing anything with the data so stop doing it. Also makes travis 20% faster. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
Upgrade to new dns lib version; that saw multiple improvements; some patch releases are in the pipeline. The big thing here is the removal of ErrTruncated, so we need to deal with this slightly different in the forward plugin. It removed the entire truncated.go logic and just checks the message for .Truncated (if there is a message) and retries with tcp. Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 29 Nov, 2018 1 commit
-
-
Cricket Liu authored
Textual cleanup.
-
- 28 Nov, 2018 1 commit
-
-
Cricket Liu authored
Miscellaneous textual cleanup.
-
- 23 Nov, 2018 1 commit
-
-
Miek Gieben authored
Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 21 Nov, 2018 3 commits
-
-
Jiacheng Xu authored
-
John Belamaric authored
The loadbalancer plugin reorders records. It was doing this for zone transfers - if you had a CNAME in the zone then your transfer would be broken because it would get put before the SOA record.
-
Miek Gieben authored
Automatically submitted.
-
- 20 Nov, 2018 2 commits
-
-
Miek Gieben authored
* plugin/forward: remove dynamic read timeout We care about an upstream being there, so we still have a dynamic dial time out (by way higher then 200ms) of 1s; this should be fairly stable for an upstream. The read timeout if more variable because of cached and non cached responses. As such remove his logic entirely. Drop to 2s read timeout. Fixes #2306 Signed-off-by:Miek Gieben <miek@miek.nl>
-
Yong Tang authored
Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
- 16 Nov, 2018 2 commits
-
-
stuart nelson authored
* Set SOA record TTL as min of TTL/MINIMUM According to https://tools.ietf.org/html/rfc2308#section-3: The TTL of this record is set from the minimum of the MINIMUM field of the SOA record and the TTL of the SOA itself, and indicates how long a resolver may cache the negative answer. Set the TTL accordingly so as to not always negative cache SOA records for 300 seconds. * Inline min func * Update SOA record tests * Fix types
-
Miek Gieben authored
* Redo the plugin log PR Remove the code duplication and call of the "official" functions. This is the second(?) time we forgot to update the other half, so remove that problem entirely. Also add a test if the correct (within limits) time in front of the log line. Signed-off-by:
Miek Gieben <miek@miek.nl> * Remove pFormat Signed-off-by:
Miek Gieben <miek@miek.nl>
-