<?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>chanhe Hostname in FreeBSD 12 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/chanhe-hostname-in-freebsd-12/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 11 Dec 2018 10:01:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Set or change hostname in FreeBSD12</title>
		<link>https://www.osradar.com/set-or-change-hostname-in-freebsd12/</link>
					<comments>https://www.osradar.com/set-or-change-hostname-in-freebsd12/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Tue, 11 Dec 2018 10:01:05 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[chanhe Hostname in FreeBSD 12]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8265</guid>

					<description><![CDATA[<p>FreeBSD12 is just released , many people are interested to test it and maybe to run it on production Servers. let me show u in this small tutorial how to change or set new hostname on your machine and i will give this  example live from my server. Normally the command hostname will show you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-or-change-hostname-in-freebsd12/">Set or change hostname in FreeBSD12</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>FreeBSD12 is just released , many people are interested to test it and maybe to run it on production Servers. let me show u in this small tutorial how to change or set new hostname on your machine and i will give this  example live from my server.</p>
<p>Normally the command hostname will show you the answer</p>
<pre class="">hostname</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-8266" src="https://www.osradar.com/wp-content/uploads/2018/12/hostname22.png" alt="" width="370" height="51" srcset="https://www.osradar.com/wp-content/uploads/2018/12/hostname22.png 370w, https://www.osradar.com/wp-content/uploads/2018/12/hostname22-300x41.png 300w" sizes="(max-width: 370px) 100vw, 370px" /></p>
<p>i have no answer. because there is no hostname predefined</p>
<p><strong>1-Set new hostname in FreeBSSD12</strong></p>
<p>Set hostname  or change hostname</p>
<pre class="">#hostname FreeBSD12.osradar.local</pre>
<p><strong>2-Set Hostname  permanently in FreeBSD12</strong></p>
<p>Edit  /etc/rc.conf</p>
<p>Please add the hostname line to rc.conf file with the following command</p>
<pre class="">echo hostname="FreeBSD12.osradar.local" &gt;&gt; /etc/rc.conf</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-8271" src="https://www.osradar.com/wp-content/uploads/2018/12/rc-hostname.png" alt="" width="557" height="165" srcset="https://www.osradar.com/wp-content/uploads/2018/12/rc-hostname.png 557w, https://www.osradar.com/wp-content/uploads/2018/12/rc-hostname-300x89.png 300w" sizes="(max-width: 557px) 100vw, 557px" /></p>
<p><strong>2-2-Edit  /etc/hosts file</strong></p>
<p>change the old hostname 127.0.0.1  old-hostname to</p>
<p><img loading="lazy" class="alignnone size-full wp-image-8270" src="https://www.osradar.com/wp-content/uploads/2018/12/hosts.png" alt="" width="710" height="275" srcset="https://www.osradar.com/wp-content/uploads/2018/12/hosts.png 710w, https://www.osradar.com/wp-content/uploads/2018/12/hosts-300x116.png 300w" sizes="(max-width: 710px) 100vw, 710px" /></p>
<p>Please reboot and check with  hostname commands</p>
<pre class="">root@FreeBSD12:~ # hostname -f
FreeBSD12.osradar.local
root@FreeBSD12:~ # hostname -d
osradar.local
root@FreeBSD12:~ # hostname -s
FreeBSD12
root@FreeBSD12:~ #</pre>
<p>Your hostname settings are working fine now . Please enjoy!!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-or-change-hostname-in-freebsd12/">Set or change hostname in FreeBSD12</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/set-or-change-hostname-in-freebsd12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
