@@ -829,11 +829,10 @@ dnsmasq_start()
829
829
append_bool " $cfg " allservers " --all-servers"
830
830
append_bool " $cfg " noping " --no-ping"
831
831
832
- append_bool " $cfg " filter_aaaa " --filter-aaaa"
832
+ append_bool " $cfg " filter_aaaa " --filter-AAAA"
833
+ append_bool " $cfg " filter_a " --filter-A"
833
834
834
835
append_parm " $cfg " logfacility " --log-facility"
835
-
836
- append_parm " $cfg " mini_ttl " --min-ttl"
837
836
838
837
append_parm " $cfg " cachesize " --cache-size"
839
838
append_parm " $cfg " dnsforwardmax " --dns-forward-max"
@@ -886,7 +885,7 @@ dnsmasq_start()
886
885
887
886
config_get_bool noresolv " $cfg " noresolv 0
888
887
if [ " $noresolv " != " 1" ]; then
889
- config_get resolvfile " $cfg " resolvfile " /tmp/resolv.conf.d/resolv.conf.auto.auto "
888
+ config_get resolvfile " $cfg " resolvfile " /tmp/resolv.conf.d/resolv.conf.auto"
890
889
# So jail doesn't complain if file missing
891
890
[ -n " $resolvfile " -a \! -e " $resolvfile " ] && touch " $resolvfile "
892
891
fi
@@ -1014,14 +1013,14 @@ dnsmasq_start()
1014
1013
mv -f $CONFIGFILE_TMP $CONFIGFILE
1015
1014
mv -f $HOSTFILE_TMP $HOSTFILE
1016
1015
1017
- [ " $resolvfile " = " /tmp/resolv.conf.d/resolv.conf.auto.auto " ] && {
1018
- rm -f /tmp/resolv.conf.d/resolv.conf.auto
1016
+ [ " $resolvfile " = " /tmp/resolv.conf.d/resolv.conf.auto" ] && {
1017
+ rm -f /tmp/resolv.conf
1019
1018
[ $ADD_LOCAL_DOMAIN -eq 1 ] && [ -n " $DOMAIN " ] && {
1020
- echo " search $DOMAIN " >> /tmp/resolv.conf.d/resolv.conf.auto
1019
+ echo " search $DOMAIN " >> /tmp/resolv.conf
1021
1020
}
1022
1021
DNS_SERVERS=" $DNS_SERVERS 127.0.0.1"
1023
1022
for DNS_SERVER in $DNS_SERVERS ; do
1024
- echo " nameserver $DNS_SERVER " >> /tmp/resolv.conf.d/resolv.conf.auto
1023
+ echo " nameserver $DNS_SERVER " >> /tmp/resolv.conf
1025
1024
done
1026
1025
}
1027
1026
@@ -1045,10 +1044,10 @@ dnsmasq_stop()
1045
1044
config_get resolvfile " $cfg " " resolvfile"
1046
1045
1047
1046
# relink /tmp/resolve.conf only for main instance
1048
- [ " $resolvfile " = " /tmp/resolv.conf.d/resolv.conf.auto.auto " ] && {
1049
- [ -f /tmp/resolv.conf.d/resolv.conf.auto ] && {
1050
- rm -f /tmp/resolv.conf.d/resolv.conf.auto
1051
- ln -s " $resolvfile " /tmp/resolv.conf.d/resolv.conf.auto
1047
+ [ " $resolvfile " = " /tmp/resolv.conf.d/resolv.conf.auto" ] && {
1048
+ [ -f /tmp/resolv.conf ] && {
1049
+ rm -f /tmp/resolv.conf
1050
+ ln -s " $resolvfile " /tmp/resolv.conf
1052
1051
}
1053
1052
}
1054
1053
0 commit comments