Created
January 30, 2022 20:18
-
-
Save makeitcloudy/8f242a27d95524c9accb841f47b6fc44 to your computer and use it in GitHub Desktop.
pihole
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
# 2022 - after update from 5.6 to 5.8.1 pihole stops resolving local DNS records | |
# dnsmasq throws a warning - Ignoring query from non-local network | |
# 1. make sure that your DNS has only one IP address | |
more /etc/dhcpcd.conf | |
more /etc/network/interfaces | |
# 2. your network interface may be statically configured or you may use dhcp, | |
# it does not matter, unless it's IP address is constant | |
# *. make a backup of /etc/dnsmasq.conf - will redirect you to /etc/dnsmasq.d | |
# here you'll find configuration related to the main actor | |
# **. just to be on the safeside, in case you are not using it, disable IPv6 | |
# by adding following lines at the bottom of /etc/sysctl.conf | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
net.ipv6.conf.lo.disable_ipv6 = 1 | |
net.ipv6.conf.tun0.disable_ipv6 = 1 | |
# 3. reconfigure the pihole, that it uses the IP address you have bound to the main interface | |
pihole -r | |
# bare in mind each reconfiguration clears the dnsmasq configuration in version 5.8.1 of pihole | |
# 4. make sure that within your dnsmasq configuration stored in /etc/dnsmasq.d | |
# there is following entry as per the following article https://docs.pi-hole.net/ftldns/dnsmasq_warn/ | |
# Ignoring query from non-local network - excplicitelly indicates that the deamon got crazy and | |
# could not figure out on which interface is should be listening to | |
# to fix that add following entry into the dnsqmasq config in my case /etc/dnsmasq.d/01-pihole.conf | |
interface=eth0 | |
# 5. then restart the dns service on the pihole | |
sudo service pihole-FTL restart | |
# or | |
pihole restartdns | |
# that's it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment