convert,numeric,address,like,19913290,into,ho
Quick Search for:  in language:    
convert,numeric,address,like,19913290,into,ho
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Java/ Javascript Stats

 Code: 156,060 lines
 Jobs: 365 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Java/ Javascript.
Click here to see a screenshot of this code!Kohonen
By Marcelo Ivan Martin on 10/24

(Screen Shot)

Click here to see a screenshot of this code!New Ticker
By Aidan Dunbar on 10/24

(Screen Shot)

Click here to see a screenshot of this code!Click The ball game
By Sugi on 10/23

(Screen Shot)

Click here to see a screenshot of this code!Modified Horizontal Marqueue
By Sugi on 10/23

(Screen Shot)

Palindrome using linked stack and linked queue
By lostcauz on 10/23


Click here to see a screenshot of this code!A ( part2 ) Powerful Java Servlet & JDBC Code for Web Development
By James Smith Kelleher on 10/21

(Screen Shot)

Crack Javascript Source-Protecti on
By cool4best on 10/19


format date
By Sam Collett on 10/18


Click here to see a screenshot of this code!Applicant assessment
By SP Tang on 10/18

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Convert IP into hostname

Print
Email
 
VB icon
Submitted on: 6/22/1998
By:  
Level: Not Given
User Rating: By 101 Users
Compatibility:Java (JDK 1.1)

Users have accessed this code 10213 times.
 
 
     How do I convert a numeric IP address like 199.1.32.90 into a hostname like star.blackstar.com? Unfortunately due to an unintended side effect (i.e. a bug) in Java's caching of IP addresses and hostnames, Java 1.0 can't convert numeric IP addresses into hostnames. However this is straightforward in Java 1.1. For example, (Java FAQ:found on the web at:http://sunsite.unc.edu/javafaq/javafaq.html)
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

//**************************************
//     
// Name: Convert IP into hostname
// Description:How do I convert a numeri
//     c IP address like 199.1.32.90 into a hos
//     tname like star.blackstar.com?
Unfortunately due to an unintended side effect (i.e. a bug) in Java's caching of IP addresses and hostnames, Java 1.0 can't convert numeric IP addresses into hostnames. However this is straightforward in Java 1.1. For example,
(Java FAQ:found on the web at:http://sunsite.unc.edu/javafaq/javafaq.html)
// By: 
//**************************************
//     

String hostname = InetAddress.getByName("199.1.32.90").getHostName()


Other 77 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
3/30/2000 10:32:49 PM:Ovidiu Sodolea
k
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/24/2000 8:13:37 AM:dreamingweb
How do u view the host names/ ip 
addresses. E-Mail me at: 
webmaster@dreamingwebs.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Java/ Javascript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.