View Single Post
  #2   (View Single Post)  
Old 18th December 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Hello, and welcome!
Quote:
Originally Posted by juhal View Post
I quickly learned that /etc/resolv.conf is created on the fly by the daemon dhclientd which in turn is governed by the file /etc/dhclient.conf.
I think you meant dhclient(8). However, this is no longer the case. Your best bet for up-to-date information is the OpenBSD FAQ, because OpenBSD 7.0-release changed IPv4 DHCP configuration and DNS resolution. Any third party information you are reading on the Internet may be out-of-date and misleading you.

With 7.0-release:
  • dhclient(8) is not used. It is still available for edge-case requirements.
  • Your resolv.conf(5) file is actively managed with a daemon called resolvd(8). If you've seen documentation referencing /etc/resolv.conf.tail, it is out-out-date as this .tail file is no longer used.
  • You can edit your resolv.conf(5) file to put your preferred nameservers at the top. Any nameservers learned by dhcpleased(8) will be added below, and accessed only if your preferred nameservers are unavailable.
  • You can use unwind(8) and its unwind.conf(5) to restrict forwarding resolution to only your preferred nameservers. resolvd(8) will recognize if unwind(8) is active and will set resolv.conf(5) to use unwind(8) as your resolver.

Last edited by jggimi; 18th December 2021 at 07:58 PM. Reason: clarity for unwind(8)
Reply With Quote