[dns] Expose InternetAddress and Internet6Address