is there a Java version of the PHP function checkdnsrr?
is there a Java version of the PHP function checkdnsrr ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you just want any IP address you can use InetAddress (though the API doesn’t specify what types of hosts this will match):
You can then use getAddress() for the raw bytes of the IP address or getHostAddress() for a formatted String representation of the IP address.
If you are looking for a specific type of record (such as MX records) here is a snippet I found on this webpage