LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sqid resolving old DNS entries of my local mail server (https://www.linuxquestions.org/questions/linux-server-73/sqid-resolving-old-dns-entries-of-my-local-mail-server-797496/)

farrukhndm 03-24-2010 04:20 AM

Sqid resolving old DNS entries of my local mail server
 
i have change my mail server previous when i open my domain http://mail.mydomain.com it goes to http://mail.mail.mydomain/cgi-bin/op...webmail.pl.Now i have change my Mail server from openwebmail to Zimbra Server .so when i again open to it mail.mydomain.com ,proxy server takes to http://mail.NewZimbraMailServer/cgi-...openwebmail.pl.

If i bypass proxy server then it open mail.mydomain.com(My zimbra Page).i have also updated internal DNS addresss But Squid not updating it

How to update Squid DNS Entry ?
how to Update Squid Cache records?

bathory 03-24-2010 05:21 AM

Hi,

You can use PURGE to delete the cache entries of the offending URL. To do so, add:
Code:

acl PURGE method PURGE
http_access allow PURGE localhost
http_access deny PURGE

in squid.conf and reload configuration:
Code:

service squid reload
Then use:
Code:

squidclient -m PURGE http://mail.mydomain.com
squidclient -m PURGE http://mail.mydomain.com/cgi-bin/openwebmail/openwebmail.pl

to remove these entries from cache. You have to do it for every failing URL.
If squid listens on a port different than 3128 then add "-p <port-number>" in the above commands.

Regards

farrukhndm 03-24-2010 05:29 AM

Delete Cache of squid solved my porblem
 
Thnaks,bathory,

As before your reply came i have try other method of removing my cache directory.so it resolve it.
After erasing the Squid Cache Directories ,Squid has refresh its cache and now it going to my new mail server .
for help refreshing the squid Cache (flush)
http://www.labtestproject.com/linux_...ux_fedora.html

farrukhndm 03-24-2010 05:41 AM

how to bypass Squid server for specific url?
 
Bathory,

Please i have one more issue ,As my mail.mydomain.com is localy hosted with Ip Address eth0 192.168.1.12 & public address eth0:0 22x.10.xx.xx
I want to decrease load on my Squid to resolve every request against my mail.mydomain.com.

is there any Ip tables rules so when my clients request to specific website/mail.mydomain.com Through Proxy Server it directly move to 192.168.1.12 without processing by squid server ??

thanks and waiting.

bathory 03-24-2010 05:55 AM

Hi,

You can put in the hosts file (/etc/hosts) of the box running squid an entry:
Code:

192.168.1.12 mail.mydomain.com
so squid is not going to ask dns for resolving your mail server.
Or, (better solution if possible) setup a dns server using different views for internal and external hosts.

Btw my previous post was just for avoiding the downtime of the whole procedure to stop squid, delete cache, recreate it and restart squid

Regards


All times are GMT -5. The time now is 04:24 PM.