Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lookup Domain Name

 
Anne Drew
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I lookup a Domain Name to ensure that it exists?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to get IP address using java.net package...
if u find one then the domain is there else not.
this would only work if u have the url having full host name (not just like .abc.com but u shd have www.abc.com)...
regards
maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic