Blocking Ads only on certain interfaces? Create second DNS instance?

Hello, as in the subject - I'd like to set up certain WiFi networks on my router that will not use the adblocking on the router. From the reading I've done what I need to do is create another DNS instance, but when I tried that it broke DHCP for all my VLANs. Can anyone provide a step-by-step guide for accomplishing this? LuCI would be preferred but I can use a command line if that works better. Thank you.

Anyone have any direction they could give me here? Thanks.

The simplest approach is to use DHCP option 6 to point to a public DNS server that does not block.... for example, the standard Google or Cloudflare DNS options would be good candidates. For this to work, you do not need to create a new DHCP instance, just simply specify option 6.

That sounds like a good solution! Where exactly do I need to specify the different DNS server?

Simply add:

    list dhcp_option '6,8.8.8.8'

to the DHCP server for the network(s) that should use the non-adblocked DNS.

If you do this within LuCI, you'll specify 6,8.8.8.8 in:

Network > Interfaces > [edit relevant network] > DHCP Server > Advanced Settings > DHCP Options
1 Like

Thanks! That's much easier than I expected. Set the non-adblocked interface to cloudflare's DNS and seems to be working!

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