Hello All,
For some reason my server's hostname is keep on changing.
Attached the file states the issue.
Changed the hostname by hostname commnad and later its going back to some strange hostname associated to the name of my ISP.
Please see the file.
This issue gives me trouble in my httpd settings as well.
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Warning: DocumentRoot [/var/www/html/complaints] does not exist
httpd: apr_sockaddr_info_get() failed for 237-132.io-global.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
Can anyone tell me how I can fix the hostname as I wanted and where exactly should go and edit things.
Regards
Cleetus
Hostname Issue
-
- Posts: 17
- Joined: 2017/11/22 05:13:39
Hostname Issue
- Attachments
-
- hostname.txt
- (735 Bytes) Downloaded 85 times
Re: Hostname Issue
Put the hostname in
/etc/hostname
You may also want to put an entry in
/etc/hosts
I you are running a webserver, perhaps set up DNS?
/etc/hostname
You may also want to put an entry in
/etc/hosts
I you are running a webserver, perhaps set up DNS?
-
- Posts: 17
- Joined: 2017/11/22 05:13:39
Re: Hostname Issue
Changed hostname by using hostname command and changed in /etc/hosts
Still the name changes
Still the name changes
Re: Hostname Issue
Put the hostname in
/etc/hostname
ie create this file if it doesn't exist.
Restart if needed.
/etc/hostname
ie create this file if it doesn't exist.
Restart if needed.