In this tutorial, we are going to see how to configure your network settings to use DNS servers of OpenDNS or Google instead of your local ISP DNS servers on Ubuntu 11.04.
1. Make a right-click on your network manager icon and select Edit Connections.
2. Under Wired, select your current wired connection and click Edit.
3. Open the IPv4 Settings tab, select Method: Automatic (DHCP) addresses only from the dropdown menu, then add one of the following DNS servers in the DNS servers field:
Google Public DNS: 126.96.36.199,188.8.131.52
Then click Save (root password required).
Note: IP addresses are separated by a comma.
To restart your wired connection, use this command from the Terminal (Ctrl+Alt+T):
sudo /etc/init.d/networking restart
Click then the network manager icon and select Connection Information to check if DNS servers are well applied: