*
The moose likes General Computing and the fly likes Alias name for ip Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Alias name for ip" Watch "Alias name for ip" New topic
Author

Alias name for ip

sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
Hi,
Can anyone explain how to give alias name for an ip address

for example: xxx.xxx.x.xxx where it refers to IP address which have alias name as http://companyname/

Thanks in advance

Regards,
K.Saravanan
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
You'll need to do a DNS lookup to find the host name for a particular IP address. Note that more than one domain can be hosted on the same machine (particularly for smaller sites), so you may not get what you thought you'd be getting.

If you want to do this programmatically from Java code, check out the DNSJava library.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Alias name for ip
 
Similar Threads
Getting CommunicationException
Server Instructions...
problem - db2 database configuration in datasource
Tomcat 6 always uses default host in multi-host config
remote OSE