Two digital ocean nodes running elixir won't connect

When you ask your internal DNS, will the longnames resolve to IPv6 or IPv4 Addresses, or are you using IPs directly in the longnames?