aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 24051
    
  13

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: 24051
    
  13

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.
 
I agree. Here's the link: http://jrebel.com/download
 
subject: How to get DNS IP Address
 
Similar Threads
response time
URL to IP
what is Domain Naming servers?
Editing URL of an Application
Unknown Host Exception