<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785230#M78262</link>
    <description>The recommendations about hostname are valid. And you can indeed change the UUCP name by setting the variable: NODENAME=&lt;MAX8CHAR&gt; which is poorly documented (see /sbin/init.d/hostname). Usually, requests for long hostnames comes from a corporate naming convention. &lt;BR /&gt;&lt;BR /&gt;However, there is a solution for both requirements: make HOSTNAME=NODENAME=&lt;MAX8CHAR&gt; and then create an alias in DNS (or /hosts) for the longer name. Now your machine can be known as:&lt;BR /&gt;&lt;BR /&gt;max8char and also: nomax8chars4mymachine&lt;BR /&gt;&lt;BR /&gt;Internal to HP-UX, the utilities will be happy with the 8char limit and externally, users can find your machine with the long name or the short name.&lt;/MAX8CHAR&gt;&lt;/MAX8CHAR&gt;</description>
    <pubDate>Tue, 13 Aug 2002 14:57:18 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-08-13T14:57:18Z</dc:date>
    <item>
      <title>HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785220#M78252</link>
      <description>Can someone tell me what the max limit is for a UNIX hostname and where that is defined?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;RPM</description>
      <pubDate>Tue, 13 Aug 2002 14:10:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785220#M78252</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-08-13T14:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785221#M78253</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt; Although the max length for an HP hostname is 64 chars, due to the limitations of UUCP &amp;amp; the uname command, it's STRONGLY recommended to keep it &amp;lt;= 8.&lt;BR /&gt;&lt;BR /&gt;The hostname length is not defined in a config file anywhere that I'm aware of other than being hardcoded in a library somewhere.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 13 Aug 2002 14:14:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785221#M78253</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-08-13T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785222#M78254</link>
      <description>Though you can have longer, 8 characters is the realistic limit.  You invite all kinds of problems exceeding 8.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 13 Aug 2002 14:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785222#M78254</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-08-13T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785223#M78255</link>
      <description>Hi Robert:&lt;BR /&gt;&lt;BR /&gt;'hostname' and 'uname' should be the same and therefore cannot exceed 8-characters. The length of the 'uname' structure is defined in '/usr/include/sys/utsname.h'in '_SYS_NMLN' (see man 2 'uname'). Since this is a 9-character, null-terminated string, the maximum, safe, hostname size is eight (8).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Aug 2002 14:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785223#M78255</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-08-13T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785224#M78256</link>
      <description>Generally, it is &amp;lt;=8.</description>
      <pubDate>Tue, 13 Aug 2002 14:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785224#M78256</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2002-08-13T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785225#M78257</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;See also:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2db614a24fd1d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2db614a24fd1d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc2b7d5fab40ed6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc2b7d5fab40ed6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 13 Aug 2002 14:18:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785225#M78257</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-08-13T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785226#M78258</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The max limit for nodename (uname -n) length is 8 which is UTSLEN -1 as defined in utsname.h. It is recommended to set hostname equal to nodename.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Aug 2002 14:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785226#M78258</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-08-13T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785227#M78259</link>
      <description>You already got the answer for it's max limit from the rest. it's defined in /usr/include/sys/utsname.h. &lt;BR /&gt;# cd /usr/include/sys&lt;BR /&gt;# grep SYS_NMLN utsname.h&lt;BR /&gt;Look for the string that says "define _SYS_NMLN"</description>
      <pubDate>Tue, 13 Aug 2002 14:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785227#M78259</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-13T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785228#M78260</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;The answer for your question can be found from:&lt;BR /&gt;# man hostname&lt;BR /&gt;The max. limit will be defined in /usr/include/sys/param.h with the parameter - MAXHOSTNAMELEN. This is 64.&lt;BR /&gt;&lt;BR /&gt;However, It is strongly recommended to keep your hostname up to 8 characters. Because the UUCP nodename is restricted to 8 characters and it automatically accepts the value from the set hostname.</description>
      <pubDate>Tue, 13 Aug 2002 14:21:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785228#M78260</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-13T14:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785229#M78261</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;Read this document for more information about hostname set more than 8 characters:&lt;BR /&gt;&lt;A href="http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000046860426" target="_blank"&gt;http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000046860426&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Doc ID - S3100000646</description>
      <pubDate>Tue, 13 Aug 2002 14:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785229#M78261</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-13T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: HOSTNAME/LENGTH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785230#M78262</link>
      <description>The recommendations about hostname are valid. And you can indeed change the UUCP name by setting the variable: NODENAME=&lt;MAX8CHAR&gt; which is poorly documented (see /sbin/init.d/hostname). Usually, requests for long hostnames comes from a corporate naming convention. &lt;BR /&gt;&lt;BR /&gt;However, there is a solution for both requirements: make HOSTNAME=NODENAME=&lt;MAX8CHAR&gt; and then create an alias in DNS (or /hosts) for the longer name. Now your machine can be known as:&lt;BR /&gt;&lt;BR /&gt;max8char and also: nomax8chars4mymachine&lt;BR /&gt;&lt;BR /&gt;Internal to HP-UX, the utilities will be happy with the 8char limit and externally, users can find your machine with the long name or the short name.&lt;/MAX8CHAR&gt;&lt;/MAX8CHAR&gt;</description>
      <pubDate>Tue, 13 Aug 2002 14:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hostname-length/m-p/2785230#M78262</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-08-13T14:57:18Z</dc:date>
    </item>
  </channel>
</rss>

