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 .
  1. 15 Feb, 2019 1 commit
  2. 13 Feb, 2019 2 commits
    • Anders Ingemann's avatar
      Adjust docs for [ADDRESS] in metrics plugin (#2555) · 008f9eb8
      Anders Ingemann authored
      The [ADDRESS] field in the metrics plugin is not explained in a manner
      that makes it immediately obvious, that what we are talking about here
      is a listening address.
      008f9eb8
    • Thomas Mangin's avatar
      plugin/hosts provide more configuration flexibility (#2535) · 4b402e00
      Thomas Mangin authored
      * plugin/hosts provide more configuration flexibility
      
      This patch adds few features to the host plugin
       * no-reverse (both as first argument on the plugin line and inline)
         disable the automatic generation of reserve entries for hosts
       * ttl <duration> (inline only atm)
         allows to change the default ttl (default 5 minutes)
       * reload <duration> (inline only atm)
         allows to change the reloading interval (default 5s)
      
      * plugin/hosts remove superfluous parameters to parse
      4b402e00
  3. 12 Feb, 2019 1 commit
    • Miek Gieben's avatar
      pkg/replace: make it more efficient. (#2544) · e47d8814
      Miek Gieben authored
      * pkg/replace: make it more efficient.
      
      Remove the map that is allocated on every write and make it more static,
      but just defining a function that gets called for a label and returns
      its value.
      
      Remove the interface definition and just implement what is needed in our
      case. Add benchmark test for replace as well.
      
      Extend metadata test to test multiple values (pretty sure this didn't
      work, but there wasn't a test for it, so can't be sure).
      
      Update all callers to use it - concurrent use should be fine as we pass
      everything by value.
      
      Benchmarks in replacer:
      
      new: BenchmarkReplacer-4   300000      4717 ns/op     240 B/op       8 allocs/op
      old: BenchmarkReplacer-4   300000      4368 ns/op     384 B/op      11 allocs/op
      
      Added benchmark function to the old code to test it.
      
      ~~~
      func BenchmarkReplacer(b *testing.B) {
      	w := dnstest.NewRecorder(&test.ResponseWriter{})
      	r := new(dns.Msg)
      	r.SetQuestion("example.org.", dns.TypeHINFO)
      	r.MsgHdr.AuthenticatedData = true
      	b.ResetTimer()
      	b.ReportAllocs()
      	repl := New(context.TODO(), r, w, "")
      	for i := 0; i < b.N; i++ {
      		repl.Replace("{type} {name} {size}")
      	}
      }
      ~~~
      
      New code contains (of course a different one). The amount of ops is
      more, which might be good to look at some more. For all the allocations
      is seems it was quite performant.
      
      This looks to be 50% faster, and there is less allocations in log
      plugin:
      
      old: BenchmarkLogged-4   	   20000	     70526 ns/op
      new: BenchmarkLogged-4   	   30000	     57558 ns/op
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Stickler bot
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Improve test coverage
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * typo
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Add test for malformed log lines
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      e47d8814
  4. 11 Feb, 2019 2 commits
  5. 09 Feb, 2019 5 commits
  6. 08 Feb, 2019 1 commit
  7. 07 Feb, 2019 1 commit
  8. 03 Feb, 2019 1 commit
  9. 02 Feb, 2019 1 commit
  10. 01 Feb, 2019 2 commits
  11. 30 Jan, 2019 2 commits
  12. 29 Jan, 2019 3 commits
    • Ye Ben's avatar
      some typo fix (#2512) · 0eff7f37
      Ye Ben authored
      Signed-off-by: default avataryeya24 <ben.ye@daocloud.io>
      0eff7f37
    • Carl-Magnus Björkell's avatar
      plugin/etcd: Filter empty host field by qtype (#2499) · a84c26d7
      Carl-Magnus Björkell authored
      When a query, different from a TXT lookup is performed, all services
      with a missing `Host` field should be filtered out, as these otherwize
      cause a line in the answer section with a single dot (`.`) as the
      result. This behavior manifests for example when a TXT record is present
      on a domain, eg. an A or SRV lookup is performed on said domain.
      
      If there are no services containing a `Host` field, a `NODATA` response
      should be given. If there are other Services, these alone should be
      returned for the query.
      
      Filter any service that has an empty Host field from all lookup types
      other than TXT to solve this issue. At the same time the check for empty
      `Text` fields in TXT queries are also moved to the same check in the
      etcd ServiceBackend.
      a84c26d7
    • Thomas Mangin's avatar
      plugin/hosts: fix for ipv4-in-ipv6 (#2506) · e3435566
      Thomas Mangin authored
      * fix for ipv4-in-ipv6
      
      * update comment as requested
      e3435566
  13. 28 Jan, 2019 6 commits
  14. 25 Jan, 2019 2 commits
  15. 23 Jan, 2019 1 commit
  16. 21 Jan, 2019 2 commits
  17. 19 Jan, 2019 2 commits
  18. 16 Jan, 2019 2 commits
  19. 14 Jan, 2019 3 commits
    • Yong Tang's avatar
      Deprecate multiple endpoints for out-of-cluster k8s api (#2454) · 7bd68551
      Yong Tang authored
      This fix deprecates endpoints for out-of-cluster k8s api,
      The Corefile still takes multiple endpoints though only
      the first one is used. A warning is shown if there are
      multiple endpoints.
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      7bd68551
    • Miek Gieben's avatar
      Fix setup_test in plugin/kubernetes (#2460) · f655d404
      Miek Gieben authored
      PR race condition, fix the test data for the setup.
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      f655d404
    • Miek Gieben's avatar
      Default to upstream to self (#2436) · 9c16ed1d
      Miek Gieben authored
      * Default to upstream to self
      
      This is a backwards incompatible change.
      
      This is a massive (cleanup) PR where we default to resolving external
      names by the coredns process itself, instead of directly forwarding them
      to some upstream.
      
      This ignores any arguments `upstream` may have had and makes it depend
      on proxy/forward configuration in the Corefile. This allows resolved
      upstream names to be cached and we have better healthchecking of the
      upstreams. It also means there is only one way to resolve names, by
      either using the proxy or forward plugin.
      
      The proxy/forward lookup.go functions have been removed. This also
      lessen the dependency on proxy, meaning deprecating proxy will become
      easier. Some tests have been removed as well, or moved to the top-level
      test directory as they now require a full coredns process instead of
      just the plugin.
      
      For the etcd plugin, the entire StubZone resolving is *dropped*! This
      was a hacky (but working) solution to say the least. If someone cares
      deeply it can be brought back (maybe)?
      
      The pkg/upstream is now very small and almost does nothing. Also the
      New() function was changed to return a pointer to upstream.Upstream. It
      also returns only one parameter, so any stragglers using it will
      encounter a compile error.
      
      All documentation has been adapted. This affected the following plugins:
      * etcd
      * file
      * auto
      * secondary
      * federation
      * template
      * route53
      
      A followup PR will make any upstream directives with arguments an error,
      right now they are ignored.
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Fix etcd build - probably still fails unit test
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Slightly smarter lookup check in upstream
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Compilez
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      9c16ed1d