- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hostname length limitation
Operating System - HP-UX
1755261
Members
5612
Online
108831
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО02-20-2004 09:31 PM
тАО02-20-2004 09:31 PM
Solution
"The setuname() system call sets the node name (system name), as returned in
the nodename field of the utsname structure, to name, which has a length of
namelen characters. This is usually executed by /sbin/init.d/hostname at
system boot time. Names are limited to UTSLEN - 1 characters; UTSLEN is
defined in."
UTSLEN is #defined to _SYS_NMLN which is set to 9.
Berlene
the nodename field of the utsname structure, to name, which has a length of
namelen characters. This is usually executed by /sbin/init.d/hostname at
system boot time. Names are limited to UTSLEN - 1 characters; UTSLEN is
defined in
UTSLEN is #defined to _SYS_NMLN which is set to 9.
Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 09:52 AM
тАО05-05-2004 09:52 AM
Re: hostname length limitation
what is the patch name to go beyond 8 characters? I did look in params.h and yes 64 is the max but what is there a patch needed to go beyond 8 considering this variable in params.h?
does this apply to 11i as well?
thanks
derek
does this apply to 11i as well?
thanks
derek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 01:08 PM
тАО05-05-2004 01:08 PM
Re: hostname length limitation
AS mentioned in the URL above, adding the patch will BREAK a lot of programs. You don't want to change the hostname to more than 8 characters. Even the patch will not work until you create a file that is called something: ItakeFULLresponsibilityFORallTHEproblems
As mentioned above, the network name can be 64 characters long, but the uname value cannot be longer than 8 characters. Although not clearly defined in the netconf file, you must set NODENAME to an 8 character name and set HOSTNAME to anything you like up to 64 chars. This will usually be the name your system will have in DNS. Both NODENAME and HOSTNAME should be set in /etc/rc.config.d/netconf
Bill Hassell, sysadmin
As mentioned above, the network name can be 64 characters long, but the uname value cannot be longer than 8 characters. Although not clearly defined in the netconf file, you must set NODENAME to an 8 character name and set HOSTNAME to anything you like up to 64 chars. This will usually be the name your system will have in DNS. Both NODENAME and HOSTNAME should be set in /etc/rc.config.d/netconf
Bill Hassell, sysadmin
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP