I think I’ve found a temporary solution:
I tried setting the server name to my domain in Settings/Identification, such as nas.example.com. After restarting Unraid, I was able to connect to smb://nas.example.com/ through Finder on macOS successfully.
Even so, I still don’t understand why I can’t connect via IP.
The same issue occurs on version 7.0.0-beta.2, where macOS is unable to connect to SMB either via domain name or IP.
Sep 19 13:46:51 SZC-UnraidNAS smbd[4181202]: [2024/09/19 13:46:51.383649, 0] ../../source3/smbd/msdfs.c:107(parse_dfs_path_strict)
Sep 19 13:46:51 SZC-UnraidNAS smbd[4181202]: parse_dfs_path_strict: can't parse hostname from path \100.64.0.18