1
General Discussion / custom options for /etc/resolv.conf without unbound
« on: February 21, 2024, 04:23:22 pm »
Hello,
We need to inject `ndots` option into /etc/resolv.conf, but can't seem to find a sanctioned way to do it. Using a custom /etc/dhclient-exit-hooks fails, because OPNsense just rewrites /etc/resolv.conf afterwards.
Unbound service appears like the only other potential option, but we're running without it, as it was problematic in out-of-the-box config in a network that has no direct access to the internet (unbound kept trying to reach root servers, and all DNS requests were taking 15-30 seconds). It's not needed in our case anyway, so we'd like to find a proper way to get that option into /etc/resolv.conf
I don't suppose anybody has any ideas on how to accomplish that?
Thanks!
We need to inject `ndots` option into /etc/resolv.conf, but can't seem to find a sanctioned way to do it. Using a custom /etc/dhclient-exit-hooks fails, because OPNsense just rewrites /etc/resolv.conf afterwards.
Unbound service appears like the only other potential option, but we're running without it, as it was problematic in out-of-the-box config in a network that has no direct access to the internet (unbound kept trying to reach root servers, and all DNS requests were taking 15-30 seconds). It's not needed in our case anyway, so we'd like to find a proper way to get that option into /etc/resolv.conf
I don't suppose anybody has any ideas on how to accomplish that?
Thanks!