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. 27 Oct, 2016 1 commit
  2. 26 Oct, 2016 1 commit
    • Miek Gieben's avatar
      middleware/metrics: cleanup (#355) · 219bfd04
      Miek Gieben authored
      * middleware/metrics: add more metrics
      
      middleware/cache:
      Add metrics for number of elements in the cache. Also export the total
      size. Update README to detail the new metrics.
      
      middleware/metrics
      
      Move metrics into subpackage called "vars". This breaks the import
      cycle and is cleaner. This allows vars.Report to be used in the
      the dnsserver to log refused queries.
      
      middleware/metrics: tests
      
      Add tests to the metrics framework. The metrics/test subpackage allows
      scraping of the local server. Do a few test scrape of the metrics that
      are defined in the metrics middleware.
      
      This also allows metrics integration tests to check if the caching and
      dnssec middleware export their metrics correctly.
      
      * update README
      
      * typos
      
      * fix tests
      219bfd04
  3. 22 Oct, 2016 1 commit
  4. 21 Oct, 2016 1 commit
    • Yong Tang's avatar
      Use docker container (instead of binary) for kubectl and travis cleanup (#352) · a2bd9ad3
      Yong Tang authored
      This fix uses docker container for kubectl. Since Kubernetes docker
      image hyperkube has already been downloaded and it consists of
      kubectl, there is really no need to download kubectl binary again.
      
      This fix cleans up the Kubernetes related travis setup and removes
      unneeded scripts.
      
      This fix also fixes several mismatches of the Kubernetes version used,
      so that any changes in version in the future only need to update .travis.yml.
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      a2bd9ad3
  5. 20 Oct, 2016 4 commits
  6. 19 Oct, 2016 1 commit
  7. 18 Oct, 2016 6 commits
  8. 17 Oct, 2016 3 commits
  9. 15 Oct, 2016 1 commit
    • Yong Tang's avatar
      Add needed comments for `golint` cleanup. (#334) · a69e88db
      Yong Tang authored
      This fix adds several needed comments in
      `middleware/kubernetes/nametemplate/nametemplate.go`
      to clean up golint output.
      
      There are still 3 places that needs proper docs:
      ```
      middleware/kubernetes/nametemplate/nametemplate.go:64:1: comment on exported type Template should be of the form "Template ..." (with optional leading article)
      middleware/kubernetes/nametemplate/nametemplate.go:72:1: comment on exported method Template.SetTemplate should be of the form "SetTemplate ..."
      middleware/kubernetes/nametemplate/nametemplate.go:188:1: comment on exported type NameValues should be of the form "NameValues ..." (with optional leading article)
      ```
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      a69e88db
  10. 12 Oct, 2016 3 commits
  11. 11 Oct, 2016 2 commits
  12. 10 Oct, 2016 1 commit
  13. 09 Oct, 2016 2 commits
  14. 08 Oct, 2016 5 commits
  15. 07 Oct, 2016 1 commit
    • Miek Gieben's avatar
      Use dns.port argument as default · f29f622e
      Miek Gieben authored
      Make DefaultPort just be 53. And use the value of Port to make the zone
      stanzas complete (instead of defaulting to 53 always). This allows you
      to override the port with dns.port.
      f29f622e
  16. 05 Oct, 2016 1 commit
    • Miek Gieben's avatar
      kubernetes: hide contrib (#320) · ea984295
      Miek Gieben authored
      This is purely travis (and maybe local testing). Does not warrent (IMHO)
      a contrib/ directory. Hide it in a .travis directory.
      ea984295
  17. 04 Oct, 2016 1 commit
    • Miek Gieben's avatar
      middleware/metrics: fix crash on startup (#318) · db6c9a3f
      Miek Gieben authored
      Make the methods that handle Metrics all use pointer receivers to fix
      sync.Once not being initialized.
      
      Finish the setup_test to test for failures. And make the check for the
      address more strict and return an error when it does not have a port
      number.
      
      Add a toplevel test that starts a CoreDNS server with metrics enabled
      so we catch these errors in the future.
      db6c9a3f
  18. 03 Oct, 2016 3 commits
    • Yong Tang's avatar
      Fix a typo (#315) · d9148329
      Yong Tang authored
      This fix fixes a typo in middle/cache/README.md:
      `1 hours` => `1 hour`
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      d9148329
    • Miek Gieben's avatar
      middleware/file: transfer from does not make sense (#314) · cc486fb9
      Miek Gieben authored
      Make it return an error when you use `transfer from` when you're
      not a secondary.
      
      Add tests as well.
      
      Fixes #310
      cc486fb9
    • Miek Gieben's avatar
      EDNS0 unknown flags handling (#313) · 560f11d1
      Miek Gieben authored
      Fix the unknown flags handling when receiving such message. We should
      zero out all of the Z bits in the OPT record before returning.
      
      Current behavior:
      
          dig +norec +noad +ednsflags=0x80 soa miek.nl @deb.atoom.net
          ...
          ; EDNS: version: 0, flags:; MBZ: 0080 , udp: 4096
      
      New:
      
          dig +norec +noad +ednsflags=0x80 soa miek.nl @localhost -p 2053
          ...
          ; EDNS: version: 0, flags:; udp: 4096
      
      Take care no to overwrite the Do bit.
      
      We still accept *all* EDNS option; I do not consider that a bug in
      itself.
      
      Fixes #306
      560f11d1
  19. 02 Oct, 2016 2 commits
    • Miek Gieben's avatar
      Pr 311 2 (#312) · 4096c490
      Miek Gieben authored
      * Add a setup test for middleware/file
      
      This fix adds a setup test for middleware/file so that there is
      a basic coverage for the Corefile processing of middleware/file.
      
      This fix is related to 308 (Will look into it).
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      
      * middleware/file: use helper function for test
      
      Fixup setup_test.go and use the test.TempFile function to make things
      somewhat shorter.
      
      Use clean up the use of testing.T in TempFile - it is not used.
      4096c490
    • Miek Gieben's avatar
      middleware/cache: split cache in positive and negative and use lru (#298) · e54c232c
      Miek Gieben authored
      Make the cache memory bounded, by using a LRU cache. Also split the
      cache in a positive and negative one - each with its own controls.
      
      Extend the cache stanza to allow for this:
      
          cache {
             positive limit [ttl]
             negative limit [ttl]
          }
      
      is now possible. This also add a cache_test.go in the toplevel test/
      directory that exercises the caching path.
      
      Fixes #260
      e54c232c