I recently upgraded to macOS Sierra and i cannot resolve my .local hostnames anymore.
I've tried restoring the httpd.conf and httpd-vhosts.conf files, but it didn't help.
I can however reach my webserver using the IP address, but not with the .local hostname. If i ping the IP, it works perfectly, but pinging the hostname gives "Unknown host". Running "host mymac.local" gives Host server.local not found: 3(NXDOMAIN).
I also tried setting the ComputerName, HostName and LocalHostName with the scutil.
Obviously reboot didn't help either.
Anyone experiencing the same issue or have any idea how this could be resolved? Thanks a lot, very appreciated!
Here's how: Mac: Open System Preferences, select Network, Advanced, and then click the DNS tab. Select any DNS servers listed, and then tap the - button to remove them and apply your changes.
Open system preferences and in Sharing enable one of the services.
I'm not sure why this works but I'm assuming it has to do with Bonjour name resolving that's only enabled if at least one of the services are started.
Alternatively add it to your /etc/hosts file.
Here is a solution that works for me on Mac OS Sierra.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With