What's new

DNSMasq overrides that survive firmware updates?

  • 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!

thespooler

New Around Here
I'm trying to using the DHCP features on a 68U, but regardless of what you enter in the DNS settings, it will always add 0.0.0.0 to /tmp/etc/dnsmasq.conf which DNSMasq will change to the router IP. When a client gets a lease, DNS is now set to my desired DNS server, but also to the router. In my scenario, the router does not have internet access, instead of bridging the modem, I just have it plugged into the LAN port (I need the modem and PPPOE diagnostics available).

I've manually changed dnsmasq.conf so it survives a reboot, but not sure if the GUI might rewrite this file when other settings change. I don't know anything about embedded linux but I imagine somewhere the daemon is getting started and I might be able to change the command line for it to force the -dhcp-option.

For surviving firmware updates, maybe there's a script that could run off the USB key in the back of the router? Hopefully it runs before DHCP leases are provided?

In the mean time, I've was manually setting DNS on the clients but for now I've gone back to DHCP on the modem.
 
Config files are dynamically generated by the router, you cannot modify them, and any change will be lost whenever the service is restarted or the router is rebooted.
 
Thank you for letting me know. I'm now trying a "asusware/.asusrouter" script on a fat32 usb drive, but I can't tell if it's executing or not. I tried to write to /tmp but I don't see anything. The drive is mounting, and if I run the script manually it works as expected, but doesn't appear to auto run or perhaps /tmp is not available at that time. Not sure...
 
That won't work. Whenever dnsmasq gets restarted, it will overwrite any change that script would have made.
 
If I kill and launch dnsmasq with the change I want to make on command line, it could win over the identical setting in the .conf file. I wasn't able to google which would take priority.
 
If I kill and launch dnsmasq with the change I want to make on command line, it could win over the identical setting in the .conf file. I wasn't able to google which would take priority.
That would work up until the point where the router restarts dnsmasq, as noted by RMerlin. Not only is dnsmasq restarted a few times on startup but also later on. Applying changes to many of the options in the router's GUI would initiate such a restart.
 
You are hinting about running a script from a USB on router start with stock Asus. Yes, it is possible and I believe I did a post on that topic to start a swap file if you search for it.

Sent from my SM-T380 using Tapatalk
 
Similar threads
Thread starter Title Forum Replies Date
L Log flood by dnsmasq ASUSWRT - Official 8

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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