- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hostname length restriction
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2008 06:38 PM
11-29-2008 06:38 PM
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.
However, uname -n (as well as machinfo) returns an 8-character name - which apparently is because uname was only designed to handle eight chars.
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....
Using set_parms to set the hostname shows the full 10-character hostname as well.
I thought eight character name restrictions went out ten years ago!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2008 06:52 PM
11-29-2008 06:52 PM
Re: hostname length restriction
You are right, the limitation is there.
If harderning has been done , The hostname display limits to 8 characters.
Correct me If Iam wrong.
Thanks,
Analyst.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2008 07:16 PM
11-29-2008 07:16 PM
Re: hostname length restriction
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:
HOSTNAME=longnetworkname
NODENAME=shortnm
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2008 10:54 PM
11-29-2008 10:54 PM
Re: hostname length restriction
please check below documentation
http://docs.hp.com/en/J6380-90010/J6380-90010.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 07:05 AM
12-01-2008 07:05 AM
Re: hostname length restriction
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.
It looks like the best thing to do is to shorten the hostnames to under eight chars.
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?
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 07:23 AM
12-01-2008 07:23 AM
SolutionHave a look at this doc.
http://docs.hp.com/en/5991-6425/large_nodename_hostname_whitepaper.rev2.0.20070110.1500.pdf
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 07:32 AM
12-01-2008 07:32 AM
Re: hostname length restriction
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 07:39 AM
12-01-2008 07:39 AM
Re: hostname length restriction
For history's sake, here's what I found (in summary). Bill's description was fantastic, and is correct in short.
Ryan is correct; the parameter is expanded_host_names. To set it, use
# kctune expanded_host_names=1
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).
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).
Thanks everybody!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 07:44 AM
12-01-2008 07:44 AM
Re: hostname length restriction
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 05:08 PM
12-01-2008 05:08 PM
Re: hostname length restriction
A recently found problem may cause dld to abort on 11.31.