This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

http proxy caching

I just hit an interesting problem.  I have been making some changes to my dns for one of my sites.  I noticed that even they had propagated to my own dns server my workstation was not getting the updates.  The internal AD server was..aka if i surfed to mail.hescominsoon.com i got the NEW site on the server(gmail page) but the old site on my workstation(it's actually to another domain i own not even hescominsoon.com).  I knew the problem has to be internal.

I cleared the caches in all 3 browsers, in local dns cache and in server cache.  NO change.  After doing detailed dns lookups i figured out the only thing left...the astaro box.  I could not figure out where the stuck dns entries were.  I have Astaro's dns pointing back to AD so that wasn't it....Finally after some digging i decided to take a WAG.  i disabled the http proxy.  Instantly all of the stale dns issue went away.  I then turn the proxy back on and the stale dns entries were there.  I have all caching turned off...

here's what the log says:
2010:03:07-12:24:17 hescominsoon httpproxy[29000]: id="0001" severity="info" sys="SecureWeb" sub="http" name="http access" action="pass" method="GET" srcip="192.168.255.15" user="" statuscode="200" cached="0" profile="REF_DefaultHTTPProfile (Default Proxy)" filteraction="REF_DefaultHTTPCFFAction (Default content filter action)" size="13850" time="738 ms" request="0x89159e0" url="mail.hescominsoon.com/.../html"


I am at a loss.  Any ideas?


This thread was automatically locked due to age.
  • I have noticed that even with caching turned off the cache size goes up from the initial 17meg at startup. I don't know the reason but I never thought it was caching dns requests. Can you check your cache size by any chance just to see. This would be significant if it is indeed caching hostnames for speeding things up while caching is disabled.
  • I have noticed that even with caching turned off the cache size goes up from the initial 17meg at startup. I don't know the reason but I never thought it was caching dns requests. Can you check your cache size by any chance just to see. This would be significant if it is indeed caching hostnames for speeding things up while caching is disabled.


    Not sure of a way to do that..I was just reporting on what my experience was..[:)]

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Try du -ch /var/storage/chroot-http/var/httpcache |grep total on console
    I don't have access to the old version right now so don't know if the above is valid. But the cache directory should be in /var/chroot-http/. I am sure a command line guru like you can take it from there[;)] Unless you have cleared the cache and then the whole exercise is pointless.
  • yes i cleared the caches from inside webadmin....but it still had the old dns somewhere.  Just don't know where...unless it had it stored in the dns proxy..which is redirected back to AD?

    *UPDATE* well if i turn on the proxy i STILL can't get to the new site addresses.  

    AHA found it.  the Astaro dns proxy IS caching dns even though it's not really being used.  I flushed it's cache again(i must have missed it the first time) and things are back to normal.  Feature request time..if you are routing dns back to an external DNS server Astaro should NOT cache.,.or you should have the option to NOT use the obaord proxy at all.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • *further update* ok i have removed all networks form the allowed networks..this should remove Astaro from the dns chain.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  •  Feature request time..if you are routing dns back to an external DNS server Astaro should NOT cache.,.or you should have the option to NOT use the obaord proxy at all.


    You might find this from 7.5 beta testing interesting...


    https://community.sophos.com/products/unified-threat-management/astaroorg/f/98/t/68019
  • flushing the cache didn't clear out the stale entries..until i removed all of my networks form the allowed networks section and THEN restarted....

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow