mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
7a19d24058
In the case that FTL is started under root, dnsmasq changes the user to pihole due to this setting. The shared memory is created before this switch, and may cause issues such as failing to delete or reallocate the shared memory. These config lines were necessary before dnsmasq became part of FTL, but now since dnsmasq runs under FTL, we can configure the user/group through FTL. Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
50 lines
1.6 KiB
Text
50 lines
1.6 KiB
Text
# Pi-hole: A black hole for Internet advertisements
|
|
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
|
|
# Network-wide ad blocking via your own hardware.
|
|
#
|
|
# Dnsmasq config for Pi-hole's FTLDNS
|
|
#
|
|
# This file is copyright under the latest version of the EUPL.
|
|
# Please see LICENSE file for your rights under this license.
|
|
|
|
###############################################################################
|
|
# FILE AUTOMATICALLY POPULATED BY PI-HOLE INSTALL/UPDATE PROCEDURE. #
|
|
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
|
|
# #
|
|
# IF YOU WISH TO CHANGE THE UPSTREAM SERVERS, CHANGE THEM IN: #
|
|
# /etc/pihole/setupVars.conf #
|
|
# #
|
|
# ANY OTHER CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE #
|
|
# WITHIN /etc/dnsmasq.d/yourname.conf #
|
|
###############################################################################
|
|
|
|
addn-hosts=/etc/pihole/gravity.list
|
|
addn-hosts=/etc/pihole/black.list
|
|
addn-hosts=/etc/pihole/local.list
|
|
|
|
domain-needed
|
|
|
|
localise-queries
|
|
|
|
bogus-priv
|
|
|
|
no-resolv
|
|
|
|
server=@DNS1@
|
|
server=@DNS2@
|
|
|
|
interface=@INT@
|
|
|
|
cache-size=10000
|
|
|
|
log-queries
|
|
log-facility=/var/log/pihole.log
|
|
|
|
local-ttl=2
|
|
|
|
log-async
|
|
|
|
# If a DHCP client claims that its name is "wpad", ignore that.
|
|
# This fixes a security hole. see CERT Vulnerability VU#598349
|
|
dhcp-name-match=set:wpad-ignore,wpad
|
|
dhcp-ignore-names=tag:wpad-ignore
|