<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: hostname length restriction in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143752#M537573</link>
    <description>&lt;!--!*#--&gt;Hi David ,&lt;BR /&gt;&lt;BR /&gt;You are right, the limitation is there.&lt;BR /&gt;&lt;BR /&gt;If harderning has been done , The hostname display limits to 8 characters.&lt;BR /&gt;&lt;BR /&gt;Correct me If Iam wrong.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Analyst.</description>
    <pubDate>Sun, 30 Nov 2008 02:52:41 GMT</pubDate>
    <dc:creator>Analyst</dc:creator>
    <dc:date>2008-11-30T02:52:41Z</dc:date>
    <item>
      <title>hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143751#M537572</link>
      <description>I thought I understood this (after researching here on ITRC).... but then....&lt;BR /&gt;&lt;BR /&gt;On this system (an Integrity VM running 11i v3), the name of the host is 10 characters long.  The command "hostname" returns the correct result, which can also be found in /etc/hosts, /etc/rc.config.d/netconf, and sendmail.cw.&lt;BR /&gt;&lt;BR /&gt;However, uname -n (as well as machinfo) returns an 8-character name - which apparently is because uname was only designed to handle eight chars.&lt;BR /&gt;&lt;BR /&gt;This is in spite of the fact that this system is an Integrity Virtual Machine (IVM) running 11i v3 on an rx6600 host also running 11i v3.  The documentation for 11i v3 suggests that names up to 256 chars are valid, but /usr/include/sys/utsname.h suggests that the name length restriction could be *either* 256 chars *OR* 8 chars, depending on how things fly....&lt;BR /&gt;&lt;BR /&gt;Using set_parms to set the hostname shows the full 10-character hostname as well.&lt;BR /&gt;&lt;BR /&gt;I thought eight character name restrictions went out ten years ago!</description>
      <pubDate>Sun, 30 Nov 2008 02:38:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143751#M537572</guid>
      <dc:creator>David G. Douthitt</dc:creator>
      <dc:date>2008-11-30T02:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143752#M537573</link>
      <description>&lt;!--!*#--&gt;Hi David ,&lt;BR /&gt;&lt;BR /&gt;You are right, the limitation is there.&lt;BR /&gt;&lt;BR /&gt;If harderning has been done , The hostname display limits to 8 characters.&lt;BR /&gt;&lt;BR /&gt;Correct me If Iam wrong.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Analyst.</description>
      <pubDate>Sun, 30 Nov 2008 02:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143752#M537573</guid>
      <dc:creator>Analyst</dc:creator>
      <dc:date>2008-11-30T02:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143753#M537574</link>
      <description>There are two different methods in Unix to identify a system for networking and they are covered in the man page for hostname. uname is the system standard for several decades and must remain for compatibility. However, a system may have dozens of network names for the purpose of modern networking. These names might be abc, abc123xyz, abc.mydomain.com and so on. The hostname becomes muddied when you add multiple LAN cards -- now the system can have several names.&lt;BR /&gt; &lt;BR /&gt;So both names (8 and 10 chars) are correct and it is recommended that both names be added to /etc/hosts for the primary LAN address. If you use DNS, add both names to your DNS server(s). In addition, you should edit the /etc/rc.config.d/netconf file to reflect both names in the correct context:&lt;BR /&gt; &lt;BR /&gt;HOSTNAME=longnetworkname&lt;BR /&gt;NODENAME=shortnm&lt;BR /&gt; &lt;BR /&gt;The script /sbin/init.d/hostname shows how both names are set (hostname=$NODENAME, and uname=$HOSTNAME). The script sets hostname to the long name and if NODENAME is defined, then uname is set to $NODENAME.</description>
      <pubDate>Sun, 30 Nov 2008 03:16:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143753#M537574</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-11-30T03:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143754#M537575</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;please check below documentation&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/J6380-90010/J6380-90010.pdf" target="_blank"&gt;http://docs.hp.com/en/J6380-90010/J6380-90010.pdf&lt;/A&gt;</description>
      <pubDate>Sun, 30 Nov 2008 06:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143754#M537575</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-11-30T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143755#M537576</link>
      <description>Johnson: Are you sure that is the right document?  It is HP-UX SNAplus2 - which is not used here and has no documentation on hostnames.&lt;BR /&gt;&lt;BR /&gt;Bill: That's great information!  Unfortunately, the hostnames will be of the form: lhostname1, lhostname2, lhostname3 (just examples) - which leads to a "shortname" of lhostnam for all three.&lt;BR /&gt;&lt;BR /&gt;It looks like the best thing to do is to shorten the hostnames to under eight chars.&lt;BR /&gt;&lt;BR /&gt;But still, I thought the eight char limitation went out years and years ago - just like the 16-bit limitation on useerids and the 2Gb limit on UNIX files.  Don't all of the network tools handle 256-char hostnames?&lt;BR /&gt;&lt;BR /&gt;Why can't I use the 256-char limit that 11i v3 says it has instead of the 8-char limit it appears to have in practice?</description>
      <pubDate>Mon, 01 Dec 2008 15:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143755#M537576</guid>
      <dc:creator>David G. Douthitt</dc:creator>
      <dc:date>2008-12-01T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143756#M537577</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;Have a look at this doc.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5991-6425/large_nodename_hostname_whitepaper.rev2.0.20070110.1500.pdf" target="_blank"&gt;http://docs.hp.com/en/5991-6425/large_nodename_hostname_whitepaper.rev2.0.20070110.1500.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 01 Dec 2008 15:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143756#M537577</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2008-12-01T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143757#M537578</link>
      <description>While HP still recommends the use of the standard length name. They have supplied patch bundles for 11i v2 to use expanded names. For 11i v3, we are running a VM with nine characters. The commands uname -n, machinfo, and hostname are correctly returning the long name.&lt;BR /&gt;&lt;BR /&gt;Have you modified the kernel parameter for v3, expanded_node_host_names(5)? This should be set to one (1) to enable extended node and host names.</description>
      <pubDate>Mon, 01 Dec 2008 15:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143757#M537578</guid>
      <dc:creator>Ryan Green</dc:creator>
      <dc:date>2008-12-01T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143758#M537579</link>
      <description>Robert-Jan: that is the "magic bullet".  Wow!  Thanks for the document.&lt;BR /&gt;&lt;BR /&gt;For history's sake, here's what I found (in summary).  Bill's description was fantastic, and is correct in short.&lt;BR /&gt;&lt;BR /&gt;Ryan is correct; the parameter is expanded_host_names.  To set it, use&lt;BR /&gt;&lt;BR /&gt;# kctune expanded_host_names=1&lt;BR /&gt;&lt;BR /&gt;One other thing no one has yet mentioned is what uname(2) should do if it finds the name is too long for it (such as when the expanded_host_names parameter is set to 0).  This option is set by uname_eoverflow(5).&lt;BR /&gt;&lt;BR /&gt;If the hostname used by (or returned by) uname(2) is too long, it can either truncate (uname_eoverflow=0) or return an error, EOVERFLOW (uname_eoverflow=1).&lt;BR /&gt;&lt;BR /&gt;Thanks everybody!</description>
      <pubDate>Mon, 01 Dec 2008 15:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143758#M537579</guid>
      <dc:creator>David G. Douthitt</dc:creator>
      <dc:date>2008-12-01T15:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143759#M537580</link>
      <description>Closing thread.  Whitepaper link presented by Robert-Jan details everything about the hostname limitations one could ever hope to know.&lt;BR /&gt;&lt;BR /&gt;The document's name is "Node and Host Name Sizes on HP-UX" with subtitle "Using the Expanded Capabilities of HP-UX".  The version I retrieved is Revision 2.0 January 2007 (HP-UX 11i v3 or B.11.31.01).&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Dec 2008 15:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143759#M537580</guid>
      <dc:creator>David G. Douthitt</dc:creator>
      <dc:date>2008-12-01T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: hostname length restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143760#M537581</link>
      <description>&amp;gt;One other thing no one has yet mentioned is what uname(2) should do if it finds the name is too long for it&lt;BR /&gt;&lt;BR /&gt;A recently found problem may cause dld to abort on 11.31.</description>
      <pubDate>Tue, 02 Dec 2008 01:08:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length-restriction/m-p/5143760#M537581</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-02T01:08:33Z</dc:date>
    </item>
  </channel>
</rss>

