(SOLVED) Changing to pihole dns kills my internet

Had a thought, is it possible the raspberry pi's default firewall is causing issues?

Hi @Matt3226 ,
you can check firewall rules on Raspbian, and most other Linux distro's, like so:

pi@noads:~ $ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

What confuses me a bit about your setup is this:

The output is missing "DHCP_ROUTER=" directive and
from the screenshot you posted, it appears the Pi-Hole IP has changed into 192.168.1.128

Can you run below and post results here ?

ip link show; echo; ip addr show; echo; ip route show

EDIT: the 192.168.1.128 ip is from my linux mint machine, it is my ip not the pihole.

I set a static ip for the pihole via my router dhcp, so it shouldn't change. ifconfig from my linux mint machine:

It has a weird string where wlan0 should be (don't know why or what that is)

ifconfig from the pihole:

You have both the Ethernet and WiFi connected on the Pi-hole?

wifi..possibly so. I actually do have the wifi password for the pihole when I was first setting it up, I connected to the internet via wifi. I then plug in via ethernet from then on.

So yeah, I guess so..

That's probably the issue, down the unneeded interface and try pihole -r, the dual routes to the internet is confusing things.

turned off wifi and now my ssh doesn't work

You have the Ethernet on the Pi-hole set to the address of 192.168.1.128

yeah just saw that when I did ifconfig on pihole, never knew that :expressionless:

now recalling, I probably did a static ip for the wifi MAC address, not the ethernet MAC address !

EDIT: I'll be going to classes, I'll update with pihole -d when I come back

Do below to have udev rename it into wlan0:

echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c4:e9:84:0d:37:1c", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="wlan0"' | sudo tee -a /etc/udev/rules.d/70-persistent-net.rules

sudo reboot

Ps. the thing that went wrong was the two default gateways/default routes.
I believe your not allowed to have two.

sudo ip route del default via 192.168.1.1 dev wlan0

EDIT: or add it again if you lose eth0:

sudo ip route del default via 192.168.1.1 dev eth0 sudo ip route add default via 192.168.1.1 dev wlan0

Aaaaand I have the same problem.

Out of the blue, tonight, PiHole stopped giving back DNS results to the machines attached.

  • Nothing has changed obviously

I can see on the Query Log PiHole being asked for domains and whitelisting them, but my computer or devices never get the answer.

  • Tried updating, it was up to date

I'll try posting a pihole-d asap, but I'm wondering where it comes from since everything has been running smoothly for a few month now :frowning:

Here's the pihole -d:

pi@raspberrypi:~ $ pihole -d
::: Beginning Pi-hole debug at Fri May 12 12:20:16 UTC 2017!
:::
::: This process collects information from your Pi-hole, and optionally uploads
::: it to a unique and random directory on tricorder.pi-hole.net.
:::
::: NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers
::: can access your data via the given token. We have taken these extra steps to
::: secure your data and will work to further reduce any personal information gathered.
:::
::: Please read and note any issues, and follow any directions advised during this process.
:::
::: ---= Detecting Installed Package Versions:
::: Pi-hole: v3.0.1 (master:v3.0.1-0-g26fcb1b)
::: Pi-hole Dashboard: v3.0.1 (master:v3.0.1-0-ge204cea)
::: lighttpd/1.4.35
::: PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)
:::
::: ---= Detecting existence of /etc/pihole/setupVars.conf:
::: File exists, parsing...done and was successfully sourced
:::
::: ---= Detecting installed OS Distribution
:::
::: ---= Checking processor variety
:::
::: ---= Checking IPv6 Stack
::: IPv6 addresses located on eth0
::: No gateway detected.
:::
::: ---= Checking IPv4 Stack
::: IPv4 addresses located on eth0
::: Pinging default IPv4 gateway: Gateway responded.
::: Pinging Internet via IPv4: Query responded.
:::
::: ---= Daemon Process Information
::: Checking http port for lighttpd listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking domain port for dnsmasq listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking 4711 port for pihole-FTL listener.
::: Correctly configured.
:::
::: ---= Processes Check
::: Logging status of lighttpd, dnsmasq and pihole-FTL...
:::
::: ---= Resolver Functions Check (IPv4)
::: Checking for necessary lighttpd files.
:::
::: ---= Detecting existence of /etc/lighttpd/lighttpd.conf:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /var/log/lighttpd/error.log:
::: File exists, parsing...done
:::
:::
::: ---= Detecting existence of /etc/dnsmasq.conf:
::: File exists, parsing...done
:::
::: ---= Detecting contents of /etc/dnsmasq.d/*:
:::
::: ---= File /etc/dnsmasq.d/01-pihole.conf found
::: Parsing...done
:::
::: ---= File /etc/dnsmasq.d/README found
::: Parsing...done
:::
:::
::: ---= Detecting existence of /etc/pihole/whitelist.txt:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /etc/pihole/blacklist.txt:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /etc/pihole/adlists.list:
::: File exists, parsing...done
:::
::: ---= Analyzing gravity.list
:::
::: ---= Analyzing pihole.log
:::
::: ---= Analyzing pihole-FTL.log
:::
::: --= User Action Required =--
::: Try loading a site that you are having trouble with now from a client web browser..
::: (Press CTRL+C to finish logging.)
:::
::: ---= pihole.log
::: Logging will automatically teminate in 60 seconds
^C: 60 seconds left.
::: Finishing debug write from interrupt... Quitting!
::: Finshed debugging!
::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
::: Would you like to upload the log? [y/N] n
::: Log will NOT be uploaded to tricorder.
::: There was an error uploading your debug log.
::: Please try again or contact the Pi-hole team for assistance.
::: A local copy of the Debug log can be found at : /var/log/pihole_debug.log

The catted log:

pi@raspberrypi:~ $ cat /var/log/pihole_debug.log

---= Detecting Installed Package Versions:

Pi-hole: v3.0.1 (master:v3.0.1-0-g26fcb1b)
Pi-hole Dashboard: v3.0.1 (master:v3.0.1-0-ge204cea)
lighttpd/1.4.35
PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)

---= Detecting existence of /etc/pihole/setupVars.conf:

PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.154/24
IPV6_ADDRESS=
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB=true

---= Detecting installed OS Distribution

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

---= Checking processor variety

armv7l

---= Checking IPv6 Stack

IPv6 on eth0
Gravity configured for: NOT CONFIGURED

fe80::e953:1f80:3c6c:3940/64
No gateway detected.

---= Checking IPv4 Stack

IPv4 on eth0
Gravity configured for: 192.168.1.154/24

192.168.1.127/24
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2114ms
rtt min/avg/max/mdev = 0.478/0.537/0.601/0.050 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 7.485/7.659/7.860/0.184 ms

---= Daemon Process Information

Found user www-data with process lighttpd

---= Daemon Process Information

Found user dnsmasq with process dnsmasq

---= Daemon Process Information

Found user pihole with process pihole-FTL

---= Processes Check

Status for lighttpd daemon:
active
Status for dnsmasq daemon:
active
Status for pihole-FTL daemon:
active

---= Resolver Functions Check (IPv4)

Resolution of logger-04.vty.dailymotion.com from Pi-hole (127.0.0.1):
192.168.1.154

Resolution of logger-04.vty.dailymotion.com from Pi-hole (192.168.1.154):
Failed to resolve logger-04.vty.dailymotion.com on Pi-hole (192.168.1.154)

Resolution of logger-04.vty.dailymotion.com from 8.8.8.8:
195.8.215.228

Pi-hole dnsmasq specific records lookups
Cache Size:
"10000"
Upstream Servers:
"8.8.4.4#53 2 0" "8.8.8.8#53 8 0"

---= Detecting existence of /etc/lighttpd/lighttpd.conf:

server.modules = (
"mod_access",
"mod_accesslog",
"mod_auth",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.error-handler-404 = "pihole/index.php"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
accesslog.filename = "/var/log/lighttpd/access.log"
accesslog.format = "%{%s}t|%V|%r|%s|%b"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/admin/" {
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)
}
url.rewrite = ( "^(?!/admin/)..js$" => "pihole/index.js" )
$HTTP["url"] =~ "^(?!/admin)/.
" {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
}
$HTTP["host"] == "pi.hole" {
$HTTP["url"] == "/" {
url.redirect = ( "" => "/admin/" )
}
}
include_shell "cat external.conf 2>/dev/null"

---= Detecting existence of /var/log/lighttpd/error.log:

2017-05-09 14:32:01: (log.c.164) server started
2017-05-09 14:32:23: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-09 14:32:24: (log.c.164) server started
2017-05-09 14:32:24: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-09 15:13:58: https://www.google.com/ is not a valid domain
2017-05-09 15:17:05: (log.c.164) server started
2017-05-09 15:17:05: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-09 15:17:05: (log.c.164) server started
2017-05-09 15:17:05: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-10 02:49:56: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-10 02:50:02: (log.c.164) server started
2017-05-10 02:50:02: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-10 03:43:52: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-10 03:43:58: (log.c.164) server started
2017-05-10 03:43:58: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-10 07:58:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: l in /var/www/html/admin/scripts/pi-hole/php/header.php on line 383
2017-05-10 07:58:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: l in /var/www/html/admin/scripts/pi-hole/php/header.php on line 387
2017-05-12 07:17:05: (log.c.164) server started
2017-05-12 07:17:05: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-12 11:17:06: (log.c.164) server started
2017-05-12 11:17:06: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)

---= Detecting existence of /etc/dnsmasq.conf:

conf-dir=/etc/dnsmasq.d

---= Detecting contents of /etc/dnsmasq.d/*:

---= File /etc/dnsmasq.d/01-pihole.conf found

addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/local.list
domain-needed
localise-queries
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=eth0
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async

---= File /etc/dnsmasq.d/README found

---= Detecting existence of /etc/pihole/whitelist.txt:

raw.githubusercontent.com
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net

---= Detecting existence of /etc/pihole/blacklist.txt:

r4---sn-vgqs7nez.googlevideo.com
r4.sn-vgqs7nez.googlevideo.com
www.youtube-nocookie.com
i1.ytimg.com
r17---sn-vgqsenes.googlevideo.com
r2---sn-vgqs7n7k.googlevideo.com
r1---sn-vgqsen7z.googlevideo.com
r1.sn-vgqsen7z.googlevideo.com
r20---sn-vgqs7ne7.googlevideo.com
r20.sn-vgqs7ne7.googlevideo.com

---= Detecting existence of /etc/pihole/adlists.list:

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt

---= Analyzing gravity.list

/etc/pihole/gravity.list is 105094 lines long.

---= Analyzing pihole.log

/var/log/pihole.log is 310 lines long.
/var/log/pihole.log is 24K.

---= Analyzing pihole-FTL.log

/var/log/pihole-FTL.log is 524 lines long.
/var/log/pihole-FTL.log is 36K.
[2017-05-12 07:17:04.962] -> Unknown DNS queries: 0
[2017-05-12 07:17:04.962] -> Unique domains: 1
[2017-05-12 07:17:04.962] -> Unique clients: 1
[2017-05-12 07:17:04.962] Successfully accessed setupVars.conf
[2017-05-12 07:17:04.962] Listening on port 4711
[2017-05-12 07:17:05.563] dnsmasq process restarted
[2017-05-12 07:17:05.813] Gravity list entries: 105084
[2017-05-12 07:17:05.813] Blacklist entries: 10
[2017-05-12 07:17:05.813] No wildcard blocking list present
[2017-05-12 11:17:05.419] ########## FTL started! ##########
[2017-05-12 11:17:05.436] FTL branch: (no branch)
[2017-05-12 11:17:05.436] FTL hash: v2.6.2
[2017-05-12 11:17:05.436] FTL date: 2017-05-05 14:06:32 +0200
[2017-05-12 11:17:05.436] FTL user: pihole
[2017-05-12 11:17:05.436] Notice: Found no readable FTL config file
[2017-05-12 11:17:05.436] Using default settings
[2017-05-12 11:17:05.436] Starting config file parsing
[2017-05-12 11:17:05.436] SOCKET_LISTENING: only local
[2017-05-12 11:17:05.436] TIMEFRAME: Rolling 24h
[2017-05-12 11:17:05.436] QUERY_DISPLAY: Show queries
[2017-05-12 11:17:05.436] Finished config file parsing
[2017-05-12 11:17:05.442] Found no other running pihole-FTL process
[2017-05-12 11:17:05.445] PID of FTL process: 635
[2017-05-12 11:17:05.871] Gravity list entries: 105084
[2017-05-12 11:17:05.871] Blacklist entries: 10
[2017-05-12 11:17:05.871] No wildcard blocking list present
[2017-05-12 11:17:05.871] Starting initial log file parsing
[2017-05-12 11:17:05.871] Reading from /var/log/pihole.log.1 (rw-r--r--)
[2017-05-12 11:17:05.874] Notice: Increasing forwarded struct size from 0 to 4 (152.00 B)
[2017-05-12 11:17:05.915] New forward server: 8.8.4.4 (0/4)
[2017-05-12 11:17:05.915] Notice: Increasing overTime struct size from 0 to 100 (3.36 KB)
[2017-05-12 11:17:05.915] New forward server: 8.8.8.8 (1/4)
[2017-05-12 11:17:05.992] Reading from /var/log/pihole.log (rw-r--r--)
[2017-05-12 11:17:05.999] Notice: Increasing queries struct size from 0 to 10000 (323.49 KB)
[2017-05-12 11:17:05.999] Notice: Increasing domains struct size from 0 to 1000 (343.50 KB)
[2017-05-12 11:17:05.999] Notice: Increasing clients struct size from 0 to 10 (343.68 KB)
[2017-05-12 11:17:05.999] New client: 127.0.0.1 localhost (0/10)
[2017-05-12 11:17:06.047] Finished initial log file parsing
[2017-05-12 11:17:06.047] -> Total DNS queries: 140
[2017-05-12 11:17:06.047] -> Cached DNS queries: 0
[2017-05-12 11:17:06.047] -> Blocked DNS queries: 0
[2017-05-12 11:17:06.047] -> Unknown DNS queries: 0
[2017-05-12 11:17:06.047] -> Unique domains: 5
[2017-05-12 11:17:06.047] -> Unique clients: 1
[2017-05-12 11:17:06.047] Successfully accessed setupVars.conf
[2017-05-12 11:17:06.048] Listening on port 4711
[2017-05-12 11:17:06.650] dnsmasq process restarted
[2017-05-12 11:17:06.882] Gravity list entries: 105084
[2017-05-12 11:17:06.882] Blacklist entries: 10
[2017-05-12 11:17:06.882] No wildcard blocking list present

---= pihole.log

EDIT: I noticed the pihole -d still says

IPv4 on eth0
Gravity configured for: 192.168.1.154/24

So I ran a pihole -r and entered in the correct settings, reboot, and then did another pihole -d, so here's the updated pihole-d and the catted log after a pihole -r:

pi@raspberrypi:~ $ pihole -d
::: Beginning Pi-hole debug at Fri May 12 12:26:11 UTC 2017!
:::
::: This process collects information from your Pi-hole, and optionally uploads
::: it to a unique and random directory on tricorder.pi-hole.net.
:::
::: NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers
::: can access your data via the given token. We have taken these extra steps to
::: secure your data and will work to further reduce any personal information gathered.
:::
::: Please read and note any issues, and follow any directions advised during this process.
:::
::: ---= Detecting Installed Package Versions:
::: Pi-hole: v3.0.1 (master:v3.0.1-0-g26fcb1b)
::: Pi-hole Dashboard: v3.0.1 (master:v3.0.1-0-ge204cea)
::: lighttpd/1.4.35
::: PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)
:::
::: ---= Detecting existence of /etc/pihole/setupVars.conf:
::: File exists, parsing...done and was successfully sourced
:::
::: ---= Detecting installed OS Distribution
:::
::: ---= Checking processor variety
:::
::: ---= Checking IPv6 Stack
::: IPv6 addresses located on eth0
::: No gateway detected.
:::
::: ---= Checking IPv4 Stack
::: IPv4 addresses located on eth0
::: Pinging default IPv4 gateway: Gateway responded.
::: Pinging Internet via IPv4: Query responded.
:::
::: ---= Daemon Process Information
::: Checking http port for lighttpd listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking domain port for dnsmasq listener.
::: Correctly configured.
:::
::: ---= Daemon Process Information
::: Checking 4711 port for pihole-FTL listener.
::: Correctly configured.
:::
::: ---= Processes Check
::: Logging status of lighttpd, dnsmasq and pihole-FTL...
:::
::: ---= Resolver Functions Check (IPv4)
::: Checking for necessary lighttpd files.
:::
::: ---= Detecting existence of /etc/lighttpd/lighttpd.conf:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /var/log/lighttpd/error.log:
::: File exists, parsing...done
:::
:::
::: ---= Detecting existence of /etc/dnsmasq.conf:
::: File exists, parsing...done
:::
::: ---= Detecting contents of /etc/dnsmasq.d/*:
:::
::: ---= File /etc/dnsmasq.d/01-pihole.conf found
::: Parsing...done
:::
::: ---= File /etc/dnsmasq.d/README found
::: Parsing...done
:::
:::
::: ---= Detecting existence of /etc/pihole/whitelist.txt:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /etc/pihole/blacklist.txt:
::: File exists, parsing...done
:::
::: ---= Detecting existence of /etc/pihole/adlists.list:
::: File exists, parsing...done
:::
::: ---= Analyzing gravity.list
:::
::: ---= Analyzing pihole.log
:::
::: ---= Analyzing pihole-FTL.log
:::
::: --= User Action Required =--
::: Try loading a site that you are having trouble with now from a client web browser..
::: (Press CTRL+C to finish logging.)
:::
::: ---= pihole.log
::: Logging will automatically teminate in 60 seconds
^C: 55 seconds left.
::: Finishing debug write from interrupt... Quitting!
::: Finshed debugging!
::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
::: Would you like to upload the log? [y/N] n
::: Log will NOT be uploaded to tricorder.
::: There was an error uploading your debug log.
::: Please try again or contact the Pi-hole team for assistance.
::: A local copy of the Debug log can be found at : /var/log/pihole_debug.log

catted log:

pi@raspberrypi:~ $ cat /var/log/pihole_debug.log

---= Detecting Installed Package Versions:

Pi-hole: v3.0.1 (master:v3.0.1-0-g26fcb1b)
Pi-hole Dashboard: v3.0.1 (master:v3.0.1-0-ge204cea)
lighttpd/1.4.35
PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)

---= Detecting existence of /etc/pihole/setupVars.conf:

PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.127/24
IPV6_ADDRESS=
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB=true

---= Detecting installed OS Distribution

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

---= Checking processor variety

armv7l

---= Checking IPv6 Stack

IPv6 on eth0
Gravity configured for: NOT CONFIGURED

fe80::e953:1f80:3c6c:3940/64
No gateway detected.

---= Checking IPv4 Stack

IPv4 on eth0
Gravity configured for: 192.168.1.127/24

192.168.1.127/24
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2119ms
rtt min/avg/max/mdev = 0.485/0.543/0.613/0.056 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 7.077/7.581/8.485/0.640 ms

---= Daemon Process Information

Found user www-data with process lighttpd

---= Daemon Process Information

Found user dnsmasq with process dnsmasq

---= Daemon Process Information

Found user pihole with process pihole-FTL

---= Processes Check

Status for lighttpd daemon:
active
Status for dnsmasq daemon:
active
Status for pihole-FTL daemon:
active

---= Resolver Functions Check (IPv4)

Resolution of www.appnexus.com from Pi-hole (127.0.0.1):
192.168.1.127

Resolution of www.appnexus.com from Pi-hole (192.168.1.127):
192.168.1.127

Resolution of www.appnexus.com from 8.8.8.8:
appnexuscomv2.live.craftercloud.io.
us-east-1-prod-deliveryelb-03-1680424524.us-east-1.elb.amazonaws.com.
52.20.105.55
54.86.2.108
52.207.119.140

Pi-hole dnsmasq specific records lookups
Cache Size:
"10000"
Upstream Servers:
"8.8.4.4#53 6 0" "8.8.8.8#53 2 0"

---= Detecting existence of /etc/lighttpd/lighttpd.conf:

server.modules = (
"mod_access",
"mod_accesslog",
"mod_auth",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.error-handler-404 = "pihole/index.php"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
accesslog.filename = "/var/log/lighttpd/access.log"
accesslog.format = "%{%s}t|%V|%r|%s|%b"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/admin/" {
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)
}
url.rewrite = ( "^(?!/admin/)..js$" => "pihole/index.js" )
$HTTP["url"] =~ "^(?!/admin)/.
" {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
}
$HTTP["host"] == "pi.hole" {
$HTTP["url"] == "/" {
url.redirect = ( "" => "/admin/" )
}
}
include_shell "cat external.conf 2>/dev/null"

---= Detecting existence of /var/log/lighttpd/error.log:

2017-05-09 14:32:01: (log.c.164) server started
2017-05-09 14:32:23: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-09 14:32:24: (log.c.164) server started
2017-05-09 14:32:24: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-09 15:13:58: https://www.google.com/ is not a valid domain
2017-05-09 15:17:05: (log.c.164) server started
2017-05-09 15:17:05: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-09 15:17:05: (log.c.164) server started
2017-05-09 15:17:05: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-10 02:49:56: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-10 02:50:02: (log.c.164) server started
2017-05-10 02:50:02: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-10 03:43:52: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-10 03:43:58: (log.c.164) server started
2017-05-10 03:43:58: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-10 07:58:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: l in /var/www/html/admin/scripts/pi-hole/php/header.php on line 383
2017-05-10 07:58:14: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Notice: Undefined index: l in /var/www/html/admin/scripts/pi-hole/php/header.php on line 387
2017-05-12 07:17:05: (log.c.164) server started
2017-05-12 07:17:05: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-12 11:17:06: (log.c.164) server started
2017-05-12 11:17:06: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-12 12:23:30: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-12 12:24:03: (log.c.164) server started
2017-05-12 12:24:03: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)
2017-05-12 12:24:44: (server.c.1558) server stopped by UID = 0 PID = 1
2017-05-12 12:24:51: (log.c.164) server started
2017-05-12 12:24:51: (server.c.1045) WARNING: unknown config-key: alias.url (ignored)

---= Detecting existence of /etc/dnsmasq.conf:

conf-dir=/etc/dnsmasq.d

---= Detecting contents of /etc/dnsmasq.d/*:

---= File /etc/dnsmasq.d/01-pihole.conf found

addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/local.list
domain-needed
localise-queries
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=eth0
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async

---= File /etc/dnsmasq.d/README found

---= Detecting existence of /etc/pihole/whitelist.txt:

raw.githubusercontent.com
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net

---= Detecting existence of /etc/pihole/blacklist.txt:

r4---sn-vgqs7nez.googlevideo.com
r4.sn-vgqs7nez.googlevideo.com
www.youtube-nocookie.com
i1.ytimg.com
r17---sn-vgqsenes.googlevideo.com
r2---sn-vgqs7n7k.googlevideo.com
r1---sn-vgqsen7z.googlevideo.com
r1.sn-vgqsen7z.googlevideo.com
r20---sn-vgqs7ne7.googlevideo.com
r20.sn-vgqs7ne7.googlevideo.com

---= Detecting existence of /etc/pihole/adlists.list:

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt

---= Analyzing gravity.list

/etc/pihole/gravity.list is 105969 lines long.

---= Analyzing pihole.log

/var/log/pihole.log is 460 lines long.
/var/log/pihole.log is 40K.

---= Analyzing pihole-FTL.log

/var/log/pihole-FTL.log is 609 lines long.
/var/log/pihole-FTL.log is 44K.
[2017-05-12 12:24:29.921] -> Unknown DNS queries: 0
[2017-05-12 12:24:29.921] -> Unique domains: 14
[2017-05-12 12:24:29.921] -> Unique clients: 1
[2017-05-12 12:24:29.921] Successfully accessed setupVars.conf
[2017-05-12 12:24:29.921] Listening on port 4711
[2017-05-12 12:24:45.505] FATAL: FTL received SIGTERM from PID/UID 1/0, scheduled to exit gracefully
[2017-05-12 12:24:45.506] Shutting down...
[2017-05-12 12:24:45.506] ########## FTL terminated! ##########
[2017-05-12 12:24:50.196] ########## FTL started! ##########
[2017-05-12 12:24:50.249] FTL branch: (no branch)
[2017-05-12 12:24:50.249] FTL hash: v2.6.2
[2017-05-12 12:24:50.249] FTL date: 2017-05-05 14:06:32 +0200
[2017-05-12 12:24:50.249] FTL user: pihole
[2017-05-12 12:24:50.249] Notice: Found no readable FTL config file
[2017-05-12 12:24:50.250] Using default settings
[2017-05-12 12:24:50.250] Starting config file parsing
[2017-05-12 12:24:50.250] SOCKET_LISTENING: only local
[2017-05-12 12:24:50.250] TIMEFRAME: Rolling 24h
[2017-05-12 12:24:50.250] QUERY_DISPLAY: Show queries
[2017-05-12 12:24:50.250] Finished config file parsing
[2017-05-12 12:24:50.256] Found no other running pihole-FTL process
[2017-05-12 12:24:50.258] PID of FTL process: 657
[2017-05-12 12:24:50.658] Gravity list entries: 105959
[2017-05-12 12:24:50.658] Blacklist entries: 10
[2017-05-12 12:24:50.658] No wildcard blocking list present
[2017-05-12 12:24:50.658] Starting initial log file parsing
[2017-05-12 12:24:50.658] Reading from /var/log/pihole.log.1 (rw-r--r--)
[2017-05-12 12:24:50.665] Notice: Increasing forwarded struct size from 0 to 4 (152.00 B)
[2017-05-12 12:24:50.687] New forward server: 8.8.4.4 (0/4)
[2017-05-12 12:24:50.687] Notice: Increasing overTime struct size from 0 to 100 (3.36 KB)
[2017-05-12 12:24:50.688] New forward server: 8.8.8.8 (1/4)
[2017-05-12 12:24:50.729] Reading from /var/log/pihole.log (rw-r--r--)
[2017-05-12 12:24:50.759] Notice: Increasing queries struct size from 0 to 10000 (323.49 KB)
[2017-05-12 12:24:50.759] Notice: Increasing domains struct size from 0 to 1000 (343.50 KB)
[2017-05-12 12:24:50.759] Notice: Increasing clients struct size from 0 to 10 (343.68 KB)
[2017-05-12 12:24:50.759] New client: 127.0.0.1 localhost (0/10)
[2017-05-12 12:24:50.803] Finished initial log file parsing
[2017-05-12 12:24:50.803] -> Total DNS queries: 231
[2017-05-12 12:24:50.803] -> Cached DNS queries: 2
[2017-05-12 12:24:50.803] -> Blocked DNS queries: 1
[2017-05-12 12:24:50.803] -> Unknown DNS queries: 0
[2017-05-12 12:24:50.803] -> Unique domains: 14
[2017-05-12 12:24:50.803] -> Unique clients: 1
[2017-05-12 12:24:50.803] Successfully accessed setupVars.conf
[2017-05-12 12:24:50.803] Listening on port 4711
[2017-05-12 12:24:51.407] dnsmasq process restarted
[2017-05-12 12:24:51.717] Gravity list entries: 105959
[2017-05-12 12:24:51.717] Blacklist entries: 10
[2017-05-12 12:24:51.717] No wildcard blocking list present
[2017-05-12 12:26:17.589] New client: 192.168.1.127 raspberrypi (1/10)

---= pihole.log

Looks good now...

The pi.hole/admin web interface doesn't show up though, only works with 192.168.1.127/admin

I followed this thread

I did a ping pi.hole:

anonymous@mint ~ $ ping pi.hole
PING pi.hole (202.71.99.194) 56(84) bytes of data.
64 bytes from 202.71.99.194: icmp_seq=1 ttl=57 time=11.8 ms
64 bytes from 202.71.99.194: icmp_seq=2 ttl=57 time=11.7 ms
64 bytes from 202.71.99.194: icmp_seq=3 ttl=57 time=12.4 ms
64 bytes from 202.71.99.194: icmp_seq=4 ttl=57 time=10.4 ms
64 bytes from 202.71.99.194: icmp_seq=5 ttl=57 time=12.5 ms
^C
--- pi.hole ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 10.490/11.828/12.599/0.763 ms

The 202.71.99.194 ip isn't my wan ip. I've checked. What is going on here? something to do with lighttpd?

nslookup pi.hole:

anonymous@mint ~ $ nslookup pi.hole
Server: 127.0.1.1
Address: 127.0.1.1#53

Non-authoritative answer:
Name: pi.hole
Address: 202.71.99.194

I have just setup my pihole, and this is what I am experiencing. My linux box just...never gets an answer. domain gets whitelisted(cached), but DNS_PROBE_BAD_CONFIG comes back.

Router: Archer C3200

Pihole is using ethernet, WLAN disabled. Static IP assigned

Pinging the pihole from linux box: success
Dig google.com from linux box: Connection timed out; no servers could be reached
dig google.com from pihole: Success

Here is my debug token f90abseeaa

Note that it seems to be working over wifi on my macbook...and my android phone.

5 posts were split to a new topic: Extreme number of queries passed to Pi-hole - dnsmasq throttling lookups

So my pihole is working now, after doing a reboot , the pi.hole/admin web interface works again.

So i'll mark this thread as solved and call it done ! Thanks to both of you @DanSchaper and @deHakkelaar for helping me out throughout !

Really appreciate it :clap::clap::+1::+1:

Thanks for this snippet of code, it now shows wlan0 again ! :+1::+1:

You can rename any network interface like this by just changing the MAC address: "ATTR{address}=="c4:e9:84:0d:37:1c"

MAC addresses for the interfaces are displayed when doing "ip link show".

thanks for the info :+1::+1:

If you know which driver is used for the network interface, "sudo lsmod", you wont even need a reboot:

sudo rmmod <DRIVER_MODULE>
sudo modprobe <DRIVER_MODULE>