Skip to content

Instantly share code, notes, and snippets.

@johndturn
Created June 14, 2022 16:28
Show Gist options
  • Save johndturn/a53d0a16c8aa5e564f5f2b7f53282254 to your computer and use it in GitHub Desktop.
Save johndturn/a53d0a16c8aa5e564f5f2b7f53282254 to your computer and use it in GitHub Desktop.
Simple walkthrough to configure local DNS on your Pi-hole instance.

How to Set up Local DNS

After 2 years of running Pi-hole on my RaspberryPI, I realized that I've been totally ignoring a massively beneficial (and easy-to-configure) feature that comes out of the box: Local DNS. Thankfully, I heard an episode of the Changelog Podcast that casually mentioned it, and it got me researching.

The setup is incredibly simple, and can be done entirely through the Pi-hole GUI. Thanks to Techno Tim for the great tutorial (see the section below for a link to the video).

  1. Log into your PiHole instance
  2. Click on the "Local DNS" navbar item on the left
  3. Select either "DNS Records" (for A records) or CNAME Records
  4. Create your entries

With those 4 little steps I made it so much easier to SSH to different servers on my home network, as well as make browser-based navigation to my various services a lot less painful.

Also, as a reminder, you can backup your entire Pi-hole setup via Settings > Teleporter > Backup.

Related Reading / Watching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment