<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Set Hostname on RHEL8/ Centos8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/set-hostname-on-rhel8-centos8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 17 Dec 2018 09:54:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>change hostname in RHEL8/Centos8</title>
		<link>https://www.osradar.com/change-hostname-in-rhel8-centos8/</link>
					<comments>https://www.osradar.com/change-hostname-in-rhel8-centos8/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sat, 15 Dec 2018 12:53:45 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Set Hostname on RHEL8/ Centos8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8420</guid>

					<description><![CDATA[<p>The Redhat 8 final will be relased soon ,the beta version is already  there and  ready for testing. i will show you in this tutorial how to change hostname in RHEL 8 or Centos8 Server or maybe a Work station. please  remember hostnames can contain letters digits hyphen and dot characters. and must contains between 2 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-hostname-in-rhel8-centos8/">change hostname in RHEL8/Centos8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The Redhat 8 final will be relased soon ,the beta version is already  there and  ready for testing. i will show you in this tutorial how to change hostname in RHEL 8 or Centos8 Server or maybe a Work station. please  remember hostnames can contain letters digits hyphen and dot characters. and must contains between 2 and 63 characters.</p>
<h3><strong>1-Set Hostname on RHEL8/ Centos8<br />
</strong></h3>
<p>In my case i want to change my hostnamen to osradar-rhel8.local.domain.  please do it the comand hostnamectl</p>
<pre class="">hostnamectl set-hostname osradar-rhel8.local.domain</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-8423" src="https://www.osradar.com/wp-content/uploads/2018/12/hostname.png" alt="" width="780" height="120" srcset="https://www.osradar.com/wp-content/uploads/2018/12/hostname.png 780w, https://www.osradar.com/wp-content/uploads/2018/12/hostname-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/hostname-768x118.png 768w" sizes="(max-width: 780px) 100vw, 780px" /></p>
<p><strong>1-1-Reboot The Server </strong></p>
<p>command reboot to  restart</p>
<pre class="">#reboot</pre>
<p><strong>1-2-check the new  hostname now</strong></p>
<pre class="">[root@osradar-rhel8 ~]# uname -a
Linux osradar-rhel8.local.domain 4.18.0-32.el8.x86_64 #1 SMP Sat Oct 27 19:26:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@osradar-rhel8 ~]# hostnamectl
   Static hostname: osradar-rhel8.local.domain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f64d8254a85c4fd1b37c6b4600c3eb8f
           Boot ID: a6a07a436ab747808485394f81e2bdaa
    Virtualization: oracle
  Operating System: Red Hat Enterprise Linux 8.0 Beta (Ootpa)
       CPE OS Name: cpe:/o:redhat:enterprise_linux:8.0:beta
            Kernel: Linux 4.18.0-32.el8.x86_64
      Architecture: x86-64
[root@osradar-rhel8 ~]# cat   /proc/sys/kernel/hostname
osradar-rhel8.local.domain
[root@osradar-rhel8 ~]# cat /etc/hostname
osradar-rhel8.local.domain
[root@osradar-rhel8 ~]#</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-8429" src="https://www.osradar.com/wp-content/uploads/2018/12/hostname12.png" alt="" width="887" height="246" srcset="https://www.osradar.com/wp-content/uploads/2018/12/hostname12.png 887w, https://www.osradar.com/wp-content/uploads/2018/12/hostname12-300x83.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/hostname12-768x213.png 768w" sizes="(max-width: 887px) 100vw, 887px" /></p>
<p>Option:  you can add the hostname to  /etc/hosts</p>
<pre class="">[root@osradar-rhel8 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.2.49 osradar-rhel8.local.domain
[root@osradar-rhel8 ~]# ping osradar-rhel8.local.domain
PING osradar-rhel8.local.domain (192.168.2.49) 56(84) bytes of data.
64 bytes from osradar-rhel8.local.domain (192.168.2.49): icmp_seq=1 ttl=64 time=0.052 ms
64 bytes from osradar-rhel8.local.domain (192.168.2.49): icmp_seq=2 ttl=64 time=0.073 ms
64 bytes from osradar-rhel8.local.domain (192.168.2.49): icmp_seq=3 ttl=64 time=0.071 ms
64 bytes from osradar-rhel8.local.domain (192.168.2.49): icmp_seq=4 ttl=64 time=0.074 ms
64 bytes from osradar-rhel8.local.domain (192.168.2.49): icmp_seq=5 ttl=64 time=0.075 ms

--- osradar-rhel8.local.domain ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 81ms
rtt min/avg/max/mdev = 0.052/0.069/0.075/0.008 ms
[root@osradar-rhel8 ~]#</pre>
<h3><strong>4-Change Hostname via nmtui  Tool </strong></h3>
<p>This option also easy for starters  to change the hostname using  nmtui tool</p>
<p>just  Type  nmtui</p>
<pre class="">nmtui</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-8531" src="https://www.osradar.com/wp-content/uploads/2018/12/nmtui11.png" alt="" width="714" height="395" srcset="https://www.osradar.com/wp-content/uploads/2018/12/nmtui11.png 714w, https://www.osradar.com/wp-content/uploads/2018/12/nmtui11-300x166.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/nmtui11-696x385.png 696w" sizes="(max-width: 714px) 100vw, 714px" /></p>
<p>Then Set system Hostname</p>
<p><img loading="lazy" class="alignnone size-full wp-image-8541" src="https://www.osradar.com/wp-content/uploads/2018/12/nmtui20.png" alt="" width="723" height="401" srcset="https://www.osradar.com/wp-content/uploads/2018/12/nmtui20.png 723w, https://www.osradar.com/wp-content/uploads/2018/12/nmtui20-300x166.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/nmtui20-696x385.png 696w" sizes="(max-width: 723px) 100vw, 723px" /></p>
<p>Quit and reboot your  System</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Please enjoy</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-hostname-in-rhel8-centos8/">change hostname in RHEL8/Centos8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/change-hostname-in-rhel8-centos8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
