File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
Don't get me started about those stupid light bulbs.
 
subject: How to get DNS IP Address