<?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: Length of hostname in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860679#M96067</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you can take help from this thread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0xe90957bd90a9d611abdb0090277a778c,00.html" target="_blank"&gt;http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0xe90957bd90a9d611abdb0090277a778c,00.html&lt;/A&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. "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
    <pubDate>Tue, 10 Dec 2002 17:03:23 GMT</pubDate>
    <dc:creator>MANOJ SRIVASTAVA</dc:creator>
    <dc:date>2002-12-10T17:03:23Z</dc:date>
    <item>
      <title>Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860667#M96055</link>
      <description>How many characters long can the name of a unix server be? I have read 16 characters long. I have found different answers.</description>
      <pubDate>Tue, 10 Dec 2002 00:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860667#M96055</guid>
      <dc:creator>Juan Gonzalez_2</dc:creator>
      <dc:date>2002-12-10T00:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860668#M96056</link>
      <description>64:&lt;BR /&gt;&lt;BR /&gt;The sethostname() system call sets the name of the host processor to&lt;BR /&gt;      name, which has a length of namelen characters.  At system boot time&lt;BR /&gt;      sethostname() is normally executed by the hostname command (see&lt;BR /&gt;      hostname(1)) in the /sbin/init.d/hostname script.  Host names are&lt;BR /&gt;      limited to MAXHOSTNAMELEN characters, as defined in &lt;SYS&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ grep MAXHOSTNAMELEN /usr/include/sys/param.h&lt;BR /&gt;#define MAXHOSTNAMELEN 64       /* max length of hostname */&lt;BR /&gt;&lt;/SYS&gt;</description>
      <pubDate>Tue, 10 Dec 2002 00:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860668#M96056</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-12-10T00:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860669#M96057</link>
      <description>While the maximum allowable length of the hostname is 64 characters long, it is recommended that you shouldn't exceed 8.&lt;BR /&gt;&lt;BR /&gt;For example, you want the `uname` command to be able to display the entire hostname. uname uses utsname which is defined in usr/include/sys/utsname.h as: #define UTSLEN  9&lt;BR /&gt;this is a 9 character null-terminated string (per the man pages). I've read (but am not positive) that the maximum is 8 because of 8 characters + null. &lt;BR /&gt;&lt;BR /&gt;There's other issues I've read about (UUCP, etc.) for having a hostname longer than 8 characters, so it might be best sticking with the recommended length if you can.</description>
      <pubDate>Tue, 10 Dec 2002 01:34:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860669#M96057</guid>
      <dc:creator>Ian Kidd_1</dc:creator>
      <dc:date>2002-12-10T01:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860670#M96058</link>
      <description>I would never bless any system name over 8 characters, as a matter of just being stubborn.&lt;BR /&gt;&lt;BR /&gt;You actually COULD have code that might fail if you exceed 8 characters, but like the limit says (64), if you wish to go beyond 8 characters, that's your choice :-)&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 10 Dec 2002 01:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860670#M96058</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-12-10T01:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860671#M96059</link>
      <description>I tried this for fun once on a 10.20 box a while ago. Gave it a 30 character hostname.&lt;BR /&gt;&lt;BR /&gt;GSP was only half working.&lt;BR /&gt;&lt;BR /&gt;SDUX nearly had a heart attack, and some other things didn't work (like uname).&lt;BR /&gt;&lt;BR /&gt;The biggest show stopper I found was SDUX though. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 02:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860671#M96059</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-12-10T02:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860672#M96060</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can have any length for hostname, but while displaying it shows only first 8 characters,</description>
      <pubDate>Tue, 10 Dec 2002 05:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860672#M96060</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-12-10T05:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860673#M96061</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;It's definitly 8 if you don't want to go in big troubles ... Consider MAXHOSTNAMELEN (64)as the maximum length for fully qualified hostnames (host.domain.com) and UTSLEN (8+1) for real hostnames displayed by uname -n command.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 07:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860673#M96061</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-12-10T07:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860674#M96062</link>
      <description>HI &lt;BR /&gt;The system Takes character's up to infinity but while displaying it shows only 8 characters. since Unmae displays only 8 chars ..&lt;BR /&gt;Cheers &lt;BR /&gt;Asif</description>
      <pubDate>Tue, 10 Dec 2002 10:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860674#M96062</guid>
      <dc:creator>donne007</dc:creator>
      <dc:date>2002-12-10T10:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860675#M96063</link>
      <description>Hi, again&lt;BR /&gt;&lt;BR /&gt;The Software Distributor tools (swinstall, etc.) use the system's hostname, and uname value interchangeably, and since the uname value is restricted to 8 characters, the SD tools would fail if the hostname is longer than 8. &lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 10:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860675#M96063</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-12-10T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860676#M96064</link>
      <description>This is one area where Linux is ahead of HP-UX.&lt;BR /&gt;&lt;BR /&gt;My web server for my web hosting biz at home runs Linux.  The main server host name is jerusalem, my favorite city. That's nine characters btw&lt;BR /&gt;&lt;BR /&gt;I tried that with an HP-UX box and had issues with swinstall and Ignite. That server is now called Moriah (the Temple Mount).&lt;BR /&gt;&lt;BR /&gt;8 character limit is the way to go with HP-UX and thats 11.11 btw.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 10 Dec 2002 13:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860676#M96064</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-10T13:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860677#M96065</link>
      <description>This is one area where Linux is ahead of HP-UX.&lt;BR /&gt;&lt;BR /&gt;My web server for my web hosting biz at home runs Linux.  The main server host name is jerusalem, my favorite city. That's nine characters btw&lt;BR /&gt;&lt;BR /&gt;I tried that with an HP-UX box and had issues with swinstall and Ignite. That server is now called Moriah (the Temple Mount).&lt;BR /&gt;&lt;BR /&gt;8 character limit is the way to go with HP-UX and thats 11.11 btw.&lt;BR /&gt;&lt;BR /&gt;Yes, it was stupid to try and name two servers I work with the same thing, but that's not how it happened.  The jerusalem box at home went in after I figured out I couldn't use it at work.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 10 Dec 2002 14:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860677#M96065</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-10T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860678#M96066</link>
      <description>I'd stick with 8 characters.</description>
      <pubDate>Tue, 10 Dec 2002 16:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860678#M96066</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2002-12-10T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860679#M96067</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you can take help from this thread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0xe90957bd90a9d611abdb0090277a778c,00.html" target="_blank"&gt;http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0xe90957bd90a9d611abdb0090277a778c,00.html&lt;/A&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. "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 10 Dec 2002 17:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860679#M96067</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-12-10T17:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860680#M96068</link>
      <description>For compatability sake with other systems, no matter how long the OS states the hostname can be you do not want to exceed 8 characters.&lt;BR /&gt;&lt;BR /&gt;Even some of the newer systems coming out have hard limite built in to help the windows people conform to the standards, instead of defining their own.  again........  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if you need long names, setup DNS and make good domain/sub-domain names.  This way legacy systems and systems that support only 8 characters can still function.&lt;BR /&gt;Here are a few systems not supporting more than 8 characters.&lt;BR /&gt;OS/400, MVS, WinNT3.5, Windows 3.1, DOS, MacOS less than 9, SCO Unix, Most Unices older than 4 years.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Tue, 10 Dec 2002 17:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860680#M96068</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-12-10T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Length of hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860681#M96069</link>
      <description>Thanks to everyone information for all the good feed back.</description>
      <pubDate>Tue, 10 Dec 2002 17:48:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/length-of-hostname/m-p/2860681#M96069</guid>
      <dc:creator>Juan Gonzalez_2</dc:creator>
      <dc:date>2002-12-10T17:48:24Z</dc:date>
    </item>
  </channel>
</rss>

