I came up with some stuff that eases things a little bit with my Pi-Hole life. Some of the ideas here, I gathered from around the internet. I wanted to share my findings.
These configs are to be placed in
/etc/dnsmasq.d
I do realize that these could easily be combined into a single 04-custom.conf, but for the ease of teaching myself things I can do with this,, I like them seperate.
Bypass Pihole by MAC Address
What this Does:
Find the MAC Address of the device that you want to skip pihole, and go straight to OpenDNS or Google DNS servers.
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/dnsmasqtweaks/04-bypass.conf
Reason I made this:
I had some wifi lightbulbs that were calling home every 5 seconds. Yes, I could have simply blocked the domain, but I wanted my stats in the interface to reflect advertisements, not just blocked stuff.
Interface Fix
What this Does:
Using this conf file will allow you to use pihole dns on multiple interfaces. For me this helped fix multiple issues. Pair this conf with a good iptools firewall, to secure your pihole from your external traffic.
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/dnsmasqtweaks/05-addint.conf
Reason I made this:
I am running an nginx reverse proxy on the same Pi3 as pihole. I activated the wifi, and gave it a static IP address. I have lighttpd running on wlan0 IP port 80 (using server.bind), and Nginx running on eth0 IP port 80. I ran pihole -r
and reconfigured to primarily use wlan0, and the IP associated with it. I then Installed the Wally3k Block Page. This works extremely well!
Active Directory Domain adjustment
What this Does:
Let's you add your Active Directory DNS to the pihole without wasting one of the webui slots.
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/dnsmasqtweaks/06-activedirectory.conf
Reason I made this:
I wanted these settings to be retained between installs. The tinkerer in me tends to have to reinstall often. (Can't stop breaking things!)
Custom Redirect
What this Does:
It should allow you to send a website to an alternate address.
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/dnsmasqtweaks/07-customredirect.conf
and
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/customRedirect.list
Reason I made this
Saw it on Reddit, seemed like a good idea in theory.
Static IP
What this Does:
This will possibly allow you to set a device name and IP associated with a mac address.
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/dnsmasqtweaks/08-staticip.conf
Reason I made this
I wanted to static IP devices that I reinstall often.
Noip4you
What this Does:
This let's you not give an IP address to a specific mac address.
https://github.com/deathbybandaid/piadvanced/blob/master/piholetweaks/dnsmasqtweaks/09-noip4you.conf
Reason I made this
If I ever catch a neighbor stealing internet, I want to try and make it a bit more difficult for them.
Please comment with some of the custom configs you have come up with, and why!
I want to see what all is possible with dnsmaq. I've read a bunch online, but it's hard to tell if it's relevant or not.
There was another conf, but i removed it from this thread.