Hi WilliamDaveo,
You are very close to the correct conclusion, but the technical "why" is slightly different.
To answer your specific question: No, system components do not "fallback" to the user-level configuration. However, Yes, they will go direct to the Internet.
Here is exactly what happens when you remove the wpad DNS record: The WinHTTP Web Proxy Auto-Discovery Service attempts to find the PAC file via DHCP (Option 252) and then DNS (wpad.yourdomain.it). Since you disabled DHCP and removed the DNS record, both attempts will fail (timeout or "Name Not Resolved"). When the auto-discovery process fails to find a PAC file, the WinHTTP stack does not look at the logged-in user's settings (the "User-level" config). Instead, it reverts to its own default state. The default state for WinHTTP (when netsh is empty and WPAD fails) is Direct Access. The traffic is simply handed to the TCP/IP stack to be routed out via the Default Gateway.
So, the result is exactly what you want, the traffic goes directly to the Internet, but it does so because "Direct" is the fail-safe default, not because it is reading your user's "OFF" settings.
Simply deleting the DNS record might not stop the proxy traffic immediately due to caching. You need to perform these specific steps to ensure the clients realize the WPAD file is gone:
- Remove the DNS Record: Delete the A or CNAME record for
wpadon your internal DNS servers. - Flush DNS on Clients: Run
ipconfig /flushdnson the client. - Restart the WinHTTP Service (Reboot recommended): The WinHTTP AutoProxy service caches the result of the discovery process (even the success of finding the WPAD file). It will not query DNS again until its internal Time-To-Live (TTL) expires or the network state changes. Immediate Test: To test without rebooting, you can restart the "IP Helper" service and the "Network Location Awareness" service, but a full reboot is the only way to guarantee the
WinHttpAutoProxySvcclears its memory.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer then. Should you have more questions, feel free to leave a message. Have a nice day!
VPHAN