Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

Cannot change server hostname

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
nightm4r3
Posts: 2
Joined: Fri Oct 10, 2014 3:35 am

Cannot change server hostname
  • Quote

Post by nightm4r3 » Sun Jun 16, 2019 7:16 pm

Cannot change hostname
VestaCp> Server> Configure> Hostname> Save
I'm changing the hostname by saying, and it is seen correctly when I check it via ssh.
When I restart the server, the old hostname is returned.
How do I change the hostname permanently.
Server -> DigitalOcean Centos7.5x64

Thanks
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Cannot change server hostname
  • Quote

Post by skamasle » Tue Jun 18, 2019 1:09 pm

Virtual enviroment may can change hostname in reboot

Ask digitalocean, maybe you need change hostname in your digitalocean panel before reboot
Top

Wibols
Posts: 21
Joined: Tue Jun 25, 2019 7:42 pm

Os: CentOS 6x
Web: apache + nginx
Re: Cannot change server hostname
  • Quote

Post by Wibols » Sat Jul 06, 2019 8:02 am

Try:

Code: Select all

sudo hostnamectl set-hostname host.domain.tld
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password