Skip to content

Instantly share code, notes, and snippets.

@SkaTeMasTer
Created February 13, 2017 06:31
Show Gist options
  • Save SkaTeMasTer/b2076d3e104d0fc93813df1cdc1f27db to your computer and use it in GitHub Desktop.
Save SkaTeMasTer/b2076d3e104d0fc93813df1cdc1f27db to your computer and use it in GitHub Desktop.
This is the status required for pihole to work. You need to install dependencies and hack some.
IP Addresses of this Pi:
127.0.0.1
10.124.161.101
Gateway check:
ok
#######################################
######## Whitelist Comparison #########
#######################################
#######################################
######## Blacklist Comparison #########
#######################################
#######################################
############ NSLookup Test ############
#######################################
NSLOOKUP of doubleclick.com from PiHole:
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: doubleclick.com
Address: 10.124.161.101
NSLOOKUP of doubleclick.com from 8.8.8.8:
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: doubleclick.com
Address: 64.15.124.219
Name: doubleclick.com
Address: 64.15.124.214
Name: doubleclick.com
Address: 64.15.124.216
Name: doubleclick.com
Address: 64.15.124.217
Name: doubleclick.com
Address: 64.15.124.215
Name: doubleclick.com
Address: 64.15.124.218
Name: doubleclick.com
Address: 64.15.124.213
Name: doubleclick.com
Address: 64.15.124.212
#######################################
########### Processes Check ###########
#######################################
lighttpd processes status:
● lighttpd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
dnsmasq processes status:
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: active (running) since Mon 2016-04-25 16:44:42 CEST; 17s ago
Process: 7654 ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf (code=exited, status=0/SUCCESS)
Process: 7714 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 7704 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 7699 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 7713 (dnsmasq)
Tasks: 1 (limit: 512)
CGroup: /system.slice/dnsmasq.service
└─7713 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
Apr 25 16:44:39 Fileserver systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Apr 25 16:44:39 Fileserver dnsmasq[7699]: dnsmasq: syntax check OK.
Apr 25 16:44:42 Fileserver systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
#######################################
############### Dnsmasq ###############
#######################################
#######################################
########### 01-pihole.conf ############
#######################################
addn-hosts=/etc/pihole/gravity.list
domain-needed
bogus-priv
no-resolv
server=8.8.8.8
server=8.8.4.4
interface=p32p1
listen-address=10.124.161.101
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=300
log-async
dhcp-option=3,10.124.161.93
#######################################
############ lighttpd.conf ############
#######################################
No lighttpd.conf file found!
#######################################
############ gravity.list #############
#######################################
208358 /etc/pihole/gravity.list
Hostname of this pihole is:
Fileserver
#######################################
################ Hosts ################
#######################################
127.0.0.1 localhost
127.0.1.1 Fileserver
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#######################################
############## Whitelist ##############
#######################################
raw.githubusercontent.com
adblock.gjtech.net
mirror1.malwaredomains.com
sysctl.org
zeustracker.abuse.ch
s3.amazonaws.com
hosts-file.net
#######################################
############## Blacklist ##############
#######################################
#######################################
############ adlists.list #############
#######################################
No adlists.list file found... using adlists.default!
#######################################
############# pihole.log ##############
#######################################
Apr 25 16:44:39 dnsmasq[7713]: warning: ignoring resolv-file flag because no-resolv is set
Apr 25 16:44:39 dnsmasq[7713]: using nameserver 8.8.4.4#53
Apr 25 16:44:39 dnsmasq[7713]: using nameserver 8.8.8.8#53
Apr 25 16:44:39 dnsmasq[7713]: read /etc/hosts - 7 addresses
Apr 25 16:44:41 dnsmasq[7713]: read /etc/pihole/gravity.list - 208358 addresses
Apr 25 16:44:41 dnsmasq[7713]: query[SOA] local from 127.0.0.1
Apr 25 16:44:41 dnsmasq[7713]: forwarded local to 8.8.4.4
Apr 25 16:44:41 dnsmasq[7713]: forwarded local to 8.8.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment