Is there any java built-in to verify if a domain name is valid.
InetAddress() has some, but not the right one to be used on domain name.
Eg: getByName() fails to verify if sun.com is a valid domain name.
I am looking for both validating the allowable characters for the domaain and also making sure that the domain actually exists.
For the first part, I could use java.util.regex and validate, but how to ensure that the domain is reachable too.
[ August 10, 2005: Message edited by: amus manj ]
InetAddress() has some, but not the right one to be used on domain name.
Eg: getByName() fails to verify if sun.com is a valid domain name.
I am looking for both validating the allowable characters for the domaain and also making sure that the domain actually exists.
For the first part, I could use java.util.regex and validate, but how to ensure that the domain is reachable too.
[ August 10, 2005: Message edited by: amus manj ]