[689] in java-interest

home help back first fref pref prev next nref lref last post

DNSHost

daemon@ATHENA.MIT.EDU (Francois BOUSSARD)
Thu Jul 13 11:53:18 1995

Date: Thu, 13 Jul 1995 16:24:20 +0200
From: Francois BOUSSARD <francois@coplanet.fr>
To: java-interest@java.sun.com

	Hi !

	I tryed to obtain InetAdress of some hosts :
	for hosts in this sub-network :
		InetAddress.getByName(host_name); runs well

	for remote internet hosts, you need the name of DNS :

 InetAddress.getByName("java.sun.com",InetAddress.getByName(DNSName));


	Runs well IF I configure in /etc/hosts a explicit name for my 
DNS-router !

	So, how can we obtain via JAVA, the DNS-name by plateform-independant
way ?

	Thanks, see you soon.

    

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post