LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-24-2010, 04:20 AM   #1
farrukhndm
Member
 
Registered: Mar 2008
Location: Pakistan
Distribution: Fedora,Centos,RHEL
Posts: 75

Rep: Reputation: 15
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?
 
Old 03-24-2010, 05:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 03-24-2010, 05:29 AM   #3
farrukhndm
Member
 
Registered: Mar 2008
Location: Pakistan
Distribution: Fedora,Centos,RHEL
Posts: 75

Original Poster
Rep: Reputation: 15
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

Last edited by farrukhndm; 03-24-2010 at 05:32 AM.
 
Old 03-24-2010, 05:41 AM   #4
farrukhndm
Member
 
Registered: Mar 2008
Location: Pakistan
Distribution: Fedora,Centos,RHEL
Posts: 75

Original Poster
Rep: Reputation: 15
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.
 
Old 03-24-2010, 05:55 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
concept of fali over sqid server vap16oct1984 Linux - Server 3 06-26-2009 01:34 AM
ftp.tma.com name not resolving on second dns server.? cwc Fedora 0 03-22-2008 09:54 AM
Caching DNS server error (lame server resolving) Iggyboo Linux - Networking 1 02-24-2005 03:43 AM
Resolving DNS Queries, HTTP Server Configuration ASP Mandriva 2 12-23-2003 08:14 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration