Hello,

I am trying to set up a Squid reverse proxy server in order to direct different 
web addresses to different servers.   The caching function is just an added 
bonus.

As I understand it, I need to use --disable-internal-dns build option to do 
this, and put the various host names in /etc/hosts.

This is an Ubuntu box and I've downloaded all of the packages necessary to 
build squid, and it does build correctly.   I added the --disable-internal-dns 
option into debian/rules, built binary packages, and installed them.

Output of squid -v:

Squid Cache: Version 2.6.STABLE18
configure options:  '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' 
'--sbindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' 
'--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid' 
'--enable-async-io' '--with-pthreads' 
'--enable-storeio=ufs,aufs,coss,diskd,null' '--enable-linux-netfilter' 
'--enable-arp-acl' '--enable-epoll' '--disable-internal-dns' 
'--enable-removal-policies=lru,heap' '--enable-snmp' '--enable-delay-pools' 
'--enable-htcp' '--enable-cache-digests' '--enable-underscores' 
'--enable-referer-log' '--enable-useragent-log' 
'--enable-auth=basic,digest,ntlm' '--enable-carp' 
'--enable-follow-x-forwarded-for' '--with-large-files' '--with-maxfd=65536' 
'i386-debian-linux' 'build_alias=i386-debian-linux' 
'host_alias=i386-debian-linux' 'target_alias=i386-debian-linux' 'CFLAGS=-Wall 
-g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='

The --disable-internal-dns option is listed.

However, when I try to run squid:

FATAL: cache_dns_program /usr/lib/squid/dnsserver: (2) No such file or directory
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.000 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted

I've tried to put in an empty script in that location to work around the issue 
but it doesn't work; here's the output from syslog:

Nov 19 22:47:32 vpn squid[22414]: Too few dnsserver processes are running
Nov 19 22:47:32 vpn squid[22414]: The dnsserver helpers are crashing too 
rapidly, need help!
Nov 19 22:47:32 vpn squid[22376]: Squid Parent: child process 22414 exited due 
to signal 6
Nov 19 22:47:32 vpn squid[22376]: Exiting due to repeated, frequent failures

So, the option is set and the compile doesn't build dnsserver, but squid is 
still looking for it and I don't know why.

Any ideas?   I'd love to get this up and running.  Squid 2.6's reverse proxy 
looks like it's going to be a lot easier to manage than older versions.





Reply via email to