unbound and resolvconf

Hello,

Since I want that local DNS request are served by unbound, I disabled the DNS resolving in Network Manager, and I uninstalled resolvconf to prevent it to modify the resolv.conf file, which is fixed to

nameserver 127.0.0.1

But this provokes the following message when unbound starts :

Started Unbound DNS server.
Feb 13 16:23:42 localhost systemd[1]: Condition check resulted in Unbound DNS server via resolvconf being skipped.

Is this a problem ? I ask because I have two systems. The first one continue to work normally with resolvconf uninstalled, I have a problem on the second. I don't think it is linked to resolvconf, but nevertheless I ask.

A complementary information : when resolvconf was installed, there was also an error each time unbound started:

package-helper[6655]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf

It is true on Armbian Buster. Nevertheless sometimes resolvconf was editing directly /etc/resolvconf, it was visible from the header.

If this is not correct, then what is the right way to force local DNS requests to pass through unbound ?

Thanks in advance.

Dysmas

Does Armbian Buster Debian Buster on Armbian board?
If so I think you might try asking on the debian-user mailing list, and other debian support channels. As well as on Armbian forums.
Hopefully, other participants of this list will be able to better assists.

Hello Ron,

perhaps I was not enough precise in my question which concerns unbound. The question is :

Is the unbound-resolvconf.service necessary in any way for Unbound, or is this only a help in case resolvconf is installed ?

Thanks

Hello Ron,

perhaps I was not enough precise in my question which concerns unbound. The question is :

Is the unbound-resolvconf.service necessary in any way for Unbound, or is this only a help in case resolvconf is installed ?

Thanks

Hi,

Maybe everybody else here is very familiar with the particular system
you're using, but this looks like a platform-specific package question
to me, not an unbound question.

Joe

Hello Joe,

my question has nothing to do with any particular system. It is :

Is unbound-resolvconf.service necessary in any way for Unbound ? On any Debian system.

Dysmas

I am not sure what the unbound-resolvconf.service does. If it just configures the resolution process,
and you are happy without it, then keep going without it.
I think if you know what you are doing you can run unbound without it. It is probably only a help in case resolvconf is installed. As far as I can tell, it is not part on the unbound source package.
If you better know what you are doing, you can run a system without any package manager.
In both cases you know what you are doing. So you use work around, or your own scripts,
or static configuration, or whatever.
This might be a similar question to compilation warnings. Since they are only warnings, one
might keep going without fixing the issues those warnings are about.
In short, I do think debian-user might be a better place to ask. Or wait here for someone more knowledgeable than myself.