Issue with the search domain on your MacOS BigSur system.
Issue with the search domain on your MacOS BigSur system.
Updating resolv.conf on macOS hasn't been officially approved, though it previously functioned. The system automatically creates the file when certain events occur (like booting or changing network settings), which might be causing your issue. This file mainly serves as a workaround for other POSIX implementations. For better results, consider using the DNS settings in System Preferences instead.
I started with the basic steps, but it still fails. Changed the search to Google in the interface. Tried pinging www, got an error: cannot resolve www: Unknown host. It seems Apple moved some DNS-related components to a compatibility layer. The core remains Unix-based, which is fine—I’m okay with improvements. As long as they don’t break or interfere with the Unix parts, I’ll stick with it. A fully supported modern Unix version is what makes me prefer using a Mac.
You can use a more recent approach instead of /etc/resolv.conf. Create files in /etc/resolver/ such as "example" (sudo nano /etc/resolver/example) with the text "search example.com". Then it will utilize those domains in that directory for all connections, regardless of whether the domain is listed in System Preferences. You can add as many as needed and it will search them in order until it resolves the DNS name.