- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Hostname lenght
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
тАО12-11-2000 01:34 PM
тАО12-11-2000 01:34 PM
Hostname lenght
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 02:01 PM
тАО12-11-2000 02:01 PM
Re: Hostname lenght
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 02:08 PM
тАО12-11-2000 02:08 PM
Re: Hostname lenght
Hostname and unname 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).
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2000 10:59 PM
тАО12-11-2000 10:59 PM
Re: Hostname lenght
Even if the file sys/params.h define the maximum as being 64, quite a lot of stuff has been written assuming that hostname has a maximum length of 8 characters, so you shouldn't exceed 8.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2000 05:26 AM
тАО12-12-2000 05:26 AM
Re: Hostname lenght
I have some hosts with 12 characters, and never had a problem. This is a pure Unix environment though.
If you want to stick with the 8 character, just remember you can CNAME and alias to anything you want. This is where the 64C limit would be imposed.
antidestablishmentarianism1 is a valid host alias! Of course I'd hate to have to run a few remote commands on that one! He He!
Regards,
Shannon