summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/dns-forwarding/vyatta-dns-forwarding.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
index b4ffe2e3..8639a010 100644
--- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl
+++ b/scripts/dns-forwarding/vyatta-dns-forwarding.pl
@@ -51,6 +51,8 @@ sub dnsforwarding_get_constants {
my $date = `date`;
chomp $date;
$output = "#\n# autogenerated by vyatta-dns-forwarding.pl on $date\n#\n";
+ $output .= "log-facility=/var/log/dnsmasq.log\n";
+ system("rm -f /var/log/dnsmasq.log; touch /var/log/dnsmasq.log");
return $output;
}