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

Posted on Sep 14, 2022 6:46 PM

Reply

Similar questions

3 replies

Sep 16, 2022 9:35 AM in response to unrave1ed

I it just happened sincethe upgrade I suspect an incompatible 3ed party thing.


We need to see what all is running, a report from this will not display any personal info...


EtreCheck is a FREE simple little diagnostic tool to display the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to help people help you with your Mac. It will not display any personal info.

https://www.etrecheck.com/


Pastebin is a good place to paste the whole report if you capture the URL while there…

https://pastebin.com/


Workable but harder for me to work with...the Note tool on the bottom of this editor's toolbar, as shown in the image, to copy and paste the output from EtreCheck. In a Reply before you click post, look for this to add longer texts...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot resolve hostnames on local network after upgrading to macOS 12.6

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.