/etc/dhcpleased.conf is non-existant. However - # route nameserver 9.9.9.9 Did the trick.
Merci beaucoup! On Mon, Nov 24, 2025 at 1:58 PM Kirill A. Korinsky <[email protected]> wrote: > On Mon, 24 Nov 2025 16:59:12 +0100, > T Harpster <[email protected]> wrote: > > > > I'm using OpenBSD as my router. > > WAN is set to autoconf in it's hostname.if file since my ISP has a dhcp > > server upstream and > > I don't have a static IP address so I am stuck using dhcp. > > The problem is I cannot choose my upstream DNS servers, resolv.conf is > > overwritten with my > > ISPs DNS servers. > > Is there a way around this so I can use whichever one I would like to > use? > > I think you're looking for > > mx1$ cat /etc/dhcpleased.conf > > > interface em0 { > ignore dns > } > mx1$ > > where em0 should be replaced by your interface. > > -- > wbr, Kirill >

