-
Notifications
You must be signed in to change notification settings - Fork 112
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
unbound doesn't get the dns ip address from DHCP from NetworkManager #115
Comments
I don't really use local network DNS. All my resolvconf stuff looks to be working correctly:
My router is at 10.0.1.1 with a hostname of router.myprivatedomain.com. Unbound fails to resolve that:
But that is because I explicitly tell Unbound not to resolve private address ranges: https://github.com/pigmonkey/spark/blob/master/roles/unbound/templates/unbound.conf.j2#L20 If I comment out the line for
So I think everything is working as expected, but, like I said, I don't really care about the local network's DNS. I want everything to go through my Unbound. It could be that a different configuration is needed if you want to use your local router as a DNS server. I do not think you want to |
ok I see. What is the reason to add those lines then: https://github.com/pigmonkey/spark/blob/master/roles/unbound/templates/unbound.conf.j2#L20 |
My memory is that those A properly configured LAN DNS server should use a private domain like So, for example, when I'm on my home network my router is at 10.1.10.1 with a domain of
If you need to allow non-private domains to be resolved by your local network's DNS servers, you'd have to remove those My guess is that your |
ok ,now I understand your configuration. But still I don't get the:
even if I have commented all the private-address, this file didnt get generated, even if resolvconf -l give me two new dns servers. |
Suppose I have I cannot resolve
It happens whereas I have:
It doesn't look as expected behavior. @pigmonkey do I do it right? |
Hey,
I'm wondering if this should be the correct behavior or not.
As I understand, we are using NetworkManger with openresolv avec resolver.
Thus it should get the ip address of dns from dhcp and add it to the file under
/etc/unbound/resolvconf.conf
which should be populated by resolvconf, right ?As inside the resolvconf.conf we have:
unbound_conf=/etc/unbound/resolvconf.conf
In my case, this file exist, but it is empty. Do you have the same behavior ?
If i use:
resolvconf -l
I get the two new dns ip from DHCP, but it is not used anywhere by unbound then.My
/etc/resolv.conf
is chattr +i and contains only 127.0.0.1 for nameserverThe text was updated successfully, but these errors were encountered: