I've never tried IPv6 on just two directly linked machines. I rely on dnsmasq on my router to correctly setup dns/hostname resolution on my network. I manually define the IPv4 addresses and hostnames via MAC address and usually (not always) IPv6 to local addresses will work. Some machines will always use IPv4 via DNS name (might be an Alpine/muscl thing and maybe it prioritizes A records over AAAA records :blobcatshrug:)