On 2024-10-08, Mark <markbsdmail2...@gmail.com> wrote:
> --000000000000f1de180623fe126e
> Content-Type: text/plain; charset="UTF-8"
>
> Under OpenBSD 7.5, having unwind enabled, I had in my dhclient.conf the
> following line;
>
> supersede domain-name-servers 127.0.0.1, 185.12.64.1, 185.12.64.2;
>
> And in my dhcpleased.conf file:
>     interface vio0 {
>         ignore dns
>     }
>
> Thus, I've in my resolv.conf;
> nameserver 127.0.0.1 # resolvd: unwind
> nameserver 185.12.64.1
> nameserver 185.12.64.2
>
> (The first one obviously my local resolver and 2nd&3rd ones are from my VPS
> provider)
>
> Few minutes ago I upgraded to 7.6 (many thanks to the OpenBSD team
> for great efforts!) and after removal of dhclient, where can I define both
> external nameservers from my server provider?

If you use unwind and want specific forwarders, configure them in
unwind.conf(5). Or if you want unwind to resolve from the roots and only
use your provider's resolvers if unwind is down, just use "preference
recursor" in unwind (and keep resolvd.conf as-is).

For someone who doesn't want unwind, it's probably easiest to disable
resolvd and hardcode IPs in resolv.conf.

(DNS server config can be picked up from multiple places - DHCP, SLAAC,
umb(4) - so configuring overrides just in the DHCP client missed a few
places - it's more centralised now).

-- 
Please keep replies on the mailing list.

Reply via email to