egc DD-WRT Guru
Joined: 18 Mar 2014 Posts: 12917 Location: Netherlands
|
Posted: Wed Feb 06, 2019 9:26 Post subject: |
|
Your router has to know which DNS server to handout to which client, that could be either by IP address (but not in this case as it is in the same subnet) or by MAC address.
What you can do is to default to OpenDNS and give static leases to clients you want to give another DNS server.
This is done with DNSMasq options see:
https://www.linksysinfo.org/index.php?threads/specific-gateway-dns-for-specific-clients.72461/
If it only is for wifi clients you can consider using a guest wifi where you specify an alternate DNS server (it is even possible to "attach" wired clients to the subnet of the guest wifi with VLAN's) _________________ 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 |
|
Alozaros DD-WRT Guru
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
|
Posted: Thu Feb 07, 2019 6:23 Post subject: |
|
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.102 -p udp --dport 53 -j DNAT --to 1.1.1.1
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.102 -p tcp --dport 53 -j DNAT --to 1.1.1.1
presuming you use a br0 and replace those ip's with your ip's and dns required, you can use those lines with range, or mac too _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913 |
|