Windows – Setup Windows DNS Server to redirect all requests on a specific machine in local LAN

domain-name-systemredirectwindows

I have a problem about prevent user to access internet (like watching www.yahoo.com) on local LAN

Currently I have a Windows Server 2008 R2 installed, and I already make a change to not allow user access to internet via the default gateway on router, however, I want to setting up the DNS server to redirect all requests to a single IP in my Local LAN, for example: if user try NS lookup that DNS server for "www.google.com" or "google.com", it will return the IP 192.168.1.1

How can I set up a Windows DNS to point ALL requests to itself?

Best Answer

Open the DNS managment. Set up a new Forward Lookup Zone for google.com and set a Host A record to 192.168.1.1. Also ensure all clients use the server as the DNS.