Giter Site home page Giter Site logo

Comments (5)

drduh avatar drduh commented on May 10, 2024

Do you think both strict-order and no-resolv are necessary, or just the latter? The man page indicates

strict-order
Setting this flag forces dnsmasq to try each query with each server strictly in the order they appear in /etc/resolv.conf

no-resolv
Don't read /etc/resolv.conf.

from macos-security-and-privacy-guide.

dnwe avatar dnwe commented on May 10, 2024

Yeah without looking at the code it wasn't obvious from the man page whether the order of server= directives in the conf file was only significant if strict was set

from macos-security-and-privacy-guide.

dnwe avatar dnwe commented on May 10, 2024

I believe strict-order does effect the order in which queries are attempted even for a purely dnsmasq.conf setup as soon as you have more than one server= line. I think without that directive it will initially just query a random one from the list, and if it can obtain a result from there it will use that server by default next time. A fairly non-deterministic behaviour. However, if you enable strict-order it will always try them in top-down fashion regardless of which happened to respond successfully on previous attempts.

Obviously it has no effect if you only have a single server= entry, so feel free to omit it

from macos-security-and-privacy-guide.

dnwe avatar dnwe commented on May 10, 2024

@drduh out of interest, why did you drop the no-resolv for 432d765?

from macos-security-and-privacy-guide.

drduh avatar drduh commented on May 10, 2024

Did I misunderstand you? I thought no-resolv isn't necessary. Please send me a PR if I made a mistake.

from macos-security-and-privacy-guide.

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.