In most cases NetworkManager is used for configuring network interfaces.
I attached a file that should be placed
/etc/NetworkManager/dispatcher.d/ and this solves the issue.
Please remind that just reloading squid is no more sufficient (it was
till gusty gibbon, but later a restart is required).
You could also use a script in /etc/network/if-up.d/ to manage multiple
configurations.
** Attachment added: /etc/network/if-up.d/squid
http://launchpadlibrarian.net/50670345/squid
--
squid starts before resolv.conf is populated
https://bugs.launchpad.net/bugs/97513
You received this bug
Hey, adding the script I just attached to
/etc/NetworkManager/dispatcher.d/ seems to fix the issue, this way
network-manager reloads squid when he connects to a new network. The fix
is adapted from the one found here:
https://bugzilla.redhat.com/show_bug.cgi?id=453304
** Bug watch added: Red Hat
Yeah, this isn't just for roaming laptops, as Carlos noted this is a
problem even for desktop installations that use network-manager to get
DHCP from a wired interface.
I looked through the network-manager revision history, and found this:
network-manager (0.7.1~rc1-0ubuntu2) jaunty; urgency=low
Hi guys,
here my scenario: I have a local transparent squid and dansguardian for
content filtering issues working. I was not able to reproduce this bug
in Intrepid.
I started my Laptop and it worked. I established a VPN connection with
the Gnome Network manager and Squid reloaded automatically.
** Changed in: squid (Ubuntu)
Status: Incomplete = Confirmed
--
squid starts before resolv.conf is populated
https://bugs.launchpad.net/bugs/97513
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid in ubuntu.
--
I've done a fresh 8.10 desktop install and I have to restart squid every
time I boot the PC. Otherwise:
2008/11/06 12:49:34| Warning: Could not find any nameservers. Trying to use
localhost
2008/11/06 12:49:34| Please check your /etc/resolv.conf file
Is it possible to change the service
Thank you for taking the time to report this bug and helping to make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.
--
squid starts