automatically detect IP for DNS records