-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use /etc/resolv.conf to find upstream, and also respect search config #1139
Comments
First thing would be avoid using But to the point. /etc/resolv.conf file is not intended to configure DNS forwarders. Problem is there is no standardized way to configure that instead. Also search is applied only by stub clients, typically done by glibc. Once a request is DNS message, it is always absolute. No search should be applied to it at that time. Because unbound accepts queries over DNS protocol, it should not append search domains itself. It should be done by client sending that query, whatever it is. Client should first ask |
But we attempt something similar with our dnsconfd project. But use Network Manager for it. Check it out: https://github.com/InfrastructureServices/dnsconfd |
Might be possible with a custom module before iterator. That might scan /etc/resolv.conf before trying iterator. The problem I see is /etc/resolv.conf should in such case contain pointer to localhost, where unbound is running and providing DNS caching for local system. Then definitions of specific link-local domains needs to be read from some other place. It might be Network Manager or static definition. It may even ignore own localhost address in /etc/resolv.conf, which could be set first. Btw, why is ndots:5 used? It seems dangerous to me. Is there any documentation recommending such settings? |
I have created issue for attempt for forwarder definition, maybe including also encryption. See uapi-group/specifications#122 |
thanks for a great project!
i have a /etc/resolv.conf like this
with this unbound config:
queries to unbound for internet domains (e.g.
google.com
) work, but queries to unbound for local domains that require search (e.g.postgres
→postgres.my.service.local
) do not work.with this unbound config:
all domains work, internet and local search.
is there a way to configure unbound to respect the local search config without needing to add the explicit forward-zone block?
Thanks!
The text was updated successfully, but these errors were encountered: