Created
September 30, 2020 01:28
-
-
Save wheel5up/50421e3e80260d81f1f026cc67f24b93 to your computer and use it in GitHub Desktop.
update syslog facility dnsmasq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@pi-hole2:~ $ ls -l /etc/dnsmasq.d/01-pihole.conf | |
-rw-r--r-- 1 root root 1517 Aug 30 19:30 /etc/dnsmasq.d/01-pihole.conf | |
pi@pi-hole2:~ $ grep log-facility /etc/dnsmasq.d/01-pihole.conf | |
log-facility=/var/log/pihole.log | |
pi@pi-hole2:~ $ sudo sed -i "s/log-facility=.*/log-facility=local5/" /etc/dnsmasq.d/01-pihole.conf | |
pi@pi-hole2:~ $ ls -l /etc/dnsmasq.d/01-pihole.conf | |
-rw-r--r-- 1 root root 1504 Sep 30 02:08 /etc/dnsmasq.d/01-pihole.conf | |
pi@pi-hole2:~ $ grep log-facility /etc/dnsmasq.d/01-pihole.conf | |
log-facility=local5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment