I'm looking for a command (or command line program) to toggle (disable/enable) internet access to the outside world in Windows XP machines. It should temporarily block internet access but leave the LAN working. 

I looked for ways to change the DNS, but browsers like Chrome keep their own cache.
The machines are configured via DHCP.