What's new
  • 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!

Redirect local DNS server problem

Aker Hsu

New Around Here
Hi all:
I'm using RT-AC87U, firmware version is 378.53_0
I use a custom configuration file /jffs/configs/dnsmasq.conf.add
And in the archives
server = / xxxx.xxxx / 10.0.0.10
When the local domain's DNS service to redirect my DNS server
He begins work

But I found I had to change after the DHCP service does not work
I log data machines /etc/dnsmasq.conf file where you can see the set dnsmasq.conf.add
server = / xxxx.xxxx / 10.0.0.10
I later moved to the front of this line of /etc/dnsmasq.conf
And restart dnsmasq
Such work is
But as long as the changes after the DHCP service not working
Later, I used to do plus /jffs/scripts/dnsmasq.postconf this script file server = / xxxx.xxxx / 10.0.0.10 work
So no matter what time do I change DHCP services are still able to work normally
My script is so
#!/bin/sh
source /usr/sbin/helper.sh

DNSMASQ_CONF=/etc/dnsmasq.conf

DNSMASQ_ADD="server=/xxxx.xxxx/10.0.0.10"

if [ "$DNSMASQ_ADD"!="" ];
then
testing=$(echo "$DNSMASQ_ADD" | grep -f $DNSMASQ_CONF)
if [ "$testing" == "" ]; then
pc_insert "pid-file" "$DNSMASQ_ADD" "$DNSMASQ_CONF"
fi
fi

And removing /jffs/configs/dnsmasq.conf.add

Now, It work fine

This is how it all about?

I used to use is the same RT-AC66U
Later, I will set DNS services directly to my DNS server
But this way I would go to the event of failure DNS server is temporarily modify router settings
Let the client computer using the normal DNS server
 
Last edited:
Hi ColinTaylor:
I have revised the previous explanation
I have to use /jffs/configs/dnsmasq.conf.add
But this setting sometimes not work
 
There are absolutely no files under my /jffs/configs/ directory.
Is there a particular "ipkg install package-name" I need to run first, or download them from somewhere?

I'm running Merlin's RT-AC56 378.53_0 (3rd Merlin version since I switched to it from Stock ASUS Firmware).
 

Similar threads

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!
Back
Top