Squid does not reload when DNS settings change

Bug #369133 reported by Tobias Krais
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
squid (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: squid

I use squid as a local transparent proxy. Since Jaunty, squid does not reload when network settings change. E.g. I boot my machine and have to do a /etc/init.d/reload after I logged in and my network connection is established. Otherwise I am not able to access internet.

As a dirty workaround I disabled squid internal DNS by adding the line
-----%<-----
dns_nameservers 192.168.1.1
-----%<-----
to my squid.conf. Now I have a default nameserver and I am able to access internet after booting. But its a bad hack. Sometimes I want to use other networks with other nameservers and I have to change my settings.

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 369133] [NEW] Squid does not reload when DNS settings change

On Wed, Apr 29, 2009 at 09:43:31AM -0000, Tobias Krais wrote:
> Public bug reported:
>
> Binary package hint: squid
>
> I use squid as a local transparent proxy. Since Jaunty, squid does not
> reload when network settings change. E.g. I boot my machine and have to
> do a /etc/init.d/reload after I logged in and my network connection is
> established. Otherwise I am not able to access internet.

Thank you for taking the time to report this bug and helping to make
Ubuntu better. Could you describe your network configuration? Are you
using network manager in system mode or session mode? Are you using the
/etc/network/interfaces file instead?

  status incomplete

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in squid (Ubuntu):
status: New → Incomplete
Revision history for this message
Tobias Krais (tux-spam) wrote :

Hi Mathias,

I use the network manager in session mode. I don't use my /etc/network/interfaces. There is just the loopback device in it as adviced. Do you need more information?

Thanks for the fast response!

Greetings, Tobias

Revision history for this message
Tobias Krais (tux-spam) wrote :

Hi again,

I found a solution: I had to delete the squid cache and to rebuild it with squid -z. Now it is working without the described workaround.

Sorry for taking your precious time. I was working on it for days and no mailing list was able to help. But some hours after sumbitting the bug, someone gave me the hint.

Greetings, Tobias

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 369133] Re: Squid does not reload when DNS settings change

On Wed, Apr 29, 2009 at 07:04:02PM -0000, Tobias Krais wrote:
>
> I found a solution: I had to delete the squid cache and to rebuild it
> with squid -z. Now it is working without the described workaround.

  status invalid

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in squid (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Jean-Pierre FORCIOLI (jeanpierre-forcioli) wrote :

I solved my problem by:

1. adding "dns_nameservers 192.168.1.1" into file "/etc/squid/squid.conf"
2. adding "-D" flag to file /etc/init/squid.conf

script
 if [ -f /etc/default/squid ]; then
  . /etc/default/squid
 fi

 exec /usr/sbin/squid -D $SQUID_ARGS
end script

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.