I have a Raspberry Pi 3 Model B Plus Rev 1.3
with Raspberry Pi OS Lite (64-Bit)
installed which is currently a port of Debian Bullseye.
I also have OpenWRT
installed on my router and have configured a few hostnames on it. For example, one is ipmi.local
mapped to 192.168.1.10
.
My router is configured to broadcast itself as the DNS for all clients to use. I believe this is default behavior anyway.
On my Windows machine I'm able to ping all of the hostnames I've configured by both domain name (i.e. ipmi.local
) and IP address.
From my Raspberry Pi, I can ping these devices by IP address, but not the domain name.
ping ipmi.local
returns ping: ipmi.local: Name or service not known
However, pinging external URLs works.
When I run cat /etc/resolv.conf
I see:
domain lan
nameserver 192.168.1.1
nameserver fdbd:de1e:aa69::1
which is the correct address of my router.
So, since my Raspberry Pi apparently has the correct DNS server set (my router), and my router has hostnames configured correctly, why are other devices able to ping these hostnames, but my Raspberry Pi cannot?