Hello.
First change you main domain. Here are some examples on change domain or set another domain as default.
Sometimes, when installing and configuring a site, we try it on a test domain. Upon completion of al...
support.nic.ua
If that is done, go to the admin section as admin, and there under admin settings and change the hostname:
DirectAdmin Knowledge Base
docs.directadmin.com
Wait 1 or 2 minutes so the DA queue is ready.
In admin section as admin, delete the old DNS zone in DNS administration and create a new one with the new hostname.
Once that is done, be sure you set the hostname in the OS to. Also adjust the /etc/hosts file with the new domain name and maybe /etc/HOSTNAME file would also be good.
For Centos/Alma/Rocky you can use these commands as root via SSH:
Code:
hostnamectl set-hostname cp.somesite.net
hostnamectl
To be sure, reboot server.
At last, you might need a new SSL certificate for your new hostname:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single cp.somesite.net 4096
And you should be ready to go.