If you add an IPv6 address using the static-host-mapping feature, it gets added to the /etc/hosts file but unlike IPv4, it doesn't resolve via the local DNS server:
show system static-host-mapping
host-name router-lan.example.org {
inet 10.108.65.1
inet 2001:8b0:108:65::1
}On local machine:
% host -t A router-lan.example.org router-lan.example.org has address 10.108.65.1 % host -t AAAA router-lan.example.org router-lan.example.org has no AAAA record
Just tested using 2025.04.19-0018-rolling.