1847488 Members
3380 Online
110265 Solutions
New Discussion

Re: System Hostname

 
SOLVED
Go to solution
fg_1
Trusted Contributor

System Hostname

Good Morning All.

I need to know where on an 11.00 system do you have to affect a change to the system hostname other than set_parms?. When you use set_parms_hostname, where does it change the hostname at on the system.

Are there any hidden/secret places where the hostname needs to be changed manually?.

Thanks in Advance.
5 REPLIES 5
Joseph C. Denman
Honored Contributor
Solution

Re: System Hostname

Hi Frank,

Make sure you check

/etc/hosts
/etc/rc.config.d/netconf

Also, many third party software product use the hostname for resolution. If you change the hostname on the system, they may not work correctly.

...jcd...
If I had only read the instructions first??
Krishna Prasad
Trusted Contributor

Re: System Hostname

I think using set_parms hostname is the safest way to change the hostname for the operating system. Of course you will want to check the /etc/hosts file and the DNS/Nameserver.

The unix script that set's this is at boot is /sbin/init.d/hostname.

In the /etc/rc.config.d/netconf file you will also see your hostname put I believe set_parms will modify this file.

As fare as apps outside of the OS that are local hopefully they are using the command hostname to set the variable or doing a gethostname.

The rest of apps external to the host that need to connect hopefully are using DNS to resolve. If not you could have a huge job on your hands when you take into account client connections, application interfaces etc....
Positive Results requires Positive Thinking
Krishna Prasad
Trusted Contributor

Re: System Hostname

I forgot to mention nfs servers and clients you might want to look at /etc/fstab ( depends on if you mount at boot or use automount )and /etc/exports.

Also, if you use remsh by setting up .rhosts files this will also need to checked.

It may also help to setup an alias in /etc/hosts and DNS.
Positive Results requires Positive Thinking
Joseph C. Denman
Honored Contributor

Re: System Hostname

/etc/shutdown.allow


...jcd...
If I had only read the instructions first??
T. M. Louah
Esteemed Contributor

Re: System Hostname

.. To add to above, not to forget /etc/hosts.equiv:
The /etc/hosts.equiv file and files named .rhosts found in users' home
directories specify remote hosts and users that are "equivalent" to
the local host or user. Users from equivalent remote hosts are
permitted to access a local account using rcp or remsh or to rlogin to
the local account without supplying a password (see rcp(1), remsh(1),
and rlogin(1)).

.. check manpages for the following commands & calls:
gethostname(2) - get name of current host
hostname(1) - set or display name of current host system
hostname(5) - host name resolution description
set_parms(1M) - set up system hostname, networking, date/time & root password
sethostname(2) - set name of host cpu

g'd luck
t++
Little learning is dangerous!