Solved

gethostbyname()

Posted on 1998-12-14
2
365 Views
Last Modified: 2006-11-17
JDK 1.2, NT4.0 development platform, NT4.0 target platform

I need a JAVA code fragment to perform a gethostbyname() call.

Thank you in advance.
0
Comment
Question by:august97
2 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 100 total points
ID: 1229504
Is there something insufficient with the getByName method in the InetAddress class in the net package:

public static synchronized InetAddress getByName(String host) throws UnknownHostException;

0
 

Author Comment

by:august97
ID: 1229505
Thank you!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 45
Java - Why doesn't this JFrame work 3 59
eclipse argument 14 61
servlet requestdispatcher include and forward differences 1 32
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question