DNS issue in Java - Need help

Barry Margolin barmar at alum.mit.edu
Fri May 28 21:03:35 UTC 2004


In article <c981i9$oca$1 at sf1.isc.org>,
 elr_arunkumar at yahoo.co.in (Arunkumar) wrote:

> hi 
>  We are having our network built on DNS server.let us assume DNS entry
> for one of the PC is removed where the application (server) is
> running.Im trying to connect the client from another PC(windows) by
> giving ip address(say http://192.x.y.z:9090),the client hangs and the
> process is very very slow.I want to know whether "providing the DNS
> entry of the server PC (where application is running) in DNS server"
> is the only possible solution??
>  My application is based on Java.When the same kind of application
> built in C is connected i dont see any issue connecting from windows
> PC.Is this a known issue in Java?? When i calculated the time taken
> for the foll process,in windows it takes around 4 sec,but in linux it
> takes around 40 ms only.
>   "InetAddress.getByName(ipaddress)).getHostName()"
>  Any help would be appreciated

The only reason a web server is likely to require you to connect by name 
rather than address is if it implements name-based virtual hosts.  But 
even then, connecting by address usually returns a default page.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


More information about the bind-users mailing list