Giter Site home page Giter Site logo

Comments (4)

chrisohaver avatar chrisohaver commented on June 9, 2024

The question is: With the default coredns setup, meaning there is only "forward /etc/resolv.conf" line in Corefile, can there be any other reasons why Coredns would make such NS lookups?

The health checks are only done when CoreDNS fails to get a DNS response from the upstream (e.g. timeout, connection refused, etc). DNS protocol error type responses (such as REFUSED, NOTIMPL, SERVFAIL, etc), are not considered failures in this context, and those responses are passed along to the client.

from coredns.

Jack200062 avatar Jack200062 commented on June 9, 2024

In forward plugin doc. There is a sentence saying:

Any response that is not a network error (REFUSED, NOTIMPL, SERVFAIL, etc) is taken as a healthy upstream

That's why I thought that if coredns would receive a SERVFAIL response from upstream, it would perform health check with recursive NS . lookup. Am I wrong? Could you clarify please this moment to me, thanks!

from coredns.

chrisohaver avatar chrisohaver commented on June 9, 2024

I thought that if coredns would receive a SERVFAIL response from upstream, it would perform health check with recursive NS . lookup. Am I wrong? Could you clarify please this moment to me, thanks!

"Any response that is not a network error (REFUSED, NOTIMPL, SERVFAIL, etc) is taken as a healthy upstream"

Therefore...

"A response of SERVFAIL is considered a healthy upstream"

Since in this case the server is considered healthy, no health check is performed.

This is as designed.

from coredns.

chrisohaver avatar chrisohaver commented on June 9, 2024

"Any response that is not a network error (REFUSED, NOTIMPL, SERVFAIL, etc) is taken as a healthy upstream"

The phrasing in this sentence is ambiguous. "(REFUSED, NOTIMPL, SERVFAIL, etc)" are examples of responses that are not network errors. They are not examples of responses that are network errors. Those Response codes are specifically called out because they look like errors, but they are not network errors.

Nevertheless REFUSED, NOTIMPL, SERVFAIL cannot be network errors, because they are DNS response codes, and the only way you can get a dns response code back is if there was a successful network connection.

from coredns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.