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

Philippe Faure philippe at faure.ca
Sat Oct 25 22:33:47 BST 2008


Thank you Simon,

Will give that a try.

Philippe


Quoting Simon Kelley <simon at thekelleys.org.uk>:

> 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