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. 22 Apr, 2018 1 commit
    • Miek Gieben's avatar
      reload: use OnRestart (#1709) · acbcad7b
      Miek Gieben authored
      * reload: use OnRestart
      
      Close the listener on OnRestart for health and metrics so the default
      setup function can setup the listener when the plugin is "starting up".
      
      Lightly test with some SIGUSR1-ing. Also checked the reload plugin with
      this, seems fine:
      
      .com.:1043
      .:1043
      2018/04/20 15:01:25 [INFO] CoreDNS-1.1.1
      2018/04/20 15:01:25 [INFO] linux/amd64, go1.10,
      CoreDNS-1.1.1
      linux/amd64, go1.10,
      2018/04/20 15:01:25 [INFO] Running configuration MD5 = aa8b3f03946fb60546ca1f725d482714
      2018/04/20 15:02:01 [INFO] Reloading
      2018/04/20 15:02:01 [INFO] Running configuration MD5 = b34a96d99e01db4015a892212560155f
      2018/04/20 15:02:01 [INFO] Reloading complete
      ^C2018/04/20 15:02:06 [INFO] SIGINT: Shutting down
      
      With this corefile:
      .com {
        proxy . 127.0.0.1:53
        prometheus :9054
        whoami
        reload
      }
      
      . {
        proxy . 127.0.0.1:53
        prometheus :9054
        whoami
        reload
      }
      
      The prometheus port was 9053, changed that to 54 so reload would pick it
      up.
      
      From a cursory look it seems this also fixes:
      Fixes #1604 #1618 #1686 #1492
      
      * At least make it test
      
      * Use onfinalshutdown
      
      * reload: add reload test
      
      This test #1604 adn right now fails.
      
      * Address review comments
      
      * Add bug section explaining things a bit
      
      * compile tests
      
      * Fix tests
      
      * fixes
      
      * slightly less crazy
      
      * try to make prometheus setup less confusing
      
      * Use ephermal port for test
      
      * Don't use the listener
      
      * These are shared between goroutines, just use the boolean in the main
        structure.
      * Fix text in the reload README,
      * Set addr to TODO once stopping it
      * Morph fturb's comment into test, to test reload and scrape health and
        metric endpoint
      acbcad7b
  2. 20 Apr, 2018 5 commits
  3. 19 Apr, 2018 4 commits
  4. 18 Apr, 2018 2 commits
  5. 17 Apr, 2018 1 commit
  6. 16 Apr, 2018 1 commit
  7. 14 Apr, 2018 1 commit
  8. 13 Apr, 2018 2 commits
  9. 12 Apr, 2018 2 commits
  10. 11 Apr, 2018 3 commits
    • Ruslan Drozhdzh's avatar
      a0f294e5
    • Maksim Paramonau's avatar
      plugin/log: allow various combinations of classes of responses (#1664) · ccfe691b
      Maksim Paramonau authored
      This allows to log responses of different classes, for example, denial and error.
      ccfe691b
    • Ruslan Drozhdzh's avatar
      plugin/forward: use dynamic read timeout (#1659) · a20b4fe2
      Ruslan Drozhdzh authored
      - each proxy stores average RTT (round trip time) of last rttCount queries.
         For now, I assigned the value 4 to rttCount
       - the read timeout is calculated as doubled average RTT, but it cannot
         exceed default timeout
       - initial avg RTT is set to a half of default timeout, so initial timeout
         is equal to default timeout
       - the RTT for failed read is considered equal to default timeout, so any
         failed read will lead to increasing average RTT (up to default timeout)
       - dynamic timeouts will let us react faster on lost UDP packets
       - in future, we may develop a low-latency forward policy based on
         collected RTT values of proxies
      a20b4fe2
  11. 06 Apr, 2018 2 commits
  12. 01 Apr, 2018 7 commits
    • Miek Gieben's avatar
      Only check 1.10 again (#1652) · 848a5d7c
      Miek Gieben authored
      This double checking for 1.9 and 1.10 is nice, but doubles the
      travis test duration.
      848a5d7c
    • Miek Gieben's avatar
      plugin/forward: TCP conns can be closed (#1651) · 81348b42
      Miek Gieben authored
      * plugin/forward: TCP conns can be closed
      
      Only when we read and get a io.EOF we know the conn is closed (for TCP).
      If this is the case Dial (again) and retry. Note that this new
      connection can also be closed by the upstream, we may want to add a
      DialForceNew or something to get a new TCP connection..
      
      Simular to #1624, *but* this is by (TCP) design. We also don't have to
      wait for a timeout which makes it easier to reason about.
      
      * Move to forward.go
      
      * doesnt need changing
      81348b42
    • Miek Gieben's avatar
      make: use dns 1.0.5 (#1649) · f5435b38
      Miek Gieben authored
      Tagged an new release; has some fixes.
      f5435b38
    • Miek Gieben's avatar
      plugin/proxy: return client error (#1646) · 5f98e981
      Miek Gieben authored
      Return the client error if there was one instead of the generic
      "no healthy upstream or error"
      5f98e981
    • Miek Gieben's avatar
      plugin/metrics: add MustRegister function (#1648) · 2338120f
      Miek Gieben authored
      This registers the Collectors iff the metrics plugin has been loaded.
      Safes a bunch of code in each and every plugin's setup code.
      2338120f
    • Miek Gieben's avatar
      Metrics (#1579) · 4df416ca
      Miek Gieben authored
      * plugin/metrics: set server address in context
      
      Allow cross server block metrics to co-exist; for this we should label
      each metric with the server label. Put this information in the context
      and provide a helper function to get it out.
      
      Abstracting with entirely away with difficult as the release client_go
      (0.8.0) doesn't have the CurryWith functions yet. So current use is like
      so:
      
      define metric, with server label:
      
      	RcodeCount = prometheus.NewCounterVec(prometheus.CounterOpts{
      		Namespace: plugin.Namespace,
      		Subsystem: "forward",
      		Name:      "response_rcode_count_total",
      		Help:      "Counter of requests made per upstream.",
      	}, []string{"server", "rcode", "to"})
      
      And report ith with the helper function metrics.WithServer:
      
      	RcodeCount.WithLabelValues(metrics.WithServer(ctx), rc, p.addr).Add(1)
      4df416ca
    • Miek Gieben's avatar
      request.Do: use pointer to bool (#1632) · 5c5a98ee
      Miek Gieben authored
      Drop the doTrue and doFalse and use a pointer to a bool to do a proper
      tri-bool.
      5c5a98ee
  13. 31 Mar, 2018 1 commit
  14. 30 Mar, 2018 1 commit
  15. 27 Mar, 2018 2 commits
  16. 26 Mar, 2018 3 commits
    • Miek Gieben's avatar
      Release 1.1.1 · 231c2c0e
      Miek Gieben authored
      231c2c0e
    • Miek Gieben's avatar
      Run make -f Makefile.doc (#1635) · 8e0c7f92
      Miek Gieben authored
      8e0c7f92
    • Miek Gieben's avatar
      Fix dns-01-003 (#1634) · 5616fcb1
      Miek Gieben authored
      * plugin/{cache,forward,proxy}: don't allow responses that are bogus
      
      Responses that are not matching what we've been querying for should be
      dropped. They are converted into FormErrs by forward and proxy; as a 2nd
      backstop cache will also not cache these.
      
      * plug
      
      * add explicit test
      5616fcb1
  17. 25 Mar, 2018 1 commit
  18. 24 Mar, 2018 1 commit
    • Miek Gieben's avatar
      request.Scrub: test for rl==size case (#1631) · a8d02d97
      Miek Gieben authored
      * request.Scrub: test for rl==size case
      
      Make a test case for the new break statement in Scrub and also
      account for the OPT record that may get re-added in SizeAndDo() -
      otherwise we may break clients that expect this.
      
      * Fix comment
      a8d02d97