Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alias name for ip

 
sarvan kumar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic