DNS

Google DNS Tutorial

Google DNS Tutorial
On 3 December 2009, Google announced its free alternative Domain Name System (DNS) service, Google Public DNS, which can be used by anyone as an alternative to other DNS providers. In this article, we explain why you should care about which DNS service you use, and we provide detailed instructions that explain how you can switch from your current DNS service to Google Public DNS.

What Is Domain Name System (DNS)?

The Domain Name System is often described as the Internet's phonebook. It is a hierarchical decentralized naming system whose primary role is to translate domain names to IP addresses. Without DNS, the only way how we could visit any website would be to enter its IP address directly into the address bar. DNS spares us this ordeal by providing a worldwide, distributed directory service, which has been a vital part of the Internet since 1985.

These days, there are many free and public DNS services that together handle hundreds of billions of requests every single day. Despite so much choice, most people are unaware which DNS service they use because virtually all modern electronic devices assign a DNS service automatically when they first connect to the Internet via DHCP (Dynamic Host Configuration Protocol), a network management protocol that dynamically assigns an IP address and other network configuration parameters to each device on a network.

Why Should I Change My DNS Settings?

But just because your computer or router has selected a DNS service for you, most likely one operated by your Internet Service Provider (ISP), doesn't mean that you have to keep using that service indefinitely. In fact, there are several compelling reasons to change your DNS settings.

How to Switch to Google Public DNS?

If we've convinced you that it's worth giving Google Public DNS a try, we have good news for you: switching from one DNS service to another is very easy and takes only a couple of minutes. But before you go ahead and change any settings, you should grab a piece of paper or open a notepad on your computer so you can note down your current settings for backup purposes. If anything goes wrong (don't worry because there's not much that can go wrong), or you decide that you like your old DNS service more, you can just retrace your steps and use the original settings.

Changing DNS Settings Using NetworkManager

NetworkManager is a daemon that sits on top of libudev and other Linux kernel interfaces and provides a high-level interface for the configuration of network interfaces in most modern Linux distributions as well as the ability to automatically connect to both wired and wireless networks.

To switch to Google Public DNS on Ubuntu using NetworkManager, go to System > Preferences > Network Connections.

Because every Linux distribution is slightly different, we cannot provide a single set of instructions that would cover all Linux users. If you're having trouble finding where DNS settings are configured on your distribution, use Google to look for a distribution-specific tutorial.

Changing DNS Settings by Editing the resolv.conf File

The resolv.conf file is used in various Linux distributions to configure DNS settings. This plain-text file is human-readable, and you don't need to be afraid to edit it-just don't forget to create a backup first so you can revert to it later if things don't work as they should.

To switch to Google Public DNS on a Debian server using the resolv.conf file, edit /etc/resolv.conf using your favorite text editor. Simply add the following two lines for IPv4:

And the following two lines for IPv6:

Then, save the settings and restart any Internet clients you are using. You may also optionally remove any other nameserver lines in the file to ensure that you use nothing but Google Public DNS, but it's advisable to leave at least one alternative nameserver as a backup.

How to change Left & Right mouse buttons on Windows 10 PC
It's quite a norm that all computer mouse devices are ergonomically designed for right-handed users. But there are mouse devices available which are s...
Emulate Mouse clicks by hovering using Clickless Mouse in Windows 10
Using a mouse or keyboard in the wrong posture of excessive usage can result in a lot of health issues, including strain, carpal tunnel syndrome, and ...
Add Mouse gestures to Windows 10 using these free tools
In recent years computers and operating systems have greatly evolved. There was a time when users had to use commands to navigate through file manager...