how to find whether a string contains HOST NAME or IP ADDRESS
807605Aug 9 2007 — edited Aug 9 2007hello all,
i have one input variable as a String.
if it is IP Address then i have to find HOSTNAME.
if it is HOSTNAME then i have to find IP Address.
i can use java.net.InetAddress API for getting IP or HOST only after knowing whether the input is HOST or IP.
any body please help in finding the input is IP or HOST
Regards
R