- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hostname lenght
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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