Skip to content

House DNS

You'll run your own DNS resolver for the whole house on a Pi or an old laptop, give your devices real names, and see every lookup the house makes in one log.

About

Every device asks a DNS server where every site lives, so whoever runs that server sees everything and can name anything. Running your own means you can type printer.home instead of an address, watch what the TV talks to at 3am, and block what you like. Pi-hole, AdGuard Home and Unbound are all free and run on a fifteen-dollar Pi Zero or any old laptop. Pointing the router at a public filtering resolver takes a minute and is a fine start, but this badge is running the resolver yourself. The honest warning is that when your Pi dies, the whole house loses the internet, which is why the last requirement is a second one.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
One weekend
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Home Networking to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Install a resolver on something that's always on, with a fixed address. Pi-hole or AdGuard Home on a Pi Zero, an old laptop with the lid shut, or a container on the box you already run. Give it a DHCP reservation so its address never changes, because every device in the house is about to depend on it. Take a screenshot of the dashboard with the address visible. Photo
  2. 2
    Hand it out through DHCP so every device uses it without being touched. Set the DNS server field in the router's DHCP settings to the resolver's address. Devices pick it up when their lease renews, so reconnect a phone's Wi-Fi and check its DNS server in the network details. Take a screenshot of the DHCP settings and one of the phone showing the new resolver. Photo
  3. 3
    Give five devices local names and reach them by name. printer.home, nas.home, pi.home and so on. Use .home.arpa, .lan or .home rather than .local, because .local belongs to mDNS and the two fight. Take a screenshot of ping printer.home answering, and the list of local records. Photo
  4. 4
    Read a day of the query log and name the three noisiest devices. The TV will surprise you, and a cheap smart plug phones home every minute of its life. Sort the log by client and by domain. Take a screenshot of the top clients and top domains, with a sentence on what each of the three noisiest devices is actually saying. Photo
  5. 5
    Block one domain and watch it fail, then allow it again. Add a domain to the blocklist and load it from a phone on the house Wi-Fi. It should fail with a DNS error in seconds, not hang and time out, which is how you know it's the resolver doing it. Then remove the block and load it again. Film both. Video
  6. 6
    Add a second resolver so the house survives the first one dying, and test it by pulling the plug. A second Pi-hole on another box, or the router's own resolver as the second DNS entry in DHCP. Most devices fail over in seconds, a few take a minute, and anything with only one entry will hang forever. Unplug the primary and load a page from three devices. Film the page loading with the primary dark. Video