Sponsored Content
Full Discussion: Change HostName
Top Forums UNIX for Dummies Questions & Answers Change HostName Post 302178272 by Perderabo on Tuesday 25th of March 2008 06:41:50 AM
Old 03-25-2008
So you need to add that command to the startup scripts that get executed at reboot time. Another approach is to rebuild the kernel with the new hostname builtin. But I'm not sure how to do that on an old NCR box. I would try to find where the old hostname is set by doing:
cd /etc
grep oldname *
it may be as simple as replacing it there. (Could also be in a subdirectory of /etc. Especially check for /etc/conf) But you may find it in a file which is intended as input to the kernel build process (possibly called /etc/system or /etc/master I think) and it won't take effect until you rebuild the kernel. Or that file may be read by the kernel at reboot time... I'm just not sure how your system works. I think that the NCR's had a system admin tool called va which is a text based menu system. If you can find that, you might look for a change hostname option or a kernel rebuild option. Note that what you are calling "hostname" is probably called "system name" or something like that.

I worked on an NCR box circa 1990 but it was an NCR box and not a Pentium. So I'm not too sure of what system you have or precisely how it works. Even if you had an old Tower 800, it's been almost 20 years since I've seen one and I have forgotten most of it. So take my comments witha grain of salt.
 

10 More Discussions You Might Find Interesting

1. IP Networking

How to change hostname and ip in solaris

Dear all, I am going to change the IP address and hostname in my solaris, but I don't know how to do it. If you have any idea or suggestion, please fell free to let me know. Thanks and Regards (2 Replies)
Discussion started by: PennyLi
2 Replies

2. UNIX for Dummies Questions & Answers

change hostname

Hi, ( running solaris 8 ) I know how to change the hostname temparily, by login in as root typing hostname = xxxxx but, this obviously goes when the system is rebooted. I'm not sure what files need changing to make this a permant change. Could anyone help me please? (9 Replies)
Discussion started by: fishman2001
9 Replies

3. UNIX for Advanced & Expert Users

Change of Hostname

Dear All. I will like to know beside the following command "hostname hostname" what other command that can change the hostname of the Unix. Thanks. (4 Replies)
Discussion started by: gelbvonn
4 Replies

4. HP-UX

Change IP and Hostname

Hello.. I wanted to know how to change IP and Hostname on HPUX system, and I don't want to make it as NIS master either. Could someone tell me the files I need to modify and make sure it's on network? Thanks! :o (3 Replies)
Discussion started by: catwomen
3 Replies

5. UNIX for Dummies Questions & Answers

change hostname

Hi, I asked this question whenI was running solaris 8 and got some very good answers. I've just uograded to Solaris 10 and there seems to quite a few changes so I need to know again. https://www.unix.com/showthread.php?t=8547 ------------ Hi (now solaris 10) I know how to change the... (2 Replies)
Discussion started by: fishman2001
2 Replies

6. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

7. Solaris

Change hostname in Solaris 9

Please anyone guide me how to change the hostname in Solaris 9? The IP of the machie is fetched from a DHCP server. (6 Replies)
Discussion started by: shabu
6 Replies

8. Linux

how to change hostname permanentaly

i want to change my hostname permanentaly in my Fedora core 6. could any one tell me how it is possible .... (1 Reply)
Discussion started by: useless79
1 Replies

9. Red Hat

Change hostname

Hello, I would like to change the hostname on a Linux server (RHEL4). I try different methods in vain : - by using hostname command - by changing /etc/hosts and /etc/hostname But after restarting server, the old hostname re-appears... :confused: And the file ./proc/sys/kernel/hostname... (3 Replies)
Discussion started by: madmat
3 Replies

10. Solaris

change hostname in SUNOS 5.10

What file I need to edit if I need to change hostname in SUN OS 5.10 Please advice ....... (1 Reply)
Discussion started by: chuikingman1
1 Replies
sethostname(2)							System Calls Manual						    sethostname(2)

NAME
sethostname() - set name of current host system SYNOPSIS
DESCRIPTION
The system call sets the name of the current system to name, which has a length of namelen characters. At system boot time is normally executed by the command (see hostname(1)) in the script. Host names are limited to characters, as defined in Security Restrictions The actions associated with this system call require the privilege Processes owned by the superuser have this privilege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
returns the following values: Successful completion. Failure. is set to indicate the error. ERRORS
If fails, is set to one of the following values. name points to an illegal address. The reliable detection of this error is implementation dependent. The user does not have appropriate privileges. WARNINGS
Setting a hostname of more than 64 bytes with is possible only with the appropriate configuration options enabled (see nodehostname- size(5)). It is strongly recommended that all related documentation be completely understood before setting a larger hostname. A hostname larger than 64 bytes can cause anomalous behavior or failure in applications which use the command or the system function to obtain the name. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
hostname(1), uname(1), gethostname(2), uname(2), nodehostnamesize(5), privileges(5). sethostname(2)
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy