What's new

Local DNS

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

takeawaydave

Occasional Visitor
Hi - first of all many thanks for the custom firmware - just upgraded to the latest beta release 354.29-BETA1 this evening and is going smoothly.

Having some trouble setting up local DNS using DNSmasq set up the jffs config script dnsmasq.config.add and getting the dnsmasq entries popped back in to /etc/dnsmasq when rebooting.

These are entries like

server=/vmesx01.wuster.com/192.168.1.11

Now very simply I would like anything within 192.168.1.1-254 to be resolved using dnsmasq.

How do I go about doing this ?

At the moment if I set the DNS server on the client to point at the asus router everything is getting resolved to 10.0.0.1 which is the gateway address (LAN side of the Fibre Router).

Any help appreciated :)
 
Last edited:
Any one able to help here ?

Pretty stuck unable to use dnsmasq dns.

I have


INTERNET​
||​
FIBRE ROUTER​
192.168.1.254​
|​
|​
192.168.1.251​
||​
RT-AC66U​
192.168.1.252​
| | | | | |​
DHCP POOL 192.168.1.x​

If I set the LAN DNS server to 192.168.1.254 then I can look up local clients using dnsmasq.

kinabalu:.ssh David$ nslookup play5
Server: 192.168.1.252
Address: 192.168.1.252#53

Name: play5.wuster
Address: 192.168.1.9

HOWEVER I am unable to browse the internet. Seems like no dns referral is possible.

So if I change the LAN DNS Server to 8.8.8.8 then I can't resolve local LAN clients:

kinabalu:.ssh David$ nslookup play5
Server: 8.8.8.8
Address: 8.8.8.8#53

** server can't find play5: NXDOMAIN

But internet connectivity is ok.

Note I have the router running in Router Mode not AP since none of this functionality seems to be available in AP mode and the fibre router is cabled together using LAN port not WAN port and "Enable WAN port is set to NO".
 
Last edited:
I don't remember exactly how it works (and I don't have access to my router right now), but in the RT-AC66U there are two settings for DNS.

One is "which DNS server shall the DHCP server tell it's clients about". This is normally set to the routers own address (since the router will handle local DNS as well as DNS forwarding).

The other one is "which DNS server shall be used for external DNS lookups".

The second one is normally received from the ISP using the routers DHCP client. However if your router is not set up for DHCP on the WAN side you will have to set it manually.


Probably you are mixing these two up in some way.

(I have never used a router with the same subnet on the WAN side and the LAN side so I'm not sure if that works, it your fiber converter has a 192.168.1-address I think it would be best to set your LAN to 192.168.2 or something to avoid crazy routing rules.)
 
You will probably need to use a different subnet for your LAN, can't have both routers in the same 192.168.1.0 network.
 
AHA - Thanks both of you !

Thats fixed things nicely. One further thing how do I change the DHCP Reservations over the command line ?

I thought it was /etc/hosts.dnsmasq however these aren't persistent.

:)
 
AHA - Thanks both of you !

Thats fixed things nicely. One further thing how do I change the DHCP Reservations over the command line ?

I thought it was /etc/hosts.dnsmasq however these aren't persistent.

:)

Reservations are stored in nvram in the dhcp_staticlist variable, however these are entered in a specific format, so I don't recommend modifying them manually.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top