bind interfaces only = yes
interfaces = localhost
Assume that, DNS Record localhost has to 2 IP addresses (127.0.0.1, ::1), which both have network interfaces on the computer.
Samba binds only to one of them and not to both.
This applies for all other DNS Names which have multiple records.
this parameter is about interfaces or IPs but not about DNS host names. DNS names with multiple A/AAAA records are not supposed to do what you want to do here.
Use the interface name instead of DNS names. For example use "eth0" or whatever instead of the host name. If this is not waht you want, then you have to specify the desired IPs manually.
For the special case of the loopback interface you might run into bug #12422 though.