Earlier this week I posted how to setup a Pi-hole on your network. I discovered a problem with its local network name resolving. I have a more advanced home network. I have 3 separate virtual local networks (VLAN).
One of the things I noticed when reviewing the Pi-hole query logs was that it had the devices IP address and didn't list the devices name. This wasn't going to work for me. I have over 50 devices on my network. I really wanted to know which of my devices were talking to the network. I did some research and found the following solution to work.
You need to follow these steps to tell the Pi-hole which VLAN to look up the devices name.
server=/data/10.10.10.1 server=/local/10.10.99.1 server=/guests/10.10.30.1 server=/iot/10.10.20.1 server=/20.10.10.in-addr.arpa/10.10.20.1 server=/30.10.10.in-addr.arpa/10.10.30.1 server=/10.10.10.in-addr.arpa/10.10.10.1
The Pi-hole only takes a few seconds to reboot. Once it's restarted, you will start seeing the names resolve. The Pi-hole now knows based on the IP which VLAN to pull the device name from.
You're Query log will look like this. Note how it tacks on the VLAN identifier to the end of the devices name.