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
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: