<?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>Sun Solaris System Admin &#187; hosts</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/hosts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>Fix: No hostname when using DHCP in Sun Solaris 8/9/10</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-no-hostname-when-using-dhcp-in-sun-solaris-8910</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 19:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[nodename]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/</guid>
		<description><![CDATA[If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command &#8220;hostname&#8221; is as follows: # hostname unknown or the /etc/hosts file <a href='http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><br />
If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command &#8220;hostname&#8221; is as follows:</p>
<blockquote><p><strong># hostname<br />
</strong>unknown</p>
<p>or the /etc/hosts file has an entry as follows:</p>
<p><strong># cat /etc/hosts<br />
</strong>#<br />
# Internet host table<br />
#<br />
127.0.0.1       localhost<br />
192.168.0.3     unknown # Added by DHCP</p></blockquote>
<p><span id="more-42"></span><br />
This happens when the DHCP server doesn&#8217;t provide a hostname for your server. Most of the DHCP Servers or routers acting as a DHCP Server doesn&#8217;t provide a hostname and Solaris DHCP agent relies on the DHCP server for its hostname.</p>
<p>To fix this problem, edit the dhcpagent config and set it not to request a Hostname from the DHCP server and then add a hostname to the /etc/hosts &amp; /etc/nodename file.</p>
<p><u><strong>Edit DHCPAGENT config</strong></u></p>
<p><strong><em>[For Solaris 10, this is not required as setting the hostname in /etc/nodename overrides the hostname provided by the DHCP Server. Move onto the next step]</em></strong></p>
<p>Edit the dhcpagent config file /etc/default/dhcpagent with your favorite editor</p>
<blockquote><p><strong># vi /etc/default/dhcpagent</strong></p>
<p>and look for</p>
<p>PARAM_REQUEST_LIST=1,3,6,12,15,28,43</p>
<p>and remove the Parameter &#8220;12&#8243; from the above to look as follows:</p>
<p>PARAM_REQUEST_LIST=1,3,6,15,28,43</p>
<p>and save the file.</p></blockquote>
<p>Now, add the hostname to the /etc/nodename &amp; /etc/hosts as follows</p>
<blockquote><p><strong># vi /etc/nodename</strong></p></blockquote>
<p>and add the hostname you want it to have (solarisserver for me)</p>
<blockquote><p><strong># cat /etc/nodename</strong><br />
solarisserver</p></blockquote>
<p>and edit the /etc/hosts file</p>
<blockquote><p><strong># vi /etc/hosts</strong></p></blockquote>
<p>and add the line similar to the following</p>
<blockquote><p><strong>192.168.0.3     solarisserver loghost</strong></p></blockquote>
<p>Now,reboot the server and you should be all fine with hostname set for the system.</p>
<p><strong># init 6</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>nscd caching daemon in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/general/nscd-caching-daemon-in-sun-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nscd-caching-daemon-in-sun-solaris</link>
		<comments>http://www.sunsolarisadmin.com/general/nscd-caching-daemon-in-sun-solaris/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 19:25:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[etc]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[NIS]]></category>
		<category><![CDATA[nscd]]></category>
		<category><![CDATA[nscd.conf]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/general/nscd-caching-daemon-in-sun-solaris/</guid>
		<description><![CDATA[The nscd daemon is a caching daemon in Sun Solaris. It provides caching services for hosts,passwd,group,ipnodes databases using various nameservice lookups like hosts file, DNS, NIS,NIS+ and more. Each cache has a separate time-to-live for its data and modifying the local database like /etc/hosts invalidates that cache within ten seconds. nscd doesn&#8217;t cache /etc/shadow (contains <a href='http://www.sunsolarisadmin.com/general/nscd-caching-daemon-in-sun-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<p>The nscd daemon is a caching daemon in Sun Solaris. It provides caching services for hosts,passwd,group,ipnodes databases using various nameservice lookups like hosts file, DNS, NIS,NIS+ and more. Each cache has a separate time-to-live for its data and modifying the local database like /etc/hosts invalidates that cache within ten seconds. nscd doesn&#8217;t cache /etc/shadow (contains encrypted passwords for /etc/passwd) file simple for security reasons as anyone would understand.</p>
<p>As nscd daemon provides caching service, it is necessary when you run a name service like DNS, NIS or NIS+ in your network. The configuration of nscd daemon can customised using the /etc/nscd.conf file and it is important more from a security point of view where you can control what is and how is cached on your solaris server.</p>
<p><span id="more-29"></span></p>
<p>A sample configuration looks like the following</p>
<blockquote><p>enable-cache          passwd no<br />
enable-cache          group no<br />
positive-time-to-live hosts 3600<br />
negative-time-to-live hosts 5<br />
suggested-size        hosts 211<br />
keep-hot-count        hosts 20<br />
old-data-ok           hosts no<br />
check-files           hosts yes</p></blockquote>
<p>Each line of the config file has an attribute and a value or an attribute, cachename and value</p>
<p><strong><u>Example:</u></strong></p>
<blockquote><p>attribute: enable-cache</p>
<p>cachename: group or passwd</p>
<p>Value: 3600 (time in seconds) or yes/no for to cache or not to cache.</p></blockquote>
<p><strong><u>Enable/Disable nscd caching</u></strong></p>
<p>However, if caching is not required, disable the service at start up by renaming the startup script</p>
<blockquote><p><strong>/etc/rc2.d/S76nscd</strong></p></blockquote>
<p>to</p>
<blockquote><p><strong>/etc/rc2.d/s76nscd</strong></p></blockquote>
<p>optionally, rename the kill scrips in /etc/rc1.d/, /etc/rcS.d/, /etc/rc0.d/ from</p>
<blockquote><p><strong>K40nscd</strong></p></blockquote>
<p>to</p>
<blockquote><p><strong>k40nscd</strong></p></blockquote>
<p><strong><u>Manually Start &amp; Stop nscd daemon</u></strong></p>
<p>To start &amp; stop nscd daemon manually:</p>
<p><strong><u>Start nscd</u></strong></p>
<blockquote><p><strong>solaris#/etc/init.d/nscd start</strong></p></blockquote>
<p><strong><u>Stop nscd</u></strong></p>
<blockquote><p><strong>solaris#/etc/init.d/nscd stop</strong></p></blockquote>
<p>For more information, please check the <a target="_blank" href="http://docs.sun.com/app/docs/doc/816-5174/nscd.conf-4?a=view" title="Sun Solaris nscd.conf man page">Sun man pages</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/general/nscd-caching-daemon-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

