- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HOSTNAME/LENGTH
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
Discussions
Discussions
Forums
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
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
тАО08-13-2002 07:10 AM
тАО08-13-2002 07:10 AM
Thanks,
RPM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:14 AM
тАО08-13-2002 07:14 AM
SolutionAlthough the max length for an HP hostname is 64 chars, due to the limitations of UUCP & the uname command, it's STRONGLY recommended to keep it <= 8.
The hostname length is not defined in a config file anywhere that I'm aware of other than being hardcoded in a library somewhere.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:15 AM
тАО08-13-2002 07:15 AM
Re: HOSTNAME/LENGTH
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:15 AM
тАО08-13-2002 07:15 AM
Re: HOSTNAME/LENGTH
'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).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:15 AM
тАО08-13-2002 07:15 AM
Re: HOSTNAME/LENGTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:18 AM
тАО08-13-2002 07:18 AM
Re: HOSTNAME/LENGTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:20 AM
тАО08-13-2002 07:20 AM
Re: HOSTNAME/LENGTH
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.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:21 AM
тАО08-13-2002 07:21 AM
Re: HOSTNAME/LENGTH
# cd /usr/include/sys
# grep SYS_NMLN utsname.h
Look for the string that says "define _SYS_NMLN"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:21 AM
тАО08-13-2002 07:21 AM
Re: HOSTNAME/LENGTH
The answer for your question can be found from:
# man hostname
The max. limit will be defined in /usr/include/sys/param.h with the parameter - MAXHOSTNAMELEN. This is 64.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 07:23 AM
тАО08-13-2002 07:23 AM
Re: HOSTNAME/LENGTH
Read this document for more information about hostname set more than 8 characters:
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000046860426
Doc ID - S3100000646