[Dnsmasq-discuss] using squid with dnsmasq and hosts file
Simon Kelley
simon at thekelleys.org.uk
Wed Jul 30 13:08:34 BST 2008
sbolic wrote:
> Hi,
> I am a new user of dnsmasq using squid on my network. dnsmasq with
> dhcp works fine and I need help to config dhcp to send proxy parameters
> to clients to force them to use squid.
> Can you help me with this or just post your dnsmasq.conf file.
> Thanks forward
> SBolic
>
The keyword to Google for this is "wpad". Wpad can work via DHCP and
via DNS. In my experience, the DHCP variant is implemented in Windows,
but not Linux.
The line I have in dnsmasq.conf looks like this:
dhcp-option=252,"http://central/wpad.dat"
which points the browser at a file on my web server which looks like this:
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
isInNet(host, "192.168.0.0", "255.255.252.0"))
return "DIRECT";
else
return "PROXY central:3128";
}
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list