Comments (6)
+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.
+1 to that. Conditional Forwarders would be a very welcome addition.
from dns.
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.
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.
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.
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)
- feature request: environment variable to allow privileged ports when running without root
- All `pkg` constructors should validate settings and return an error HOT 1
- Remove exported interfaces in `pkg` and use only local interfaces HOT 1
- Remove prometheus.Registerer interface usage HOT 1
- Add comments for all exported methods in the `pkg` directory
- Option to log requests/responses in color
- cache: remove all expired elements from oldest to newest
- filter: Middleware should keep blocked cached response HOT 1
- Cannot start v2-beta container: invalid value for max entries of the LRU cache HOT 2
- Hardcode DoH URL ip addresses if no DoT/plaintext-DNS should be used to resolve the URL HOT 1
- Add Mullvad DNS servers
- Review namings according to IEFT document
- Respond too large responses with truncated field and switch to TCP
- Ensure dns:v2.0.0-beta works with TCP over 53 for truncated messages
- Enhancement: use pool of DNS connections
- Document the difference between DoT and DoH
- Investigate using `golang.org/x/net/dns`
- MacOS port 53 conflict with mdnsresponder HOT 17
- Panic error on Windows Server 2022 running on a VM HOT 13
- Error on Linux Cent OS with beta version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dns.