Today we’ll go over how to change the DNS on your home computer, this has a few benefits:
- If your ISP caches you when you , this will bypass that
- If your ISP has one of those search redirection pages, this will disable that
- Your overall browsing experience can be faster, and more secure (results will vary between the below providers)
- DNS propagation can be bypassed by using a 3rd party DNS for your local PC or network
We’re going to use google’s dns for this guide, however you can use any of these public providers:
To change DNS on Windows 7/8, there are two ways.
First, we’ll use the GUI.
- From the desktop, press the Windows Key on the keyboard plus R at the same time. This will open the run dialogue.
- Type in “ncpa.cpl” without the quotations, and select okay.
- Locate the icon for “Local Area Connection” if you use an Ethernet (cable) connection, and “Wireless Network Connection” (Win7) or “Wi-Fi”
- Right click on the icon, and select “Properties” from the menu.
- In the properties window, in the box marked “This connection uses the following items:”, find “Internet Protocol Version 4 (TCP/IPv4)”and select it, so that it is highlighted, then click the Properties button below it.
- In the box, go down to the second set of options, and select “Use the following DNS server addresses:”. Then add 220.127.116.11 as the Preferred DNS Server and 18.104.22.168 as the Alternate.
- Select OK.
Or to do it via command line.
- Open An Elevated Command Prompt
Go to your start button, and in the window labeled “Search programs and files” at the bottom, type in “CMD”. At the top, you’ll see an icon labeled “cmd.exe”. Right click that, and select “Run as Administrator”.
- At the prompt, type in “netsh” (minus quotes) and hit enter. Your prompt will change to say “netsh>” to let you know you’re in the correct prompt.
- At the netsh prompt, type in “interface ip set dns “Local Area Connection” (OR “Wireless Network Connection” (Windows 7) or “Wi-Fi Connection” (Windows 8) static 22.214.171.124” and hit enter.
For Macs, like PCs, there are two ways. We’ll start with the GUI approach.
- Go to the Apple Menu in the upper left corner and select “System Preferences”.
- Select the “Network” preferences from the “Internet and Wireless” row.
- Select the service you wish to change from the column on the left hand side. Choose “Ethernet” for LAN cable or “Airport” (10.5 and 10.6) / “Wi-Fi” (10.7+) for Wireless Connections.Mac 10.4: Select the “Configure” button at the bottom.
Mac 10.5 and Above: Select the “Advanced” button in the lower right corner.
- Select the tab marked “DNS”
- Select any entries in the box on the left and click the minus button at the bottom.
- Once the box is empty, click the plus sign and type in 126.96.36.199 and hit Enter.
- Click the plus sign again and type in 188.8.131.52 and hit Enter.
Now for command line (terminal).
- Open up terminal (from your applications folder).
- Run “networksetup listallnetworkservices” from the command line. You’ll receive a list like this.
- Now you can configure DNS for the appropriate network interface. Again, I’ll use my Ethernet connection. To change the DNS servers use the following command:
On Linux the DNS servers the system uses for name resolution are defined in the file,
/etc/resolv.conf (Spelled just like that, with no e).
You can open it in your favorite text editor. Just remember to use sudo when calling it:
sudo nano /etc/resolv.conf
Then in the editor, add the following lines:
Then just save the file and you’re good. No reboot necessary.