Skip to content
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 is not using dns ip address received using dhcp even if using openresolv #1002

Open
dummys opened this issue Jan 31, 2024 · 0 comments

Comments

@dummys
Copy link

dummys commented Jan 31, 2024

I'm wondering if it should work like this or not.
My configuration is: Arch linux with NetworkManager + openresolv + unbound as local resolver/cache.
the config are the following:

/etc/NetworkManager/conf.d/rc-managert.conf -> rc-manager=resolvconf
/etc/unbound/unbound.conf include: /etc/unbound-resolvconf.conf
/etc/resolvconf.conf:

name_servers=127.0.0.1
unbound_config=/etc/unbound-resolvconf.conf
private_interfaces="*"

When connecting to a new network, i check resolvconf using resolvconf -l and I get two differents local ip for dns server.
when I check the file /etc/unbound-resolvconf.conf, I see nothing inside, just the file is created.
Inside my /etc/resolv.conf i get: nameserver 127.0.0.1 and I also protected it using chattr +i

For me the behavior I should have is that the unbound-resolvconf.conf should be populated with the dns ip server from the dhcp.

System:

  • Unbound version: 1.19.0
  • OS: Arch linux up to date
  • unbound -V output:
Configure line: --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin --disable-rpath --enable-dnscrypt --enable-dnstap --enable-pie --enable-relro-now --enable-subnet --enable-systemd --enable-tfo-client --enable-tfo-server --enable-cachedb --with-libhiredis --with-conf-file=/etc/unbound/unbound.conf --with-pidfile=/run/unbound.pid --with-rootkey-file=/etc/trusted-key.key --with-libevent --with-libnghttp2 --with-pyunbound
Linked libs: libevent 2.1.12-stable (it uses epoll), OpenSSL 3.2.0 23 Nov 2023
Linked modules: dns64 cachedb subnetcache respip validator iterator
DNSCrypt feature available
TCP Fastopen feature available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant