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 .
- 04 Jul, 2018 1 commit
-
-
Isolus authored
-
- 03 Jul, 2018 4 commits
-
-
Eren Güven authored
-
Miek Gieben authored
* plugin/cache: add extra test for FORMERR Add extra test that test for not caching a formerr. Signed-off-by:
Miek Gieben <miek@miek.nl> * govet Signed-off-by:
Miek Gieben <miek@miek.nl>
-
Joey Espinosa authored
Exporting Zone.File to avoid getters and setters Updating getter and setter for Zone.File to be less racy Renaming GetFile to File in zone plugin
-
Miek Gieben authored
* request: add LocalIP Fix TODO that was added: Add LocalIP and test the Clear() method. Signed-off-by:
Miek Gieben <miek@miek.nl> * Move to Errorf PR feedback and move to Errorf instead Fatalf. Signed-off-by:
Miek Gieben <miek@miek.nl>
-
- 02 Jul, 2018 3 commits
-
-
Miek Gieben authored
This was done anyway, but only deep in the functions, just do this everywhere; allows for shorter code and request.Request allows for caching as well. Cleanups, make it more Go like. * remove unneeded switches * remove testdir (why was this there??) * simplify the logic * remove unneeded variables * put short functions on a single line * fix documentation. * spin off wire funcs in wire.go, make them functions. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Yong Tang authored
k8s' client-go has been updated to v8.0.0 (1.11). This fix updates client-go dependency so that it is in sync. Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
Miek Gieben authored
This revert 17d807f0 and re-adds the metadata plugin as a plugin that just sets a label to a value function. Add package documentation on how to use the metadata package. Make it clear that any caching is up to the Func implemented. There are now - no in tree users. We could add the request metadata by default under names that copy request.Request, i.e request/ip - remote IP request/port - remote port Variables.go has been deleted. Signed-off-by:
Miek Gieben <miek@miek.nl>
-
- 01 Jul, 2018 7 commits
-
-
Miek Gieben authored
Cache IP's and ports as well. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
Signed-off-by:Miek Gieben <miek@miek.nl>
-
Nitish Tiwari authored
-
Yong Tang authored
When running `dep prune` explicitly, the following message show up: ``` dep prune Pruning is now performed automatically by dep ensure. ``` However, after the explicit `dep prune`, there are still many files deleted. (Guess `dep ensure` is not complete yet). This fix did a `dep prune` to clean up unneeded files. Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
-
Miek Gieben authored
Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
delete unused tests and fix import lines. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
* dep ensure -update Signed-off-by:
Miek Gieben <miek@miek.nl> * Add new files Signed-off-by:
Miek Gieben <miek@miek.nl>
-
- 30 Jun, 2018 2 commits
-
-
Nitish Tiwari authored
* Update dependencies and add etcdv3 client * Update etcd plugin to support etcd v3 clients Fixes #341
-
Miek Gieben authored
These are used in the rewrite plugin, makes sense to have a common place for them. Signed-off-by:Miek Gieben <miek@miek.nl>
-
- 29 Jun, 2018 3 commits
-
-
Miek Gieben authored
* plugin/metadata: some cleanups Name to provider.go as that's what being defined right now in the file. Use request.Request because that's done in variables.go anyway. Name the main storage M, because there is no further meaning behind. Remove superfluous methods Signed-off-by:
Miek Gieben <miek@miek.nl> * Fix test Signed-off-by:
Miek Gieben <miek@miek.nl>
-
Miek Gieben authored
Add that we support https and do a regen. Signed-off-by:Miek Gieben <miek@miek.nl>
-
Eugen Kleiner authored
* plugin/metadata: add metadata plugin * plugin/metadata: Add MD struct, refactor code, fix doc * plugin/metadata: simplify metadata key * plugin/metadata: improve setup_test * Support of metadata by rewrite plugin. Move calculated variables to metadata. * Move variables from metadata to pkg, add UTs, READMEs change, metadata small fixes * Add client port validation to variables_test * plugin/metadata: improve README * plugin/metadata: rename methods * plugin/metadata: Update Metadataer interface, update doc, cosmetic code changes * plugin/metadata: move colllisions check to OnStartup(). Fix default variables metadataer. * plugin/metadata: Fix comment for method setValue * plugin/metadata: change variables order to fix linter warning * plugin/metadata: rename Metadataer to Provider
-
- 28 Jun, 2018 1 commit
-
-
Miek Gieben authored
* Fix max-age in http server Move the minMsgTTL to dnsutil and rename it MinimalTTL, move some constants there as well. Use these new function in server_https to correctly set the max-age HTTP header. Fixes: #1823 * Linter
-
- 27 Jun, 2018 1 commit
-
-
John Belamaric authored
* Add part 1 watch functionality. (squashed) * add funcs for service/endpoint fqdns * add endpoints watch * document exposed funcs * only send subset deltas * locking for watch map * tests and docs * add pod watch * remove debugs prints * feedback part 1 * add error reporting to proto * inform clients of server stop+errors * add grpc options param * use proper context * Review feedback: * Removed client (will move to another repo) * Use new log functions * Change watchChan to be for string not []string * Rework how k8s plugin stores watch tracking info to simplify * Normalize the qname on watch request * Add blank line back * Revert another spurious change * Fix tests * Add stop channel. Fix tests. Better docs for plugin interface. * fmt.Printf -> log.Warningf * Move from dnsserver to plugin/pkg/watch * gofmt * remove dead client watches * sate linter * linter omg
-
- 26 Jun, 2018 1 commit
-
-
Jun Li authored
In the case of ttl <= 0, `cacheMisses` should increase its counter. Signed-off-by:Jun Li <lijun.git@gmail.com>
-
- 25 Jun, 2018 1 commit
-
-
Yong Tang authored
* Replace gh-release with curl This fix tries to address the issue raised in 1895 where gh-release is deprecated. As GitHub provides API that could be accessed easily, and gh-release itself is just a wrapper to the API, this fix replaces gh-release with the direct interaction with GitHub API, so that it could be maintained by coredns team. This fix fixes 1895. Signed-off-by:
Yong Tang <yong.tang.github@outlook.com> * Added `-o /dev/null` Signed-off-by:
Yong Tang <yong.tang.github@outlook.com>
-
- 22 Jun, 2018 2 commits
-
-
Ruslan Drozhdzh authored
* retry creating dnstest.Server if tcp or udp port is in use * changes according to review
-
Chris O'Haver authored
-
- 21 Jun, 2018 2 commits
-
-
Miek Gieben authored
Correctly set the path for the presubmits, fix some typos and make the goimport target do the linting to the lint target can be removed. Also don't make it a fatal error because gofmt changes between releases.
-
Tobias Schmidt authored
After several experiments at SoundCloud we found that the current minimum read timeout of 10ms is too low. A single request against a slow/unavailable authoritative server can cause all TCP connections to get closed. We record a 50th percentile forward/proxy latency of <5ms, and a 99th percentile latency of 60ms. Using a minimum timeout of 200ms seems to be a fair trade-off between avoiding unnecessary high connection churn and reacting to upstream failures in a timely manner. This change also renames hcDuration to hcInterval to reflect its usage, and removes the duplicated timeout constant to make code comprehension easier.
-
- 20 Jun, 2018 4 commits
-
-
Tobias Schmidt authored
The prometheus naming convention states only counters should have a `_total` suffix, so that gagues and counters can be easily distinguished.
-
Miek Gieben authored
This removes: * reverse plugin from plugin.cfg * https_google option from proxy * the -log flag
-
Tobias Schmidt authored
The default dns.Response implementation of a dns.ResponseWriter will panic if RemoteAddr() is called after the connection to the client has been closed already. The current cache implementation doesn't create a new request+responsewriter during an asynchronous prefetch, but piggybacks on the request triggering the prefetch. This change copies the RemoteAddr first, so that it's safe to use it later during the actual prefetch request. A better implementation would be to completely decouple the prefetch request from the client triggering a request.
-
Miek Gieben authored
-
- 18 Jun, 2018 2 commits
-
-
Miek Gieben authored
Reduce map usage and combine two maps into one; add isDuplicate that tests and adds to make things more readable.
-
Francois Tur authored
* - ensure description of 'append' match what is encoded. * - fix description based on review comments
-
- 15 Jun, 2018 2 commits
-
-
Miek Gieben authored
add a test to see if we copy the rcode correctly. Some minor cleanup in import ordering and renaming NewUpstream to New as we already are in the upstream package.
-
Francois Tur authored
* - implement an auto-tunable dialTimeout for fallback. * - fix gofmt * - factorized timeout computation with readTimeout / updated readme / * - fix comment
-
- 13 Jun, 2018 2 commits
-
-
Miek Gieben authored
Fix typo corendns -> coredns in coredns.1
-
Miek Gieben authored
Bump the version, allows #691 to get merged.
-
- 12 Jun, 2018 2 commits
-
-
Miek Gieben authored
* plugin/file: fix local CNAME lookup Issue #1864 explains it will, when we serve the child zone as well we should just recursive into ourself (upstream self). Thus relax the IsSubDomain check in file/lookup.go and just query (even if the query will hit a remote server). I've looped over all other plugins that do something similar (CNAME resolving) and they didn't do the IsSubDomain check; therefor I've removed it from *file* as well. Added test in file_upstream_test that shows this failed before but now results in a reply. Fixes #1864 * self does not need to be exported * Fix test We don't know if we had a valid reply. Check this.
-
Miek Gieben authored
Remove the code and remove the call in etcd and kubernetes handlers. This does mean we should not add dups in the first place, which means adding maps in backend_lookup to prevent dups from begin added. This should cut down on the allocations because dnsutil.Dedup is very expensive by converting everything to strings, we avoid doing that now.
-