If I didn’t set the disc cache location for polipo the cache wouldn’t work. I got a 504 blah lookup failed: Timeout
/* Working config begin */
config ‘polipo’ ‘daemon’
option ‘daemonise’ ‘1’
option ‘pidFile’ ‘/var/run/polipo.pid’
config ‘polipo’ ‘general’
option ‘enabled’ ‘1’
option ‘proxyAddress’ ‘::’
option ‘dnsUseGethostbyname’ ‘false’
option ‘dnsNameServer’ ‘127.0.0.1’
list ‘allowedClients’ ‘172.16.0.0/12’
option ‘chunkHighMark’ ‘10485760’
option ‘logSyslog’ ‘1’
option ‘dnsQueryIPv6’ ‘happily’
config ‘polipo’ ‘cache’
option ‘cacheIsShared’ ‘1’
option ‘diskCacheRoot’ ‘/home/proxy’
config ‘polipo’ ‘pmm’
/* Working config end */
/* Broken config */
config ‘polipo’ ‘daemon’
option ‘daemonise’ ‘1’
option ‘pidFile’ ‘/var/run/polipo.pid’
config ‘polipo’ ‘general’
option ‘enabled’ ‘1’
option ‘proxyAddress’ ‘::’
option ‘dnsUseGethostbyname’ ‘false’
option ‘dnsNameServer’ ‘127.0.0.1’
list ‘allowedClients’ ‘172.16.0.0/12’
option ‘chunkHighMark’ ‘10485760’
option ‘logSyslog’ ‘1’
option ‘dnsQueryIPv6’ ‘happily’
config ‘polipo’ ‘cache’
option ‘cacheIsShared’ ‘1’
config ‘polipo’ ‘pmm’
/* Broken config end */
To make things simple when I change dnsUseGethostbyname variable to true the broken config works. And if I add the discCacheRoot variable it is broken again…