Operating System & Version
CentOS 7
cPanel & WHM Version
90

imorandin

Member
PartnerNOC
Nov 20, 2014
17
1
53
cPanel Access Level
DataCenter Provider
Hi,

In cPanel v90 there is a new feature that automatically sets a hostname ending in .cprapid.com to the server so it can issue a SSL for it: Automatically-Issued Hostnames | cPanel & WHM Documentation.

We use automated cpanel deployment and this behavior breaks some things for us, not to mention that changing the hostname of the server without prompting is kind of aggressive.

Is there any way to disable this on setup?

Thanks,

Ignacio
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
The only way to prevent that from being automatically provisioned is to start with a hostname that resolves to the IP address of the server. So you could use a pre-installation script that sets the hostname of the server to a FQDN that resolves to the server. I checked our internal feature information for a potential way to disable this but I don't see one available.
 

jimmystack

Registered
May 30, 2019
2
0
1
London
cPanel Access Level
DataCenter Provider
This is a really crappy feature- there's no reason that cPanel should be overriding the hostnames of a server, especially not setting it a subdomain it has control over. Not only does it break things for us too, but there are security implications.

+1 for a way to disable it permenantly. Poorly thought through.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
It won't override a valid hostname of a server that resolves, nor is it meant to stay the hostname. You're free to change it at any time to a valid FQDN that resolves to the server. Can you elaborate on the security implications you're referencing here?
 

imorandin

Member
PartnerNOC
Nov 20, 2014
17
1
53
cPanel Access Level
DataCenter Provider
We use post-install scripts and the hostname does not resolve at installation time. Also it messes with our deployment system.
It would be nice to be able to disable at installation time with an argument.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,462
1,004
313
cPanel Access Level
Root Administrator
@imorandin - Thanks for the additional details. We do have a case in with our developers that is mentioned in this article:


so you can follow along there to see when that gets implemented, but I don't have a way to do this just yet.