This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to get DNS IP Address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to get DNS IP Address" Watch "How to get DNS IP Address" New topic
Author

How to get DNS IP Address

SP Nam
Ranch Hand

Joined: Oct 15, 2003
Posts: 41
How to get the DNS IP Address in Java without passing any parameters, code help please
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

How to get the "DNS IP address" for what? Without passing any parameters to what?


[Jess in Action][AskingGoodQuestions]
SP Nam
Ranch Hand

Joined: Oct 15, 2003
Posts: 41
command prompt, Like just running a java program thru command prompt I want to get the DNS IP addresses Preferred and Alternate DNS Servers.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Oh, OK. Java doesn't provide an API for this, and there's no OS-independent way to get the information. Consult the documentation for your operating system.
 
 
subject: How to get DNS IP Address
 
Similar Threads
Unknown Host Exception
what is Domain Naming servers?
URL to IP
response time
Editing URL of an Application