Skip to content

Instantly share code, notes, and snippets.

@jangeador
Created February 20, 2017 17:41
Show Gist options
  • Save jangeador/4379a5594e389eb215c14dfa3e59f62b to your computer and use it in GitHub Desktop.
Save jangeador/4379a5594e389eb215c14dfa3e59f62b to your computer and use it in GitHub Desktop.
Pihole DHCP / DNS / TFTP Config
domain-needed
bogus-priv
domain=lan.delianna.net
expand-hosts
local=/lan.delianna.net/
# do not use /etc/resolv.conf or /etc/hosts
no-hosts
no-resolv
no-poll
listen-address=127.0.0.1
listen-address=192.168.10.10
bind-interfaces
dhcp-authoritative
dhcp-leasefile=/etc/pihole/dhcp.leases
dhcp-range=192.168.10.150,192.168.10.230,255.255.255.0,24h
dhcp-option=option:router,192.168.10.1
dhcp-option=option:dns-server,192.168.10.10,208.67.222.222,208.67.220.220
dhcp-option=119,lan.delianna.net
dhcp-option=19,0 # Option IP-forwarding off
dhcp-option=44,0.0.0.0 # set WINS server
dhcp-option=45,0.0.0.0 # Netbios datagram distribution server
dhcp-option=46,8 # Netbios node type
dhcp-option=252,"\n" # send empty WPAD option (for win7)
dhcp-option=vendor:MSFT,2,1i
bogus-nxdomain=64.94.110.11 # disable Verisign re-direct service
# PXE Boot
dhcp-boot=pxelinux.0,rpi,192.168.10.15
# Static DHCP Range
dhcp-range=192.168.10.10,192.168.10.140,static,255.255.255.0,24h
#######################
# Servers
#######################
dhcp-host=b8:27:eb:fc:00:00,pihole,192.168.10.10
dhcp-host=b8:27:eb:db:00:00,serverpi,192.168.10.12
dhcp-host=b8:27:eb:98:00:00,naspi,192.168.10.15
#######################
# Video games
#######################
dhcp-host=00:24:00:0E:11:D6,PS3,192.168.10.40
dhcp-host=00:1A:E9:E2:07:86,Wii,192.168.10.41
dhcp-host=70:9e:29:32:ec:61,PS4,192.168.10.42
#######################
# Local DNS Addresses
#######################
address=/serverpi.lan.delianna.net/pi.lan.delianna.net/cops.delianna.net/www.delianna.net/ww2.delianna.net/tor.delianna.net/dglog.delianna.net/192.168.10.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment