[Dnsmasq-discuss] DNSMASQ and configuring Win XP boxes to use a Proxy server

Simon Kelley simon at thekelleys.org.uk
Fri Oct 24 07:47:52 BST 2008


Philippe Faure wrote:
> Hello,
> 
> I was wondering is someone has managed to get Windows XP boxes setup so 
> that they would get proxy details from DNSMASQ? Any details would be 
> appreciated.
> 
> If someone has a suggestion on a better/easier way, I would be willing 
> to entertain the idea.

In /etc/dnsmasq.conf:

dhcp-option=252,"http://central/wpad.dat"




and then in <www-root>/wpad.dat:

function FindProxyForURL(url, host)
{
  if (isPlainHostName(host) ||
      isInNet(host, "192.168.0.0", "255.255.252.0"))
    return "DIRECT";
  else
    return "PROXY central:3128";
}


My http server and proxy is called "central".

HTH


Simon.



More information about the Dnsmasq-discuss mailing list