Author Topic: [RESOLVED] Hostname resetting after network restart  (Read 2645 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
[RESOLVED] Hostname resetting after network restart
« on: February 20, 2017, 03:23:41 AM »
This happened when you have a public Cloud VPS. To fix this issue, just follow these steps:

1. Start, we need to set hostname
# hostname your_hostname
(it must be sub domain, for example  ns1.domain.com)


2. edit  /etc/sysconfig/network :
# nano /etc/sysconfig/network

change you hostname value accordingly
HOSTNAME=subdomain.yourdomain.com

3. Edit your hostss file
# nano /etc/hosts
127.0.0.1 subdomain.yourdomain.com
YOUR_SERVER_PUBLIC_IP subdomain.yourdomain.com

4. You need to add an A record to your sub domain, point to your server IP

5. Restart cwpsvr
# service cwpsrv restart
« Last Edit: February 20, 2017, 03:26:26 AM by locvfx »

Offline
*
Re: [RESOLVED] Hostname resetting after network restart
« Reply #1 on: July 30, 2018, 10:01:06 PM »
Thanks!

Dev, pls add this info to that page.
http://centos-webpanel.com/system-requirements