1833943 Members
1735 Online
110063 Solutions
New Discussion

setting hostname

 
piyut_2
Frequent Advisor

setting hostname

i want to change hostname at-sn-billing-05.i changed at /etc/rc.config.d/netconf eith this new hostname.but when i reboot server,the new hostname came to at-sn-bi, only 8 caracters.how can i set for hostname above 8 caracter??

many thanks,

piyut
8 REPLIES 8
Ranjith_5
Honored Contributor

Re: setting hostname

Hi Piyut,

Use

#set_parms hostname

Regards,
Syam
piyut_2
Frequent Advisor

Re: setting hostname

can I chaned hostname without reboot server ??
Alex Lavrov.
Honored Contributor

Re: setting hostname

Hey,
you can't set a hostname that is more than 8 characters. Also try not using charachters like "-", because there are some programs that won't work (had this problem).
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Ranjith_5
Honored Contributor

Re: setting hostname

Piyut,

Ofcourse, Reboot is required.

Regards,
Syam
Amit Agarwal_1
Trusted Contributor

Re: setting hostname

some of the configuration do not need reboot. you can reinitialize them by re-running /sbin/rc. You can do this by first finding the run level you are currently in (use 'who -r').

$ who -r
run-level 3

$ /sbin/rc 3

Mobeen_1
Esteemed Contributor

Re: setting hostname

Piyut,
A reboot is absolutely required to effect a change in host name. As for the commands to do that, its already been provided in the posts prior to mine.
As per the comments before mine, try to keep your hostname to 8 names and not to have any special chars...

rgds
Mobeen
Keith Bryson
Honored Contributor

Re: setting hostname

Hi Piyut

Just to add my 5p worth, limit the hostname to 8 characters and don't forget to change /etc/hosts. If you don't, the server may have trouble booting and this will cause problems for SD (software distributor -swinstall etc.)/NFS applications.

Keith
Arse-cover at all costs
Keith Bryson
Honored Contributor

Re: setting hostname

One other thing, you can add at-sn-billing-05 to /etc/hosts (after the new 8 character hostname) so that the server still resolves this address internally, to itself.

Keith
Arse-cover at all costs