Where to save Static DNS value?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
AxaRu
DD-WRT Novice


Joined: 26 Jun 2014
Posts: 13

PostPosted: Tue Jan 20, 2015 14:28    Post subject: Where to save Static DNS value? Reply with quote
Hi.

Router NetGear WNDR4300
Firmware: DD-WRT v24-sp2 (03/13/14) std

Entered value to Static DNS fields.

Then value saved by "Save" button

Then I read from /tmp/resolv.dnsmasq
Code:
root@DD-WRT:/tmp# cat /tmp/resolv.dnsmasq
nameserver 99.99.99.9
nameserver .1.101
nameserver 85.21.192.5


WTF?
Which file to save Static DNS?
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 2797

PostPosted: Tue Jan 20, 2015 18:41    Post subject: Reply with quote
Adding a static DNS does NOT override any nameservers received from the ISP, it only adds to those nameservers.

If you only want to use THAT static DNS server, you need to remove that entry from the DHCP section of the Setup page, enable the local DNS server under Services, and add the following to DNSMasq options:

no-resolv
server=85.21.192.5

Now all your clients will receive the IP of the router as their DNS server, which in turn will only use that one nameserver. If you want more nameservers, just add more server= directives.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware 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