Code Monkey home page Code Monkey logo

Comments (6)

MichaelWasher avatar MichaelWasher commented on September 3, 2024 2

+1
Alternatively, if there is a mechanisms for including custom configuration into the root of the unbound.conf config . Something like this:
master...MichaelWasher:dns:master

from dns.

Arderos avatar Arderos commented on September 3, 2024

+1 to that. Conditional Forwarders would be a very welcome addition.

from dns.

CloudMass avatar CloudMass commented on September 3, 2024

I would love to see this change as well. I'm using gluetun in a kubernetes cluster and would like for it to be able to look up DNS addresses in the cluster-dns. I have tested @MichaelWasher changes and confirmed that they are working.

from dns.

qdm12 avatar qdm12 commented on September 3, 2024

I just finished in commit 95ae9e8 with image qmcgaw/dns:v2.0.0-beta (beta still, almost done!), you can now use MIDDLEWARE_LOCALDNS_RESOLVERS=192.168.1.1:53 for example, and that will forward any requests for local domain names (like abc, abc.local, abc.nonexistingtld) to that address. For now it only works over plaintext DNS, but I don't see a need for tls etc. for the time being. You can also set multiple resolvers with commas in case you need this, and they'll be tried one by one. This will be plugged in Gluetun real soon, and should FINALLYYYY fix the issue where Gluetun cannot resolve local Docker/K8s hostnames!! Let me know if that fits your needs, or if you would need something else 😉 Thanks for your patience! 👍

from dns.

qdm12 avatar qdm12 commented on September 3, 2024

Now it's even better, the local DNS middleware is enabled by default, and will auto-detect your system DNS servers, and try those for any local names it finds. So really zero configuration needed.

For now the limitation is it won't resolve a public TLD host like github.com to a local IP address, but if you would (please actually) need this, let me know and I can implement it within that same middleware 😉

from dns.

qdm12 avatar qdm12 commented on September 3, 2024

156a695 adds MIDDLEWARE_SUBSTITUTER_SUBSTITUTIONS where you can define a JSON array of substitutions. For example [{"name":"github.com","ips":["1.2.3.4"]}]. This should thus be fixed (again, this is on the v2.0.0-beta image).

from dns.

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.