The Internet world is configured with different types of servers and services to provide the uninterrupted networking services. Particularly the Doamin Name Service (DNS), it simply translates the hostname into ip address and vice vers. DNS plays a major role in the naming service. In this article i ll show how to set up and configure the public DNS (Domain Name Service). Here i am using the free Public DNS addresses. There are lot of public DNS addresses are available such as Google Public DNS, OpenDNS, DNSAdvantage and more.
Configuring your system with public DNS is very simple. You need to edit a configuration file “resolv.conf“. This is the file used in various operating systems (especially in GNU/Linux) to configure the DNS resolver library. It is a plain-text file usually created by the network administrator or by applications that manage the configuration tasks of the system. The resolv.conf file typically contains directives with the IP addresses of nameservers available to a host.
The Configuration file is located at /etc/resolv.conf. Open the file and add the DNS entry as show in the screenshot ( Click here to see the list of DNS ip addresses )
Finally save close the file. Now restart any internet clients you are using. Dont forget to test the public DNS Configuration.
You can also set the public DNS using GUI. Follow the simple steps to set up the public DNS ( here i am using ubuntu distro. )
1. In the System menu, click Preferences, then click Network Connections.
2. Select the connection for which you want to configure Google Public DNS. For example:
- To change the settings for an Ethernet connection, select the Wired tab, then select your network interface in the list. It is usually called eth0.
- To change the settings for a wireless connection, select the Wireless tab, then select the appropriate wireless network.
3. Click Edit, and in the window that appears, select the IPv4 Settings or IPv6 Settings tab.
4. If the selected method is Automatic (DHCP), open the dropdown and select Automatic (DHCP) addresses only instead. If the method is set to something else, do not change it.
- For IPv4: 220.127.116.11 and/or 18.104.22.168.
- For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844
6. Click Apply to save the change. If you are prompted for a password or confirmation, type the password or provide confirmation.
7. Finally test that your setup is working correctly. Click here to test.