Correct <tag> is used for DHCP options and network or host binding. DNS 
is not linked as such. If you are using OpenWrt/LEDE as your gateway, 
then you have an easier to use option. LEDE 17.01(RC) supports building 
dnsmasq instances on designated networks. So instead of HOME and GUEST 
SSID on your WiFi, you could have PARENT and CHILD SSID for example. 
Then configure dnsmasq uniquely to each.

https://lede-project.org/docs/user-guide/dns_configuration (keyword 
instance)



On 02/07/2017 05:10 PM, Kevin Elliott wrote:
> Hello,
>
> I would like to return a different DNS response according to source.
> The objective is to override youtube.com <http://youtube.com> for all
> queries from my children's devices to make a simple parental control.
>
> dnsmasq DHCP supports tag sets, but as far as I can tell the tag
> conditional switch does not apply to any of the DNS config, e.g. forward
> DNS queries from hosts with tag X to server Y.
>
> Is anything like this possible with dnsmasq?
>
> I thought about running a 2nd dns server on a different port and use
> dhcp dns-server option to redirect but I couldn't see how to specify a
> non-standard port in the DHCP dns-server option either.
>
> Thanks for any advice,
> Kevin
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to