Pihole configuration

From wikinotes

pi-hole's configuration combines dnsmasq with it's own customization layers.

Locations

/etc/dnsmasq.conf primary dnsmasq configuration
/etc/dnsmasq.d/*.conf alt dnsmasq configurations
/etc/dnsmasq.d/01-pihole.conf pi-hole managed configuration (ex: pihole -a X Y)

Dynamic

# set pihole to use opendns
pihole -a setdns 208.67.222.222,208.67.220.220

# update blocked domain list
pihole -g

# disable/enable pihole
pihole disable 5m
pihole enable

Misc

Network Interface

# /etc/pihole/setupVars.conf
PIHOLE_INTERFACE=eno2