That's because a Mastodon module cannot handle the link-local IPv6 addresses at which the request comes in when the default /etc/nsswitch.conf "mymachines" name resolution is used. Instead, the user needs to add an IPv4 entry to /etc/hosts after https://gitlab.com/ubos/ubos-website/-/issues/7 is done.