OPNsense Forum

English Forums => General Discussion => Topic started by: ananke on February 21, 2024, 04:23:22 PM

Title: custom options for /etc/resolv.conf without unbound
Post by: ananke 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!
Title: Re: custom options for /etc/resolv.conf without unbound
Post by: franco on February 21, 2024, 04:33:10 PM
If you open a GitHub feature request we can add the option.

https://github.com/opnsense/core/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=


Cheers,
Franco