[Dnsmasq-discuss] Change upstream server by client?

Michael Smith michael at kmaclub.com
Sun Dec 18 15:17:27 UTC 2022


On 12/18/22 06:59, Jonathan Stafford wrote:
> --server provides a way to change upstream resolvers based on the 
> domain being queried.  Is there a way to make the same sort of change 
> based on the client doing the querying?  For example, I'd like the IP 
> address range I use for my kids' devices to use 1.1.1.3.
>

You can achieve this using tags:



# Define DNS servers
dhcp-option=option:dns-server,1.1.1.1
dhcp-option=tag:kidsdevices,option:dns-server,1.1.1.3


dhcp-host=0c:51:01:95:d3:36,set:kidsdevices   # Ipad
dhcp-host=58:41:4E:CD:D2:0A,set:kidsdevices   # Iphone


Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20221218/41665810/attachment.htm>


More information about the Dnsmasq-discuss mailing list