how to get domain name server's IP

can somebody tell me how can i get the DNS' IP? is there a method that can get the ip of the dns?thanks in advance!
[130 byte] By [seablue1023a] at [2007-11-27 6:26:36]
# 1

Hi

Are you looking for something like this?

import java.net.InetAddress;

try {

System.err.println("IP: "+InetAddress.getLocalHost());

} catch (UnknownHostException e1) {

e1.printStackTrace();

}

Smilies all round

:) :) :) :)

Message was edited by:

monk3y

monk3ya at 2007-7-12 17:47:41 > top of Java-index,Core,Core APIs...
# 2
No, I think he wants the IP adress for the DNS that the application is using (on linux located in /etc/resolv.conf).
Elogaina at 2007-7-12 17:47:41 > top of Java-index,Core,Core APIs...
# 3
yeah, Elogain is right.is the an API that can get the IP of the DNS?
seablue1023a at 2007-7-12 17:47:41 > top of Java-index,Core,Core APIs...