{"id":1365,"date":"2011-09-15T22:15:36","date_gmt":"2011-09-15T14:15:36","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1365"},"modified":"2023-04-28T09:50:01","modified_gmt":"2023-04-28T09:50:01","slug":"how-to-change-the-hostname-on-centos-5-5-server","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-change-the-hostname-on-centos-5-5-server\/","title":{"rendered":"How to Change the Hostname on CentOS 5.5 Server"},"content":{"rendered":"<p>In this post, i will show you how to change the hostname on linux CentOS 5.5. Reboot is required for both steps.<\/p>\n<p><strong>Option 1. Change Hostname using command shell:<\/strong><\/p>\n<ol>\n<pre class=\"code\">\n[root@server ~]# vi \/etc\/sysconfig\/network\nNETWORKING=yes\nNETWORKING_IPV6=no\nHOSTNAME=server.intranet.local\n<\/pre>\n<\/ol>\n<p>Change the HOSTNAME=your_preferred_hostname<\/p>\n<p><strong>Option 2. Change Hostname using GUI<\/strong><br \/>\nType Setup as below and Press Enter<\/p>\n<ol>\n<pre class=\"code\">\n[root@server ~]# setup\n<\/pre>\n<\/ol>\n<p>Select Network Configuration &#8211;> Edit DNS Configuration &#8211;> Hostname<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, i will show you how to change the hostname on linux CentOS 5.5. Reboot is required for both steps. Option 1. Change Hostname using command shell: [root@server&#8230;<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[996],"tags":[1246,1273,1414,1418,1536],"class_list":["post-1365","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-centos-5-5","tag-change-your-computer-name","tag-hostname","tag-how-do-you-change-host-name","tag-linux"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=1365"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1365\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}