Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DNS problem  RSS feed

 
R Karthick
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
i tried to find the domain name for ip addresses using this code
String tmp = InetAddress.getByName(temp1.getAuthority()).getCanonicalHostName();
where temp1 gets ip address at run time.it works.but for some ip addresses it is not working
for example:
nslookup www.aircell.com gives 74.50.0.200 But
nslookup 74.50.0.200 gives sirona.lunarservers.com

anyone please tell me how to get the ip address of www.aircell.com
Note: Using java
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"one question", please check your private messages for an important administrative matter.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's tricky. A particular IP address may handle several domains. I don't think there's a way to find all of them, even when using DNS directly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!