While looking into mdns for an IOT device I was making I discovered that on my home network if I typed in hostname.lan, chrome browser would resolve the address to the appropriate local device with that hostname. When I ran nmap to scan for local devices it would also provide this information in the output
Example:
$: nmap -p 80 192.168.0.100
Nmap scan report for hostname.lan (192.168.0.100)
Host is up (0.00031s latency).
PORT STATE SERVICE
80/tcp open HTTP
I like this feature, but I am annoyed because it randomly stops for days at a time.
At first, I assumed this was something my router was doing (a TP-link Archer C9) but I have not been able to find a place to enable or disable this setting, nor any documentation about it on the internet. Then I thought maybe it was a program running on a raspberrypi, but have not been able to turn it on and off with any programs from my RPIs. I've spent a lot of time spinning my wheels searching the internet for what program makes the .lan domain, will very little luck.
My question is, how do I figure out who is resolving these addresses. Or in the sad situation where this never returns, how do I setup a DNS server that automatically resolves hostnames to IP addresses on my LAN?