Different DNS Server for specified Clients

Hi,

is it possible to set to some clients an other dns server ?

background: i use pihole as dns everywhere. a couple of my sonos speakers has sometimes problem with dns resolve. i think pihole isl imiting here.

if have some speakers like 192.168.1.20 and want to use the google dns, 8.8.8.8

how can i archive this ?

thank you.

OpenWrt 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-21.295.67054-13df80d
on raspberry pi4

1 Like

6 = DNS

3 Likes

Thank you.

I made it like this:

at the beginning of the dhcp file:

config tag 'tag1'
	option dhcp_option '6,8.8.8.8,8.8.4.4'

and at my host:


config host
	option name 'Sonos'
	option dns '1'
	option mac 'xx:xx:xx:xx'
	option leasetime '12h'
	option ip '192.168.1.20'
	option tag 'tag1'

thank you for that hint.

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.