David Ghedini
Set Google Nameservers in resolv.conf on CentOS
This post will cover setting Google for your namesever resolvers in CentOS.
It's a simple task, but my OnApp does not set them for my CentOS templates for some reason.
If they have not been set, the first time you will likely notice is when you go to use yum and it throws PYCURL errors.
Log in as root via SSH and issue 'vi /etc/resolv.conf' to edit your resolv.conf file:
[root@david etc]# vi /etc/resolv.conf
If, like me, you have no nameserver resolvers set, you will see something like this:
# Automatically generated by OnApp (3.0.8) domain davidghedini.com ~ ~
Hit "i" for insert and add the Google Nameservers (8.8.8.8 and 8.8.4.4) as shown below, one per line:
# Automatically generated by OnApp (3.0.8) domain davidghedini.com nameserver 8.8.8.8 nameserver 8.8.4.4
Hit Escape and then ':wq' to save your changes
Posted at 04:52PM Jun 15, 2015 by David in Linux | Comments[0] | Tags: centos linux | Export to: |
