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. 14 Jun, 2017 4 commits
    • Chris O'Haver's avatar
      middleware/kubernetes: Implement current federation beta (#723) · 930c54ef
      Chris O'Haver authored
      * federation initial commit
      
      * UTs/bugfixes
      
      * federation bits
      
      * polish, cover UT gaps
      
      * add TODO
      
      * go fmt & todo note
      
      * remove unrelated change
      
      * pr changes
      
      * start node watcher
      
      * get real node name
      
      * remove unused case
      930c54ef
    • Miek Gieben's avatar
      middleware/debug: add (#735) · 8e86fa6f
      Miek Gieben authored
      * middleware/debug: add
      
      Add a debug "middleware" that disables the recover() and just lets
      CoreDNS crash; very useful for testing.
      
      Fixes ##563
      
      * fix test
      
      * Feedback: check the value of Debug
      8e86fa6f
    • Miek Gieben's avatar
      middleware/file: consider no SOA a fatal error (#734) · 46bf7f31
      Miek Gieben authored
      Don't load a zone with a SOA record, barf with 'no SOA record' error.
      46bf7f31
    • Miek Gieben's avatar
      New cache implementation and prefetch handing in mw/cache (#731) · e9eda7e7
      Miek Gieben authored
      * cache: add sharded cache implementation
      
      Add Cache impl and a few tests. This cache is 256-way sharded, mainly
      so each shard has it's own lock. The main cache structure is a readonly
      jump plane into the right shard.
      
      This should remove the single lock contention on the main lock and
      provide more concurrent throughput - Obviously this hasn't been tested
      or measured.
      
      The key into the cache was made a uint32 (hash.fnv) and the hashing op
      is not using strings.ToLower anymore remove any GC in that code path.
      
      * here too
      
      * Minimum shard size
      
      * typos
      
      * blurp
      
      * small cleanups no defer
      
      * typo
      
      * Add freq based on Johns idea
      
      * cherry-pick conflict resolv
      
      * typo
      
      * update from early code review from john
      
      * add prefetch to the cache
      
      * mw/cache: add prefetch
      
      * remove println
      
      * remove comment
      
      * Fix tests
      
      * Test prefetch in setup
      
      * Add start of cache
      
      * try add diff cache options
      
      * Add hacky testcase
      
      * not needed
      
      * allow the use of a percentage for prefetch
      
      If the TTL falls below xx% do a prefetch, if the record was popular.
      Some other fixes and correctly prefetch only popular records.
      e9eda7e7
  2. 13 Jun, 2017 1 commit
  3. 10 Jun, 2017 1 commit
  4. 09 Jun, 2017 4 commits
    • Miek Gieben's avatar
      core: -log bolean flag to enable logging (#726) · 0d72efbb
      Miek Gieben authored
      * core: -log bolean flag to enable logging
      
      Change to -log flag to a boolean that defaults false and when true
      logs to stdout.
      
      * And bool here
      0d72efbb
    • Chris O'Haver's avatar
      remove unused funcs (#724) · 2ec96e0b
      Chris O'Haver authored
      2ec96e0b
    • Pat Moroney's avatar
      middleware/hosts for /etc/hosts parsing (#695) · 92dd947c
      Pat Moroney authored
      * add hosts middleware
      
      * forgot pointer receiver
      
      * add appropriately modified hostsfile tests from golang repo
      
      * remove test artifacts, separate hostsfile parsing from caching and opening, remove unused metrics references, move middleware up the chain
      
      * refactored the logic for creating records and filtering ip address versions. also got PTR lookups working
      
      * Add README.md. Modify config to be more concise. Add zones list to config. Filter PTR responses based on zones list.
      
      * add Fallthrough and return correct dns response code otherwise
      
      * Simplified Hostsfile to only store hosts in the zones we care about, and by ip version. Added handler tests and improved other tests.
      
      * oops, goimports loaded a package from a different repo
      92dd947c
    • Miek Gieben's avatar
      middleware/file: don't reload zone when SOA isn't changed (#707) · 990460ee
      Miek Gieben authored
      * middleware/file: don't reload zone when SOA isn't changed
      
      Give Parse an extra argument which is the SOA's serial, if > 0 we check
      against the just parsed SOA and then just return.
      
      Most notable use is in reload.go which is both used in the file and auto
      middleware.
      
      Fixes #415
      
      * PR comments
      990460ee
  5. 08 Jun, 2017 1 commit
    • Miek Gieben's avatar
      middleware/proxy: remove singleinflight from dns (#717) · 1c45e262
      Miek Gieben authored
      Singleinflight interferes with the health checking of upstream. If an
      upstream would fail, singleinflight would mirror that error to to other
      proxy *iff* multple identical queries would be inflight. This would lead
      to marking *all* upstreams as bad, essentially collapsing multiple
      upstreams into a SPOF. Clearly not what we want.
      
      Singleinflight does have some nice properties, but I've opted to rip it
      out entirely. Caching should almost (but not quite) as good.
      
      Added a test case in test that uses 3 CoreDNS instances to reflect the
      setup from #715.
      
      Found another bug as well, where (when the policy would be nil), we
      would always Spray even though we've found a healthy host.
      1c45e262
  6. 05 Jun, 2017 1 commit
  7. 04 Jun, 2017 1 commit
  8. 03 Jun, 2017 7 commits
  9. 02 Jun, 2017 6 commits
  10. 01 Jun, 2017 2 commits
    • Miek Gieben's avatar
      middleware/secondary: fix crash with no zone (#680) · 30ecb83d
      Miek Gieben authored
      When CoreDNS starts up and can't get a zone transfer going the Apex is
      empty. This `nil` is then transformed into wireformat, which fails with
      a nil pointer dereference in Go DNS.
      
      In this case we should just return SERVFAIL, because we don't have any
      info (yet). Note the lookup code returned NXDOMAIN, which is correct
      from a lookup standpoint, but also invalidates every name in the future
      loaded zone.
      
      Anyway, look for an apex before doing the lookup and return SERVFAIL if
      nothing is found.
      
      Fixes #679
      30ecb83d
    • Miek Gieben's avatar
      middleware/{log,errors}: output everything to stdout (#684) · e261ac1a
      Miek Gieben authored
      Limit the options in both errors and log middleware, just output to
      stdout and let someone else (journald,docker) care about where to route
      the logs. This removes syslog and logging to a file.
      
      Fixes #573 #602
      e261ac1a
  11. 30 May, 2017 2 commits
  12. 26 May, 2017 4 commits
    • cricketliu's avatar
      Update README.md (#668) · 2f2c90f3
      cricketliu authored
      * Update README.md
      
      Minor cosmetic fixes, including one broken comment in a sample Corefile.
      
      * Fix verb tense
      2f2c90f3
    • Eric Yan's avatar
      middleware/file: add DNAME support (#651) · d2268d30
      Eric Yan authored
      * Test DNAME handling
      
      If the DNAME itself matches the QTYPE, and the owner name matches QNAME,
      the relevant DNAME RR should be included in the answer section.
      
      Other parts of RFC 6672 are not implemented yet and hence left untested.
      
      * Implement the DNAME substitution
      
      As specified in RFC 6672, a DNAME substitution is performed by replacing
      the suffix labels of the name being sought matching the owner name of
      the DNAME resource record with the string of labels in the RDATA field.
      The matching labels end with the root label in all cases. Only whole
      labels are replaced.
      
      * Handle DNAME redirection
      
      A CNAME RR is created on-the-fly for the DNAME redirection. Be aware
      that we do not have all the edge cases covered yet.
      
      * Test DNAME owner name matching the QNAME
      
      A DNAME RR redirects DNS names subordinate to its owner name; the owner
      name of a DNAME is NOT redirected itself.
      
      * Ignore names next to and below a DNAME record
      
      According to RFC 6672, resource records MUST NOT exist at any subdomain
      of the owner of a DNAME RR. When loading a zone, those names below the
      DNAME RR will be quietly ignored.
      
      * Streamline DNAME processing
      
      Instead of checking DNAMEs during lookup, we use a preloaded list of
      DNAME RRs to streamline the process without any runtime performance
      penalty:
      
       * When loading the zone, keep a record of any DNAME RRs.
       * If there aren't any DNAMEs in the zone, just do the lookup as usual.
       * Only when the zone has one or more DNAME records, we look for the
         matching DNAME and ignore confronting subdomain(s) in the process.
      
      * Make it easier to trace back through test errors
      
      * Make DNAME handling part of lookup routine
      
      DNAME processing is invoked only if the zone has at least one DNAME RR.
      
      * Put DNAME resolution inside the searching of a hit
      
      We can drop some of the other ideas; we don't need to track if we
      have DNAMEs in the zone it just follows naturally from the current
      lookup code.
      
      See also: #664
      d2268d30
    • Manuel Alejandro de Brito Fontes's avatar
    • Yong Tang's avatar
      Some golint cleanup (#674) · 37050dc2
      Yong Tang authored
      This commit fixes some golint issues in `core/dnsserver`
      and `middleware/kubernetes`.
      Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
      37050dc2
  13. 25 May, 2017 1 commit
  14. 24 May, 2017 1 commit
  15. 23 May, 2017 1 commit
    • Chris O'Haver's avatar
      Handle K8s middleware NS record (#662) · 7f950e49
      Chris O'Haver authored
      * commit for testing in cluster
      
      * commit for testing in cluster
      
      * refactor and add ns.dns record
      
      * Release 007
      
      * reduce heap allocations
      
      * gofmt
      
      * revert accidental Makefile commits
      
      * restore prior rcode for disabled pod mode
      
      * revert Makefile deltas
      
      * add unit tests
      
      * more unit tests
      
      * make isRequestInReverseRange easier to test
      
      * more unit tests
      
      * addressing review feedback
      
      * commit setup.go
      7f950e49
  16. 22 May, 2017 1 commit
    • Miek Gieben's avatar
      middleware/chaos: fix version (#669) · 024f5668
      Miek Gieben authored
      * middleware/chaos: fix version
      
      Move the version setting into a init function so it is done early. Then
      tweak the setup code for chaos a bit to correctly pick this version up.
      Add an integration test to pick this up in the toplevel test/ directory.
      
      Fixes #667
      
      * Update tests
      024f5668
  17. 12 May, 2017 1 commit
    • Miek Gieben's avatar
      Makefile.release: bogus all target (#666) · 7e6f5c77
      Miek Gieben authored
      Make the default target do nothing and put the actual release under a
      'release' target. Prevent accidentally committing unwanted commits to
      the repo.
      
      Tested with `make -f Makefile.release -n`.
      7e6f5c77
  18. 08 May, 2017 1 commit