Hi I like to retire the domain use for the hostname in my hestia setup. This hostname domain is not used for anything else and I like to stop paying for it.
How can I safely change the hostname? ChatGPT suggests:
hostnamectl set-hostname new.hostname.com
Update the /etc/hosts
file.
v-change-sys-hostname new.hostname.com
systemctl restart hestia
rm -rf /usr/local/hestia/ssl/*
v-add-letsencrypt-host
Lastly, update PTR record (reverse DNS) to match the new hostname for email deliverability.
Are these the correct steps to take?
1 Like
Hi @danderzei
You only need to do these steps:
v-change-sys-hostname new.hostname.com
v-add-letsencrypt-host
Lastly, update PTR record (reverse DNS) to match the new hostname for email deliverability.
hostnamectl
and editing the hosts
file are already handled by v-change-sys-hostname
. Additionally, there is no need to remove SSL files, as doing so could cause hestia-nginx to fail to start.
2 Likes
Great, that is much more straightforward.
2 Likes
Just used these steps. In the letsencrypt bit, I get an error:
Error: Unable to add hestia.prevos.net. prevos.net belongs to a different user
Error: web domain hestia.prevos.net doesn't exist
I indeed use prevos.net
as a web service. hestia.prevos.net
exists but is not registered. Should I register it as admin?
1 Like
Two options:
Option 1
Remove web domain hestia.prevos.net
from the current admin user and add it to the user that has main domain prevos.net
Option 2
Remove the policy that enforces subdomain ownership.
v-change-sys-config-value ENFORCE_SUBDOMAIN_OWNERSHIP no
2 Likes