Unable to set DNS to other than the router's own IP

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
sgagnon
DD-WRT Novice


Joined: 08 Nov 2007
Posts: 20

PostPosted: Sat Mar 12, 2022 3:11    Post subject: Unable to set DNS to other than the router's own IP Reply with quote
Hi, I've tried to changed the router's DHCP settings to point to a different DNS server as such

https://imgur.com/a/Scp89Tj

But /etc/resolv.conf always contains the router's IP which is 192.168.0.2. A station that is configured to grab its IP setting from DHCP also get that IP address instead of the configured 192.168.0.3 and yes, I can ping that IP and DNS is working on it.

https://imgur.com/a/AKMbHep

Anybody care to tell me what I'm doing wrong, because I'm at a lost?

Router has been rebooted as well. Running DD-WRT v3.0-r44863 std (11/24/20)
Sponsor
sgagnon
DD-WRT Novice


Joined: 08 Nov 2007
Posts: 20

PostPosted: Sat Mar 12, 2022 5:00    Post subject: Reply with quote
Following this here
https://superuser.com/questions/380689/dd-wrt-serving-additional-dns-servers-instead-of-just-the-router-s-ip

I fixed it by entering this into the 'Additional Dnsmasq options' box

dhcp-option=option:dns-server, 192.168.0.3
server = 192.168.0.3
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Sat Mar 12, 2022 8:30    Post subject: Reply with quote
You simply have to deactivate "use dnsmasq for DNS".
Then the clients will receive the static DNS directly via DHCP and not the router IP (dnsmasq).
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Sat Mar 12, 2022 8:48    Post subject: Reply with quote
To add you are running an old and no longer supported build which has safety issues.

Upgrading is highly recommended, current is 48432

As you are coming from such an old build, resetting *after* upgrading and putting settings in manually (never restore settings to a different build) is also recommended.

See the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

_________________
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum