I'm wondering if there is a setting to preventing local-unbound-setup from overwriting /etc/resolv.conf. I realize that modifying the local /etc/resolv.conf is kinda the point of using unbound, but my use-case is a little different. I want to have unbound running on port 5335, and I can configure this in the unbound.conf settings. However, when local-unbound-setup runs, it writes 127.0.0.1 to /etc/resolv.conf, which doesn't actually use the unbound service. There doesn't seem to be a way to specify ports in /etc/resolv.conf, so it uses 53 by default.
The reason for having unbound on port 5335 is so that I can run a DNS proxy (Blocky) on port 53, and configure it to use the unbound server on port 5335 to be its upstream resolver.
A messy way to workaround this problem would be to edit /etc/rc.d/local_unbound and remove the function that runs local-unbound-setup, but I don't think it's a good idea to mess with RC scripts. Or I can create a separate script that gets activated after local_unbound is started that simply removes /etc/resolv.conf and replaces it with my own version.
It seems local-unbound-setup uses /var/unbound/unbound.conf for its configuration settings. I've perused the unbound documentation and haven't found any setting to turn off resolvconf. I can't edit /etc/resolvconf.conf because those changes will be overwritten by local-unbound-setup.
The reason for having unbound on port 5335 is so that I can run a DNS proxy (Blocky) on port 53, and configure it to use the unbound server on port 5335 to be its upstream resolver.
A messy way to workaround this problem would be to edit /etc/rc.d/local_unbound and remove the function that runs local-unbound-setup, but I don't think it's a good idea to mess with RC scripts. Or I can create a separate script that gets activated after local_unbound is started that simply removes /etc/resolv.conf and replaces it with my own version.
It seems local-unbound-setup uses /var/unbound/unbound.conf for its configuration settings. I've perused the unbound documentation and haven't found any setting to turn off resolvconf. I can't edit /etc/resolvconf.conf because those changes will be overwritten by local-unbound-setup.