Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 605 #631
i
i
i
i
i
i
i
i
25
Internet
Local DNS Server
Setting up a local DNS server, such as BIND9, makes sense even if the
server does not manage its own domain. It then simply acts as a caching-
only DNS and is also able to resolve DNS requests via the root name
servers without requiring any special configuration. If you enter the
local DNS server in the /etc/resolv.conf file with the IP address
127.0.0.1 for localhost, Squid should always find a valid name server
when it starts. For this to work, it is sufficient just to start the BIND server
after installing the corresponding package. Enter the name server of the
provider in the configuration file /etc/named.conf under forwarders
along with its IP address. However, if you have a firewall running, make
sure DNS requests can pass it.
25.3.5 The Configuration File /etc/squid/squid.conf
All Squid proxy server settings are made in the /etc/squid/squid.
conf file. To start Squid for the first time, no changes are necessary
in this file, but external clients are initially denied access. The proxy is
available for the localhost. The default port is 3128. The preinstalled
/etc/squid/squid.conf provides detailed information about the op-
tions and many examples. Nearly all entries begin with # (the lines are
commented) and the relevant specifications can be found at the end of the
line. The given values almost always correlate with the default values, so
removing the comment signs without changing any of the parameters ac-
tually has little effect in most cases. If possible, leave the sample as it is and
insert the options along with the modified parameters in the line below. In
this way, easily interpret the default values and the changes.
Note
Updating from Version 2.4 to Version 2.5
Following an update of Squid from version 2.4 to version 2.5, the
cache of Squid must be deleted, because the directory structure
changed.
Note
If you have updated from an earlier Squid version, it is recommended
to edit the new /etc/squid/squid.conf and only apply the changes
made in the previous file. If you try to implement the old squid.conf,
risk that the configuration no longer functions, because options are some-
times modified and new changes added.
605SUSE LINUX Enterprise Server