wood burning stoves
The moose likes Java in General and the fly likes Lookup Domain Name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Lookup Domain Name" Watch "Lookup Domain Name" New topic

Lookup Domain Name

Anne Drew

Joined: May 29, 2002
Posts: 6
How do I lookup a Domain Name to ensure that it exists?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
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)...
Consider Paul's rocket mass heater.
subject: Lookup Domain Name
jQuery in Action, 3rd edition