dd-wrt and dnsmasq (maybe)

Werkrat

Reputable
Feb 3, 2015
40
0
4,560
Is there a way, with dnsmasq or something else, to make 1 network ip (ie: 192.168.0.5) use a specific dns (opendns or something), but have the rest of the ips use the auto (isp) dns? If so, what do I need to use or what is the command line I should use/read up on?
 
Solution
You mean over ride the one the PC has set in his network configuration. The easy way is to use the DHCP server to give the device the DNS you want it to use. If you are trying to override that you could try a destination nat. You could for example put a nat rule in that says translate any traffic from ip 192.168.0.5 with dest port 53 to z.z.z.z. In this case it would translate both the source and destination addresses. The pc likely could detect you did this if it wanted to but it can not over ride what you did.
You mean over ride the one the PC has set in his network configuration. The easy way is to use the DHCP server to give the device the DNS you want it to use. If you are trying to override that you could try a destination nat. You could for example put a nat rule in that says translate any traffic from ip 192.168.0.5 with dest port 53 to z.z.z.z. In this case it would translate both the source and destination addresses. The pc likely could detect you did this if it wanted to but it can not over ride what you did.
 
Solution