Skip to content

Instantly share code, notes, and snippets.

@dieechtenilente
Last active March 5, 2023 09:26
Show Gist options
  • Save dieechtenilente/e6dd9723d53ab510519b02369d1949b3 to your computer and use it in GitHub Desktop.
Save dieechtenilente/e6dd9723d53ab510519b02369d1949b3 to your computer and use it in GitHub Desktop.

PiHole Configuration

Resolving FQDN and hostnames of local DNS entries

  1. Create custom dnsmasq configuration
vim /etc/dnsmasq.d/00-custom-local-network-awareness.conf
# Used to resolve hostnames AND fqdns if only one is added as local dns record in PiHole

expand-hosts
domain=fritz.box
  1. Add hostnames as custom A records to PiHole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment