Skip to content

Instantly share code, notes, and snippets.

@wheel5up
Created September 30, 2020 01:28
Show Gist options
  • Save wheel5up/50421e3e80260d81f1f026cc67f24b93 to your computer and use it in GitHub Desktop.
Save wheel5up/50421e3e80260d81f1f026cc67f24b93 to your computer and use it in GitHub Desktop.
update syslog facility dnsmasq
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