17 years ago
17 years ago


(Reporter: donguana, Unassigned)



Windows 2000

Firefox Tracking Flags

(Not tracked)




17 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826

If the ip address of a site changes, due to the hosts file being changed on the
local system, the browser does not use the new ip address until the browser is
closed and restarted.

Reproducible: Always

Steps to Reproduce:
The steps below are using the following lines within the hosts file on a W2k System.

# This is mozilla ip address going to
# This is netscape ip address going to

1 - uncomment the line with ip and save the hosts file.
2 - go to url (you should get the mozilla web site)
3 - now comment the line with ip
4 - uncomment the line with ip and save the host file.
5 - hit reload on the url going to 

Actual Results:  
You will still get the mozilla web page even if the ip for is
now pointing to the netscape site.

Expected Results:  
Expected that the cache would notice that the ip for the host has changed then
the cache would be void and it would reloaded from the new ip address.

1 - If I hit reload I would expect that the cache would be flushed. I beleive
the media cache(html/gif...) is flushed however the ip address/domain is still

2 - Even if I just continue browsing after step 5, it is still using the mozilla
ip address for domain. Now If I had not hit the reload then maybe I
can see it still getting the ip from the cache.

3 - I can get it to work if I shutdown and restart the browser between step 2 and 5

4 - I checked this with other browsers - Netscape 4.8 and IE 6 SP1 and they
behave the same way.

5 - you are probably wondering why would the ip address ever change?
  - We are developping a site using load balancing techniques where
can go to ip and 
  - For us to do testing, we would like to connect to the ip and
to make sure it works however if we go to we get 
    randomly thrown to one of these ip address. So we wanted to use the hosts
file to make sure that we go directly to a specified box. Now we have
    to restart our browser every time we want to go to another box.
This is not cache.. (and it's a dup).
Assignee: gordon → new-network-bugs
Component: Networking: Cache → Networking
QA Contact: tever → benc
Whiteboard: DUPEME

Comment 2

17 years ago
What is the dup - I can't find it.

Comment 3

17 years ago
We have an DNS (hostname->IP) cache. The records are currently permanent.

I will dupe this when I have a chance to gather up all the bugs.
Summary: IP Cache not being flushed on reload → DNS: IP address do not refresh

Comment 4

17 years ago
Please verify if you agree. REOPEN if you do not.

*** This bug has been marked as a duplicate of 162871 ***
Last Resolved: 17 years ago
Keywords: verifyme
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.