Toggle navigation
Web Hosting Community Forum for Webmasters - Web hosting Forum
login
Home
Help
Search
Tags
Calendar
Login
Register
Web Hosting Community Forum for Webmasters - Web hosting Forum
Operating System
Linux
How to change Linux hostname permanently
« previous
next »
Pages: [
1
]
Go Down
Topic: How to change Linux hostname permanently (Read 1220 times)
Chris
Junior Guru
Posts: 77
iTrader: +0/-0
How to change Linux hostname permanently
«
on:
October 30, 2019, 05:02:15 PM »
I have changed my Linux server’s hostname using hostname command as follow:
hostname my-newhostname.com
But the problem is, whenever I reboot my server, it is reverting to old hostname again. How can I set permanent hostname?
Logged
Kailash
Web Hosting Master
Administrator
Posts: 660
iTrader: +153/-0
Re: How to change Linux hostname permanently
«
Reply #1 on:
October 30, 2019, 05:03:29 PM »
hostname command will not change your server’s hostname permanently. If you have latest Linux operating system (systemD based OS), you can do it using
hostnamectl
command. For complete details, you can refer our following blog post:
https://www.webhostingdiscussion.net/blog/how-to-set-or-change-hostname-in-linux/
Logged
█
Windows VPS - $7.99 - Windows 2012 / SmarterMail 12.x / SQL 2012 server
█
Web Hosting News
█
Web Hosting Blog
Pages: [
1
]
Go Up
« previous
next »
Tags:
Web Hosting Community Forum for Webmasters - Web hosting Forum
Operating System
Linux
How to change Linux hostname permanently