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. 23 Jan, 2018 1 commit
  2. 22 Jan, 2018 2 commits
  3. 19 Jan, 2018 2 commits
  4. 18 Jan, 2018 4 commits
    • Paul Greenberg's avatar
      feature: plugin/rewrite: rewrite ANSWER SECTION (#1318) · 258c163b
      Paul Greenberg authored
      Resolves: #1313
      258c163b
    • Miek Gieben's avatar
      plugin/dnssec: fix blacklies for NXDOMAIN (#1399) · cb3190ba
      Miek Gieben authored
      * plugin/dnssec: filter bitmap also for NXDOMAIN responses
      
      We change nxdomain to nodata, so at the point when we receive the
      reply it can be nxdomain or nodata. In both cases we should filter the
      nsec bitmap.
      
      Change the code and add explicit tests for this.
      
      * More tests
      cb3190ba
    • Miek Gieben's avatar
      plugin/health: add lameduck mode (#1379) · c39e5cd0
      Miek Gieben authored
      * plugin/health: add lameduck mode
      
      Add a way to configure lameduck more, i.e. set health to false, stop
      polling plugins. Then wait for a duration before shutting down. As the
      health middleware is configured early on in the plugin list, it will
      hold up all other shutdown, meaning we still answer queries.
      
      * Add New
      
      * More tests
      
      * golint
      
      * remove confusing text
      c39e5cd0
    • Miek Gieben's avatar
      plugin/dnssec: check validityperiod of RRSIGs (#1385) · 318bab77
      Miek Gieben authored
      * plugin/dnssec: check validityperiod of RRSIGs
      
      Somehow we missed implementing this. If a sig a retrieved from the
      cache, but not valid anymore, regenerate it instead of server invalid
      signatures.
      
      Fixes #1378
      
      * drop from cache after 3/4 validity
      
      * six days means 6 days
      318bab77
  5. 17 Jan, 2018 1 commit
    • Tobias Schmidt's avatar
      plugin/cache: Fix prefetching issues (#1363) · dd9fc896
      Tobias Schmidt authored
      * Improve plugin/cache metrics
      
      * Add coredns_cache_prefetch_total metric to track number of prefetches.
      * Remove unnecessary Cache.get() call which would incorrectly increment
        cache counters.
      * Initialize all counters and gauges at zero.
      
      * Allow prefetching of a single request per ttl
      
      The original implementation didn't allow prefetching queries which are
      only requested once during the duration of a TTL. The minimum amount of
      queries which had to be seen was therefore capped at 2.
      
      This change also implements a real prefetch test. The existing test was
      a noop and always passed regardless of any prefetch implementation.
      
      * Fix prefetching for items with a short TTL
      
      The default prefetch threshold (percentage) is 10% of the lifetime of a
      cache item. With the previous implementation, this disabled prefetching
      for all items with a TTL < 10s (the resulting percentage would be 0, at
      which point a cached item is already discarded).
      
      This change uses a time based threshold calculation and ensures that
      a prefetch is triggered at a TTL of 1 at the latest.
      
      * Fix wrong duration reporting of cached responses
      
      The logging and metrics plugins (among others) included the duration of
      a cache prefetch in the request latency of client request. This change
      fixes this wrong reporting and executes the prefetch request in a
      goroutine in the background.
      dd9fc896
  6. 16 Jan, 2018 3 commits
    • Yong Tang's avatar
      Fix several typos (#1395) · fe076798
      Yong Tang authored
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      fe076798
    • Yong Tang's avatar
      Enhancement of external plugin enabling (#1392) · 9d87b953
      Yong Tang authored
      This fix is an enhancement of external plugin enabling.
      Previously, it was already able to build a customerized
      coredns with plugins enabled selectively, without changing
      coredns source code. However, all default plugins are
      actually bundled because of the import rule:
      ```
      "github.com/coredns/coredns/coremain"
      ```
      
      The issue is best described with the following:
      ```
      root@localhost:/go/src/github.com/coredns/coredns/sample# cat sample.go
      package main
      
      import (
              _ "github.com/coredns/forward"
      
              "github.com/coredns/coredns/coremain"
              "github.com/coredns/coredns/core/dnsserver"
      )
      
      var directives = []string{
              "forward",
              "startup",
              "shutdown",
      }
      
      func init() {
              dnsserver.Directives = directives
      }
      
      func main() {
              coremain.Run()
      }
      root@localhost:/go/src/github.com/coredns/coredns/sample#
      root@localhost:/go/src/github.com/coredns/coredns/sample# go build -v sample.go
      root@localhost:/go/src/github.com/coredns/coredns/sample# ./sample -plugins
      root@localhost:/go/src/github.com/coredns/coredns/sample# ./sample -plugins
      Server types:
        dns
      
      Caddyfile loaders:
        flag
        default
      
      Other plugins:
        dns.auto
        dns.autopath
        dns.bind
        dns.cache
        dns.chaos
        dns.debug
        dns.dnssec
        dns.dnstap
        dns.erratic
        dns.errors
        dns.etcd
        dns.federation
        dns.file
        dns.forward
        dns.health
        dns.hosts
        dns.kubernetes
        dns.loadbalance
        dns.log
        dns.nsid
        dns.pprof
        dns.prometheus
        dns.proxy
        dns.reverse
        dns.rewrite
        dns.root
        dns.route53
        dns.secondary
        dns.template
      ....
      ```
      
      This fix moves zplugins.go to a different package/directory so that
      it is possible to "only import plugins as needed".
      
      The following is the new output after this fix:
      ```
      root@localhost:/go/src/github.com/coredns/coredns/sample# ./sample -plugins
      Server types:
        dns
      
      Caddyfile loaders:
        flag
        default
      
      Other plugins:
        dns.forward
        dns.prometheus
        shutdown
        startup
      
      root@localhost:/go/src/github.com/coredns/coredns/sample#
      ```
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      9d87b953
    • Yong Tang's avatar
      Add route53 plugin (#1390) · 584dd87c
      Yong Tang authored
      * Update vendor
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      
      * Add route53 plugin
      
      This fix adds route53 plugin so that it is possible to
      query route53 record through CoreDNS.
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      584dd87c
  7. 15 Jan, 2018 1 commit
  8. 14 Jan, 2018 2 commits
  9. 13 Jan, 2018 1 commit
  10. 12 Jan, 2018 3 commits
  11. 11 Jan, 2018 8 commits
  12. 10 Jan, 2018 5 commits
    • Miek Gieben's avatar
      Doc (#1369) · b7476d02
      Miek Gieben authored
      * Constent atx headers
      
      * Regen manual pages
      b7476d02
    • Miek Gieben's avatar
      Overloaded (#1364) · 48059a6c
      Miek Gieben authored
      * plugin/health: add 'overloaded metrics'
      
      Query our on health endpoint and record (and export as a metric) the
      time it takes. The Get has a 5s timeout, that, when reached, will set
      the metric duration to 5s. The actually call "I'm I overloaded" is left
      to an external entity.
      
      * README
      
      * golint and govet
      
      * and the tests
      48059a6c
    • Miek Gieben's avatar
      pkg/fall: make Zero and Root vars not funcs (#1367) · cced1a4c
      Miek Gieben authored
      These can be just vars. Think that was intended as well.
      cced1a4c
    • Miek Gieben's avatar
      plugin/template: small tweaks (#1366) · a19ea63d
      Miek Gieben authored
      Small README updates, and fallthrough fixes (using less code)
      a19ea63d
    • Rene Treffer's avatar
      Align plugin/template usage and syntax with other plugins (#1360) · 0091e1c9
      Rene Treffer authored
      * Align plugin/template usage and syntax with other plugins
      
      * Use new fallthrough logic in plugin/template
      
      * Use zone name normalization for plugin/template
      
      * Test fallthrough parsing in plugin/template
      
      * Rework scoping of match checks
      
      Most matches are not plugin global but per template. The plugin does only a
      very rough check while detailed checks are done per-template.
      
      Per template checks include:
      - Zones
      - Class/Type
      - Regex
      - Fallthrough
      
      * Remove trailing `.` from fully qualified domain names
      
      * Register template metrics with zone/class/type instead of regex
      
      * Remove trailing fqdn dot from multiple testcases
      0091e1c9
  13. 08 Jan, 2018 5 commits
    • Miek Gieben's avatar
      plugin/proxy: max the number of upstreams (#1359) · a7590897
      Miek Gieben authored
      * plugin/proxy: max the number of upstreams
      
      Put a max of 15 on the number of upstreams.
      a7590897
    • Miek Gieben's avatar
      plugin/template: README tweaks (#1361) · dd37627e
      Miek Gieben authored
      * plugin/template: README tweaks
      
      * Go gen it
      dd37627e
    • Rene Treffer's avatar
      plugin/template (#1298) · a322d90f
      Rene Treffer authored
      * Add a template plugin
      
      The template plugin matches the incoming query by class, type and regex
      and templates a response with go templates.
      
      * Fix go style errors
      
      * Fix template README example
      
      * Fix corefile example in plugin/template
      
      * Clarify plugin/template/README.md
      
      Add more details and external links where needed.
      
      * Fix code issues in plugin/template
      
      * Add template metrics
      
      * Add section and template to template plugin metrics
      
      * Fix style / remove extra newline on go imports
      
      * Fix typo in plugin/template/README.md
      
      * Update README.md
      
      I've change the format a bit in a PR that I merged yesterday.
      
      * Add authority section to plugin/template
      
      * Fix naming of incoming query name in plugin/template/README.md
      
      * Fix doc syntax in plugin/template/README.md
      
      * Add authority section to plugin/template/README.md config overview
      
      * Add metric labels to plugin/template/README.md metrics section
      
      * Use request.Request to pass state to the template matcher
      a322d90f
    • John Belamaric's avatar
      Simplify plugin/pkg/fall (#1358) · c59f5f6e
      John Belamaric authored
      * Simplify plugin/pkg/fall
      
      * Remove unused import
      
      * Fix fall_test
      
      * Get fall coverage to 100% just because
      
      * gofmt. sigh.
      c59f5f6e
    • Miek Gieben's avatar
      Add pkg/fall for Fallthrough (#1355) · c6febe62
      Miek Gieben authored
      * Add pkg/fall for Fallthrough
      
      Move this into it's own package to facilitate tests. Important bug
      was fixed: make the names fully qualified.
      
      Add fall package to hosts, reverse, etcd, and fix kubernetes and any
      tests. The k8s tests are still as-is, might need a future cleanup.
      c6febe62
  14. 07 Jan, 2018 1 commit
  15. 06 Jan, 2018 1 commit