Point at the correct file from the configuration instead.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 18 Nov 2010 20:16:42 +0000 (15:16 -0500)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 18 Nov 2010 20:16:42 +0000 (15:16 -0500)
dns-config
plc.d/dns

index cc7b5e3..aaaa3f2 100755 (executable)
@@ -93,7 +93,7 @@ def main():
 domain-needed
 bogus-priv
 addn-hosts=/etc/plc_hosts
-resolv-file=/etc/resolv.conf
+resolv-file=/etc/plc_resolv.conf
 conf-dir=/etc/dnsmasq.d
 """.lstrip())
 
index 361d639..9536c3e 100755 (executable)
--- a/plc.d/dns
+++ b/plc.d/dns
@@ -60,7 +60,7 @@ case "$1" in
        fi
 
        if [ $PLC_DNS_ENABLED -eq 1 ] ; then
-           plc_daemon dnsmasq -r /etc/plc_resolv.conf
+           plc_daemon dnsmasq
            check
        fi