using dhcp or dns, implement wpad, download the proxy.pac and launch it
using dhcp or dns, implement wpad, download the proxy.pac and launch it