Cannot resolve hostnames on local network after upgrading to macOS 12.6
Before upgrading to the macOS Monterey12.6, I used to be able to access other devices on my LAN by simply appending ".lan" to the hostname. For example if I have a Raspberry Pi on my LAN, I can ssh into it simply by opening Terminal and typing "ssh raspberrypi.lan". If I start a web server on the Raspberry Pi, I can see the web page by opening Safari and typing "http://raspberrypi.lan" into the search bar.
But now, after upgrading, that no longer seems to work. If I completely restart my mac, it will work for a while, but then stop a short time later. I know its not my router because I can still access devices this way on my Windows and Linux laptops... it even still works on my iPad.
Was there something in this update that makes macOS prefer IPv6 host names? Because if I open up a terminal and look up the hostname using `host` I get:
% host raspberrypi.lan
Host raspberrypi.lan not found: 3(NXDOMAIN)
But if I force it to use IPv4 I can get the hostname:
% host -4 raspberrypi.lan
raspberrypi.lan has address 192.168.86.36
Host raspberrypi.lan not found: 3(NXDOMAIN)
Host raspberrypi.lan not found: 3(NXDOMAIN)
Anybody have any idea on how to resolve this? Its not a show stopper by any means, but its really annoying as frequently need to access other devices on my network.
MacBook Pro 13″, 12.6