Raspberry Pi Zero W
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="<SSID>"
        scan_ssid=1
        psk="<WIFI Key"
}

Renew DHCP release, after setting static in dhcp server

sudo dhclient -4 -v -r wlan0
Configure pihole to serve local lan dns requests
echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf
sudo touch /etc/pihole/lan.list
sudo vi /etc/pihole/lan.list

< add in entry in following format>
10.50.160.26 test-host-name.soulnet.local test-host-name

sudo pihole restartdns
dnsmasq not starting?
pi@rp-01:~ $ sudo systemctl start dnsmasq.service 
Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details.
pi@rp-01:~ $ sudo journalctl -xn
-- Logs begin at Tue 2018-09-25 20:49:54 BST, end at Tue 2018-09-25 22:17:45 BST. --
Sep 25 22:17:37 rp-01 dnsmasq[9885]: junk found in command line
Sep 25 22:17:37 rp-01 dnsmasq[9885]: FAILED to start up
Sep 25 22:17:37 rp-01 systemd[1]: dnsmasq.service: control process exited, code=exited status=1
Sep 25 22:17:37 rp-01 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
-- Subject: Unit dnsmasq.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit dnsmasq.service has failed.
-- 
-- The result is failed.
Sep 25 22:17:37 rp-01 systemd[1]: Dependency failed for Host and Network Name Lookups.
-- Subject: Unit nss-lookup.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nss-lookup.target has failed.
-- 
-- The result is dependency.
Sep 25 22:17:37 rp-01 systemd[1]: Unit dnsmasq.service entered failed state.
Sep 25 22:17:37 rp-01 sudo[9876]: pam_unix(sudo:session): session closed for user root
Sep 25 22:17:45 rp-01 sudo[9898]: pi : TTY=pts/1 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
Sep 25 22:17:45 rp-01 sudo[9898]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
pi@rp-01:~ $ 
pi@rp-01:~ $ sudo apt-get purge dns-root-data
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  dns-root-data*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 72.7 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 139234 files and directories currently installed.)
Removing dns-root-data (2017072601~deb8u2) ...
pi@rp-01:~ $ sudo systemctl start dnsmasq.service

Raspberry Pi Specific Snippets