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: 68
Joined: Fri Feb 21, 2014 10:24 am

CentOS 7 Template - Missing DNS

Post by Bubka3 » Mon Dec 12, 2016 4:33 pm

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: 12359
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS 7 Template - Missing DNS

Post by Edge100x » Tue Dec 13, 2016 3:25 pm

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: 12359
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS 7 Template - Missing DNS

Post by Edge100x » Tue Dec 13, 2016 3:29 pm

I checked and /etc/resolv.conf is set up correctly. Did your file get wiped or replaced?

Bubka3
Compulsive poster
Compulsive poster
Posts: 68
Joined: Fri Feb 21, 2014 10:24 am

Re: CentOS 7 Template - Missing DNS

Post by Bubka3 » Tue Dec 13, 2016 7:52 pm

/etc/resolv.conf did not have any entries, just a bunch of comments.

User avatar
Edge100x
Founder
Founder
Posts: 12359
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS 7 Template - Missing DNS

Post by Edge100x » Wed Dec 14, 2016 1:43 am

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