Use DNS variable for ipv4 and ipv6