Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4084543

DNS lookup attempted even when proxy is being used behind firewall

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.1, 1.1.7, 1.2.2
    • core-libs
    • b36
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_nt


      ======================================================================

      Name: sg39081 Date: 10/07/97


      This is a refinement of a prior bug I filed on
      hotjava.

      Previously, I claimed that if you are
      behind a proxy firewall, and type
      "www.sun.com", it won't work. but if you type
      http:// in front of it, it will.

      This was an incorrect report of the actual bug.
      The actual bug seems to be:
      it will only connect to a site on the SECOND try,
      since it was started.

      You guys must be doing some bizzare unneccessary
      DNS checks the first time a site is contacted.
      In proxy mode, you should not be doing ANY DNS
      calls, other than to find the initial
      IP address of the HTTP proxy server.
      But I just verified that you are in fact
      incorrectly trying to use DNS the first time.

      This is a long-standing bug in hotjava, all the
      way from 1.0, through to 1.1beta2.
      Please fix it ASAP.
      ======================================================================
      Additional information from user:

      If you want to REALLY reproduce the problem, it will take some effort, but
      you could do the following:

      1. install basically ANY proxy http server ("squid", cern httpd..)
         on a machine that has direct access to the internet.

      2. take another machine, and
          -) disable DNS
          -) put an entry only for the proxy machine, in /etc/hosts
          -) config hotjava to use that proxy machine.

      You then should see the behaviour I described, although I have not checked
      specifically through those proxy servers.

      To be specific, we are behind a machine running the "TIS firewall toolkit",
      which is your basic http proxy software. The firewall is connected
      to the internet via a dedicated T1.
      But it is a TRUE firewall, in that it does NOT allow internex DNS resolution
      from behind the firewall.
      If you want outside access, you have to give the address to the http
      server, and let the firewall do it.

      Which is the problem, cause I think hotjava is doing DNS requests.
      naughty, naughty.
      ALL OTHER BROWSERS work fine through the firewall.

      I think you'd save some time by just having the appropriate engineer look
      at the code after seeing my coments.

      Your other option would be to give me the hotjava source code, and just
      let me fix it :-

      ======================================================================

      ###@###.### 1997-11-15 :

      On November 7, 1997, the originator of the above bug report (Phil) submitted
      a new report (incident 19877) to the same effect, but NOW for HotJava 1.1fcs
      (so, hopefully it will be looked at a.s.a.p.):

      I am much disappointed that you have STILL not fixed the long-standing
      proxy bug, in hotjava FCS 1.1

      Here it is AGAIN:
      Behind a true proxy firewall (one that does not pass DNS info),
      hotjava does not load a new site right away. Only after
      pressing the reload button does it load the page. From then on,
      it loads other pages from that site okay.

      EVERY OTHER BROWSER IN EXISTANCE (that supports proxies) works
      FINE behind our firewall, first time:

      Mosaic
      Netscape (2.0, 3.0, 4.0)
      Internet Explorer
      Lynx
      Chimera

      But NOT HOTJAVA!

      This bug has to be trivial to fix. I re-iterate my offer to fix it, if you
      give me source access.

      ===========================================================================

      mircea.oancea@canada 1998-04-09

      company - Toshiba , email - ###@###.###

      On JavaOS. Category: hotjava_views & hotjava_browser
      We set up proxy servers at these preferences page.
      (doc:/lib/ja/hotjava/preferences-proxies.html)
      We inputted URL and push RETURN key.
      However, browser(WebView) did not access proxy
      server directly. The browser access to
      NIS server and DNS server before access PROXY
      server.

            ywangsunw Yingxian Wang (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: