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 Jun, 2018 1 commit
    • John Belamaric's avatar
      Watch feature (#1527) · 99287d09
      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
      99287d09
  2. 26 Jun, 2018 1 commit
  3. 25 Jun, 2018 1 commit
  4. 22 Jun, 2018 2 commits
  5. 21 Jun, 2018 2 commits
    • Miek Gieben's avatar
      Makefile fixes: (#1892) · ad802123
      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.
      ad802123
    • Tobias Schmidt's avatar
      plugin/forward: Increase minimum read timeout to 200ms (#1889) · 422aec5f
      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.
      422aec5f
  6. 20 Jun, 2018 4 commits
    • Tobias Schmidt's avatar
      Rename forward metrics socket_count_total to sockets_open (#1885) · e3534205
      Tobias Schmidt authored
      The prometheus naming convention states only counters should have a
      `_total` suffix, so that gagues and counters can be easily
      distinguished.
      e3534205
    • Miek Gieben's avatar
      remove deprecated code (#1888) · 41c72478
      Miek Gieben authored
      This removes:
      * reverse plugin from plugin.cfg
      * https_google option from proxy
      * the -log flag
      41c72478
    • Tobias Schmidt's avatar
      Ensure cache.ResponseWriter can be used asynchronously during prefetch (#1884) · 9c2dc7a1
      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.
      9c2dc7a1
    • Miek Gieben's avatar
      Release 1.1.4 · f78f3023
      Miek Gieben authored
      f78f3023
  7. 18 Jun, 2018 2 commits
  8. 15 Jun, 2018 2 commits
  9. 13 Jun, 2018 2 commits
  10. 12 Jun, 2018 2 commits
    • Miek Gieben's avatar
      plugin/file: fix local CNAME lookup (#1866) · 26c41a0c
      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.
      26c41a0c
    • Miek Gieben's avatar
      Remove dnsutil.Dedup (#1867) · 6e466d50
      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.
      6e466d50
  11. 08 Jun, 2018 1 commit
    • Miek Gieben's avatar
      Update the pr template (#1862) · 58d69913
      Miek Gieben authored
      Add "Why is this needed".
      
      I can get a description of what the PR does from the code changes,
      answering the why question is more important.
      58d69913
  12. 07 Jun, 2018 1 commit
    • Malcolm Akinje's avatar
      Normalizing Response Duration in Log Plugin (#1860) · 18b11fc8
      Malcolm Akinje authored
      * Current stage of the log files. Test need to be done as well as formatting of times.
      
      * Finished testing. All altered classes test pass along with my additions
      
      * Updated the replacer package to print the units as well. May take out.
      
      * Changed the time units to be within the rules. Fixed the test as well.
      
      * Fixed some tests, updated the readme, fixed the replacer class.
      
      * Updates of standardizing only to seconds in response duration. Need to revert README.
      
      * Reverted readme.
      
      * Added a small test in new replacer.
      
      * Changed replacer to inline the strconv for duration.
      18b11fc8
  13. 06 Jun, 2018 2 commits
  14. 05 Jun, 2018 1 commit
    • Miek Gieben's avatar
      Docker: drop alpine (#1843) · a77d9834
      Miek Gieben authored
      * Docker: drop alpine
      
      Create a multistage docker build image that uses debian to install certs
      and then create the final image by using FROM: scratch. This creates a
      (slightly) smaller images and drops busybox and alpine.
      
      * Even less copying
      a77d9834
  15. 03 Jun, 2018 2 commits
    • Miek Gieben's avatar
      Fix presubmit (#1850) · 70a53e25
      Miek Gieben authored
      Uppercase these test cases as well.
      70a53e25
    • Miek Gieben's avatar
      presubmit: Check errorf as well (#1845) · 22c0b30d
      Miek Gieben authored
      Uppercase all these test errors as well. And extend the presubmit to
      check for these in the future. Also do a slightly smarter grep to only
      get t.<something>. as (because dump regexp) this also grep over non test
      files.
      22c0b30d
  16. 02 Jun, 2018 1 commit
  17. 01 Jun, 2018 2 commits
  18. 28 May, 2018 1 commit
  19. 26 May, 2018 1 commit
    • Ruslan Drozhdzh's avatar
      plugin/forward: erase expired connections by timer (#1782) · 833e3dda
      Ruslan Drozhdzh authored
      * plugin/forward: erase expired connection by timer
      
       - in previous implementation, the expired connections resided in
         cache until new request to the same upstream/protocol came. In
         case if the upstream was unhealthy new request may come long time
         later or may not come at all. All this time expired connections
         held system resources (file descriptors, ephemeral ports). In my
         fix the expired connections and related resources are released
         by timer
       - decreased the complexity of taking connection from cache. The list
         of connections is treated as stack (LIFO queue), i.e. the connection
         is taken from the end of queue (the most fresh connection) and
         returned to the end (as it was implemented before). The remarkable
         thing is that all connections in the stack appear to be ordered by
         'used' field
       - the cleanup() method finds the first good (not expired) connection
         in stack with binary search, since all connections are ordered by
         'used' field
      
      * fix race conditions
      
      * minor enhancement
      
      * add comments
      833e3dda
  20. 25 May, 2018 1 commit
  21. 24 May, 2018 5 commits
  22. 23 May, 2018 2 commits
    • darkweaver87's avatar
      ADD ignoreemptyservice option for kubernetes plugin (#1813) · 003e104f
      darkweaver87 authored
      * ADD: ignoreemptyservice option for kubernetes plugin
      
      * Modify documentation and rename option to add space
      
      * UPD: Add unit tests
      
      * UPD: gofmt
      
      * Add unit test for ignore emptyservice
      
      * gofmt
      
      * xfr tests failed
      
      * Rename emptyservice to empty_service
      003e104f
    • Miek Gieben's avatar
      Revert pkg/nonwriter changes (#1829) · 0f74281a
      Miek Gieben authored
      The DoH work (#1619) made changes to pkg/nonwriter.Writer that in
      hindsight were not backwards compatible; it added override for the
      LocalAddr() and RemoteAddr(). Instead of rolling back that PR, this PR
      reverts those changes and creates a DoHWriter for use in the
      https-server.go side of things.
      
      This was only caught in the integration test making this hard to catch,
      so we add a upstream_file_test.go that tries (doesn't work yet) to test
      this in the unit tests as well. Esp. helpful when 'git bisecting'.
      
      Fixes #1826
      0f74281a
  23. 22 May, 2018 1 commit