CentOS 7 Template - Missing DNS

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Bubka3
Compulsive poster
Compulsive poster
Posts: 70
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Feb 21, 2014 10:24 am

CentOS 7 Template - Missing DNS

Post by Bubka3 »

Just thought I'd drop a quick note for anyone, the CentOS 7 template on the VDS is missing DNS entries.
Make sure you set up those or you will run into many issues!

First open this file up (I like nano):

Code: Select all

nano /etc/sysconfig/network
Add these entries for google DNS:

Code: Select all

DNS1=8.8.8.8
DNS2=8.8.4.4
I like to reboot my VDS but you can restart the networking service if you want.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS 7 Template - Missing DNS

Post by Edge100x »

These should be included, and we tested them and they worked previously, so an update must have broken them, if so. I will investigate further and make sure it's resolved.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS 7 Template - Missing DNS

Post by Edge100x »

I checked and /etc/resolv.conf is set up correctly. Did your file get wiped or replaced?
Bubka3
Compulsive poster
Compulsive poster
Posts: 70
Joined: Fri Feb 21, 2014 10:24 am

Re: CentOS 7 Template - Missing DNS

Post by Bubka3 »

/etc/resolv.conf did not have any entries, just a bunch of comments.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS 7 Template - Missing DNS

Post by Edge100x »

It sounds like the OS must be overwriting it for some reason, even though it's not doing it on our template. I'll get it straightened out.
Post Reply