SOLVED The DNS address of the server cannot be found after installing cPanel

BeHost

Member
Apr 30, 2016
6
0
1
Belgium
cPanel Access Level
Root Administrator
Hi,

I just installed cPanel on a VPS, installation went fine, but when I try to access the WHM Panel I get the following error (chrome): DNS_PROBE_FINISHED_NXDOMAIN

I changed my hostname to s1.'mydomain'.com on my vps, do I need to do something where I registered the domain? I see some advanced DNS options but not really sure if I need to change them.

HOST RECORDS
DNSSEC
MAIL SETTINGS
PERSONAL DNS SERVER

The error is: ERR_NAME_RESOLUTION_FAILED
When I try to access WHM via the ip I get this error: ERR_CONNECTION_RESET
 
Last edited by a moderator:

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
You should probably looked for a managed host if you are having this issue too be honest =X as many many more obstacles await.

I would recommend registering your own private nameservers first, this is done at your registrar. Using your registrar's kb/docs find how to add private nameservers.

Register both:

ns1.domain.com
ns2.domain.com

to the IP of your server.

Then in WHM, create a new account for domain.com

Once created, go to "Edit a DNS Zone" and add 3 DNS (A) Records.

server
ns1
ns2

point them all to your server IP. Save.

Then back at your registrar, change the nameservers to domain.com to point to

ns1/ns2.domain.com

You can also use those same nameservers for any other domains you want to point to your server.

When I try to access WHM via the ip I get this error: ERR_CONNECTION_RESET
What is the URL in your address bar, you can hide the IP
 

BeHost

Member
Apr 30, 2016
6
0
1
Belgium
cPanel Access Level
Root Administrator
You should probably looked for a managed host if you are having this issue too be honest =X as many many more obstacles await.

I would recommend registering your own private nameservers first, this is done at your registrar. Using your registrar's kb/docs find how to add private nameservers.

Register both:

ns1.domain.com
ns2.domain.com

to the IP of your server.

Then in WHM, create a new account for domain.com

Once created, go to "Edit a DNS Zone" and add 3 DNS (A) Records.

server
ns1
ns2

point them all to your server IP. Save.

Then back at your registrar, change the nameservers to domain.com to point to

ns1/ns2.domain.com

You can also use those same nameservers for any other domains you want to point to your server.



What is the URL in your address bar, you can hide the IP
Thank you for your reply.

I have successfully registered the private nameservers.
I can not access WHM to create a new account, as the links in my browser aren't working, can this be done via the command line in centos 6?

http://198.--.--.---:2087

Also, what IP should I use for my custom DNS? The main ip adress or the 2 IP adresses in resolv.conf?
 
Last edited:

BeHost

Member
Apr 30, 2016
6
0
1
Belgium
cPanel Access Level
Root Administrator
Yes I can access cPanel via IP and hostname now; created a hosting package but the domain gives a dns not found error.
I added my DNS on the domain seller, do I need to use the main server IP or the IPS generated in cPanel?
Also I need to install these PHP extensions
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
But I cant find them and I cant use PHP version selector in cPanel because it's not showing up.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
I added my DNS on the domain seller, do I need to use the main server IP or the IPS generated in cPanel?
Use your main server IP for both nameservers.

If you want to PM me your domain I can check the DNS
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
Also I need to install these PHP extensions
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
In WHM click "EasyApache 4" and then click Customize, click Next until you get to the section "PHP Extensions", you will then be able to select the needed extensions.

But I cant find them and I cant use PHP version selector in cPanel because it's not showing up.
It should be called "MultiPHP Manager", you might be used to CloudLinux's PHP Selector on a different server.
 

BeHost

Member
Apr 30, 2016
6
0
1
Belgium
cPanel Access Level
Root Administrator
Thank you very much for the replies. I got the domain working! :)
In WHM click "EasyApache 4" and then click Customize, click Next until you get to the section "PHP Extensions", you will then be able to select the needed extensions.
I found almost all extensions but didnt find these: OpenSSL PHP & Tokenizer.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
New Jersey
cPanel Access Level
DataCenter Provider
Install the package:

php-common

tokenizer is in there.

OpenSSL is native so it will be already available.

You can check with SSH:

Code:
php -i | grep OpenSSL
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello @BeHost,

I'm happy to see the issue is now solved. Let us know if you have any additional questions.

Thank you.