[SOLVED]Specifying a specific DNS for a single device.

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
tneck
DD-WRT Novice


Joined: 21 Sep 2020
Posts: 17

PostPosted: Sun Sep 25, 2022 19:37    Post subject: [SOLVED]Specifying a specific DNS for a single device. Reply with quote
I'm trying to have most devices use pi-hole and standard DNS for a single device.

I decided to make my life difficult because I'm too cheap to buy additional hardware.
I have a subnet (192.168.1.0) for my home network and a wireless subnet (192.168.11.0) as an isolated/unbridged IoT netowork.

I'm running a Netgear R7000 running DD-WRT v3.0-r45493

I'm running pi-hole from a docker image on my PC on the .1 network.

All my IoT devices seem okay with the setup except my eufy doorbell. Anytime I try to use the pi-hole, it stops working. Maybe it has trouble getting across the subnet, I'm not sure. I figure the easiest way around the issue is to just have the doorbell use a regular DNS. (Or have it be the only thing on the pi-hole and see what's getting blocked). Either way, I want this one device to have a different DNS.

I tried the following, but it just broke DNS for everyone.

Code:
# un ad blocked network
dhcp-host=XX:XX:XX:XX:XX:X,no_block01,EUFY_IP,infinite,set:no_block
dhcp-option=tag:no_block,option:dns-server,1.1.1.1


The only Dnsmasq options I have enabled are: "No DNS Rebind" and "Query DNS in Strice Order"

What do I need to do to make sure a single device on an isolated network has a seperate DNS?
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2899
Location: Germany

PostPosted: Mon Sep 26, 2022 6:58    Post subject: Reply with quote
Code:
dhcp-host=11:22:33:44:55:66,eufy-doorbell,192.168.11.101,infinite,set:cloudflareDNS
dhcp-option=tag:cloudflareDNS,option:dns-server,1.1.1.1


works here without problems - no idea what you are doing wrong.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Mon Sep 26, 2022 7:22    Post subject: Reply with quote
If your VAP is isolated, clients on that VAP cannot reach your PI-hole on main subnet, depending on how you have setup your DNS.

See @ho1Aetoo's excellent tutorial:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=331414.

The official order for dhcp-host is:
dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,tag:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]

Maybe your old build is more picky about the order?

Anyway upgrading is recommended Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
tneck
DD-WRT Novice


Joined: 21 Sep 2020
Posts: 17

PostPosted: Sat Oct 08, 2022 21:43    Post subject: Reply with quote
Thanks for all the help. I figured out my problem after determining that the dnsmasq options were setup correctly. I should have paid closer attention to the syslog. Turns out I left a static mapping of the doorbell in the table so when I tried to set the IP with the dnsmaskq options, dnsmasq saw a duplicate entry and just fell over.

I appreciate that you guys were able to convince me my issues lay elsewhere.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum