Dnsmasq inst working [SOLVED]

Expected Behaviour:

The dnsmasq service should start, it was working 2 days ago

Actual Behaviour:

the dnsmasq service doesnt start beacue of a wrong address at li e 2 of 03-pihole-wildcard.conf wich is a ipv6

i found out that the ipv6 there isnt the one my Raspberrypi has ^, so i changed it to the current ipv6 my Raspi has but it dindt work

Debug Token:

---= Detecting Installed Package Versions:

Pi-hole: v3.1 (master:v3.1-0-gecde222)
Pi-hole Dashboard: v3.1 (master:v3.1-0-gf204b71)
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:

DNSMASQ_LISTENING=single
DNS_FQDN_REQUIRED=false
DNS_BOGUS_PRIV=false
DNSSEC=false
API_EXCLUDE_DOMAINS=
API_EXCLUDE_CLIENTS=
API_QUERY_LOG_SHOW=all
API_PRIVACY_MODE=false
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.135/24
IPV6_ADDRESS=2a02:120b:c3c5:9d70:5d5f:b74a:69d:dfd6/64
PIHOLE_DNS_1=192.168.1.1
PIHOLE_DNS_2=195.186.4.162
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

armv6l

---= Checking IPv6 Stack

IPv6 on eth0
Gravity configured for: 2a02:120b:c3c5:9d70:5d5f:b74a:69d:dfd6/64

2a02:1205:c6a6:e90:824b:a599:619a:8d8b/64
fe80::a48f:f8c0:8e7d:43bd/64
Gateway responded.
--- fe80::a6a:aff:fe42:d250 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.741/0.829/0.958/0.095 ms
Query responded.
--- 2001:4860:4860::8888 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 3.755/4.063/4.587/0.375 ms

---= Checking IPv4 Stack

IPv4 on eth0
Gravity configured for: 192.168.1.135/24

192.168.1.135/24
Gateway responded.
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2049ms
rtt min/avg/max/mdev = 0.657/1.457/2.906/1.026 ms
Query responded.
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 5.734/5.870/5.980/0.135 ms

---= Daemon Process Information

Found user www-data with process lighttpd

---= Daemon Process Information

Failure: IPv4 Port not in use

---= Daemon Process Information

Found user pihole with process pihole-FTL

---= Processes Check

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

---= Resolver Functions Check (IPv4)

Resolution of arcelikpendikservisi.gen.tr from Pi-hole (127.0.0.1):
Failed to resolve arcelikpendikservisi.gen.tr on Pi-hole (127.0.0.1)

Resolution of arcelikpendikservisi.gen.tr from Pi-hole (192.168.1.135):
Failed to resolve arcelikpendikservisi.gen.tr on Pi-hole (192.168.1.135)

Resolution of arcelikpendikservisi.gen.tr from 8.8.8.8:
NXDOMAIN

---= Resolver Functions Check (IPv6)

Resolution of social-vestnik.ru from Pi-hole (::1):
Failed to resolve social-vestnik.ru on Pi-hole (::1)

Resolution of social-vestnik.ru from Pi-hole (2a02:120b:c3c5:9d70:5d5f:b74a:69d:dfd6):
Failed to resolve social-vestnik.ru on Pi-hole (2a02:120b:c3c5:9d70:5d5f:b74a:69d:dfd6)

Resolution of social-vestnik.ru from 2001:4860:4860::8888:
NXDOMAIN

Pi-hole dnsmasq specific records lookups
Cache Size:
;; connection timed out; no servers could be reached
Upstream Servers:
;; connection timed out; no servers could be reached

---= 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-07-09 06:25:11: (server.c.1242) logfiles cycled UID = 0 PID = 677
2017-07-09 06:51:50: (server.c.1558) server stopped by UID = 0 PID = 1
2017-07-09 06:52:22: (log.c.164) server started
2017-07-09 06:55:28: (server.c.1558) server stopped by UID = 0 PID = 1
2017-07-09 06:55:57: (log.c.164) server started

---= 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
addn-hosts=/etc/pihole/black.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async
server=192.168.1.1
server=195.186.4.162
interface=eth0

---= File /etc/dnsmasq.d/03-pihole-wildcard.conf found

address=/mgid.com/192.168.1.135
address=/mgid.com/2a02:1205:c6a6:e90:824b:a599:619a:8d8b/64
address=/iqoption.com/192.168.1.135
address=/iqoption.com/2a02:1205:c6a6:e90:824b:a599:619a:8d8b/64

---= 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:

/etc/pihole/blacklist.txt not found!

---= 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 220871 lines long.

---= Analyzing pihole.log

Warning: No pihole.log file found!
/var/log/pihole.log is 0.

---= Analyzing pihole-FTL.log

/var/log/pihole-FTL.log is 79 lines long.
/var/log/pihole-FTL.log is 8,0K.
[2017-07-09 06:52:30.866] Finished initial log file parsing
[2017-07-09 06:52:30.867] -> Total DNS queries: 0
[2017-07-09 06:52:30.867] -> Cached DNS queries: 0
[2017-07-09 06:52:30.867] -> Blocked DNS queries: 0
[2017-07-09 06:52:30.868] -> Unknown DNS queries: 0
[2017-07-09 06:52:30.868] -> Unique domains: 0
[2017-07-09 06:52:30.868] -> Unique clients: 0
[2017-07-09 06:52:30.869] Successfully accessed setupVars.conf
[2017-07-09 06:52:30.871] Listening on port 4711 for incoming connections
[2017-07-09 06:55:30.756] FATAL: FTL received SIGTERM from PID/UID 977/0, scheduled to exit gracefully
[2017-07-09 06:55:30.757] Shutting down...
[2017-07-09 06:55:30.759] ########## FTL terminated! ##########
[2017-07-09 06:55:48.734] ########## FTL started! ##########
[2017-07-09 06:55:48.736] FTL branch: (no branch)
[2017-07-09 06:55:48.737] FTL hash: v2.9.4
[2017-07-09 06:55:48.737] FTL date: 2017-06-22 23:33:48 +0200
[2017-07-09 06:55:48.738] FTL user: pihole
[2017-07-09 06:55:48.738] Notice: Found no readable FTL config file
[2017-07-09 06:55:48.739] Using default settings
[2017-07-09 06:55:48.739] Starting config file parsing
[2017-07-09 06:55:48.739] SOCKET_LISTENING: only local
[2017-07-09 06:55:48.740] TIMEFRAME: Rolling 24h
[2017-07-09 06:55:48.740] QUERY_DISPLAY: Show queries
[2017-07-09 06:55:48.740] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2017-07-09 06:55:48.741] MAXDBDAYS: max age for stored queries is 365 days
[2017-07-09 06:55:48.741] Finished config file parsing
[2017-07-09 06:55:48.807] Found no other running pihole-FTL process
[2017-07-09 06:55:48.834] PID of FTL process: 448
[2017-07-09 06:55:49.924] Gravity list entries: 110435
[2017-07-09 06:55:49.924] No blacklist present
[2017-07-09 06:55:49.936] Notice: Increasing wildcards struct size from 0 to 1 (100.00 B)
[2017-07-09 06:55:49.937] Notice: Increasing wildcards struct size from 1 to 2 (113.00 B)
[2017-07-09 06:55:49.938] Wildcard blocking list entries: 2
[2017-07-09 06:55:49.970] Database initialized
[2017-07-09 06:55:49.972] Starting initial log file parsing
[2017-07-09 06:55:49.973] Reading from /var/log/pihole.log.1 (rw-r--r--)
[2017-07-09 06:55:49.984] Notice: Increasing forwarded struct size from 0 to 4 (194.00 B)
[2017-07-09 06:55:50.012] New forward server: 192.168.1.1 (0/4)
[2017-07-09 06:55:50.013] Notice: Increasing overTime struct size from 0 to 100 (3.41 KB)
[2017-07-09 06:56:07.174] New forward server: 195.186.4.162 (1/4)
[2017-07-09 06:56:07.248] Reading from /var/log/pihole.log (rw-r--r--)
[2017-07-09 06:56:07.249] Finished initial log file parsing
[2017-07-09 06:56:07.249] -> Total DNS queries: 0
[2017-07-09 06:56:07.250] -> Cached DNS queries: 0
[2017-07-09 06:56:07.250] -> Blocked DNS queries: 0
[2017-07-09 06:56:07.250] -> Unknown DNS queries: 0
[2017-07-09 06:56:07.251] -> Unique domains: 0
[2017-07-09 06:56:07.251] -> Unique clients: 0
[2017-07-09 06:56:07.252] Successfully accessed setupVars.conf
[2017-07-09 06:56:07.253] Listening on port 4711 for incoming connections

At the end of the IPv6 addresses, take out the /64. Easiest way is to edit /etc/pihole/setupVars.conf and fix the IPv6 to remove that extra /64 CIDR and run pihole -g. Also will need to remove that extra bit of information from your 03 wildcard file.

1 Like

Hey Thanks for that fast and Helpfull reply

one question though: Do i have to do this everytime the ipv6 changes, if yes is there a way to make that automatic?

We have an update coming online with the next release that will fix the extra CIDR bug, so you shouldn't see this happening again in the future. :slight_smile:

1 Like

I feel like we need to make some sort of joke about this in the release notes...:laughing:

We already did the Apple Juice joke, is there an image of a bottle of juice that's spilled over? :wink:

1 Like

Turned this into an FAQ for those not on v3.2.

This also fixed my issue with IPv6 ads not being blocked on 3.1 as the initial install includes the /64 CIDR at the end.

1 Like