OPNsense Forum

English Forums => 26.1, 26,4 Series => Topic started by: sos_opnsense on May 17, 2026, 08:03:50 AM

Title: Assign specific DNS server to a specific host using Dnsmasq?
Post by: sos_opnsense on May 17, 2026, 08:03:50 AM
I'm sure under the previous ISC DHCP server you could assign specific DNS servers to specific hosts.

I'm running OPNsense 26.1.8 and Dnsmasq as the DHCP server (Unbound and Technitium as my main DNS servers), but I'd like to assign a specific, separate DNS server to my Nintendo Switch 2 and there doesn't seem to be an easy way to do this under Dnsmasq (or KEA).

Am I missing something obvious?
Title: Re: Assign specific DNS server to a specific host using Dnsmasq?
Post by: Monviech (Cedrik) on May 17, 2026, 09:51:42 AM
In dnsmasq: Create a new DHCP Tag, set it inside the host reservation of the Switch. Then create a DHCP option with the DNS server you want and the same Tag assigned.

In KEA: Create a new dns server option and set it in a reservation.