1833325 Members
3165 Online
110051 Solutions
New Discussion

Re: hostname on hpux

 
SOLVED
Go to solution
Shivkumar
Super Advisor

hostname on hpux

Hostname is stored in which files on hpux 11i ?
I remember on solaris it is stored in 3 files and they were interlinked somehow ( i don't recall now)
My this question is in this perspective.

Thanks,
Shiv
8 REPLIES 8
Leif Halvarsson_2
Honored Contributor
Solution

Re: hostname on hpux

Hi,
In /etc/hosts and /etc/rc.config.d/netconf. That is the HP-UX related files.

There may also be other, application-related configuration files (e.g. Data Protector).
Kurt Beyers.
Honored Contributor

Re: hostname on hpux

Shiv,

You will find the hostname in /etc/rc.config.d/netconf and in /etc/hosts or in your DNs server. But it is stored in the netconf file.

The safiest way to change it is with the command 'set_parms hostname'.

best regards,
Kurt
Devender Khatana
Honored Contributor

Re: hostname on hpux

Hi,

It is stored in above two files as mentioned but you are not required to change it manually. You can rather set it by "set_parms hostname" command.

Also /etc/nsswitch.conf will tell from where your hostname is getting resolved. Wheather locally or from NIS/DNS.

HTH,
Devender
Impossible itself mentions "I m possible"
Joseph Loo
Honored Contributor

Re: hostname on hpux

hi shiv,

check /etc/rc.config.d/netconf under HOSTNAME and /etc/hosts.

also "man set_parms" and search for hostname for more info.

regards.
what you do not see does not mean you should not believe
Mahesh Kumar Malik
Honored Contributor

Re: hostname on hpux

Hi Shiv

Hostname in hp-ux 11i is found in /etc/hosts & /etc/rc.config.d/netconf files

Regards
Mahesh
Geoff Wild
Honored Contributor

Re: hostname on hpux

man set_parms and man hostname give some good info on the relationship of the systems hostname.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Cem Tugrul
Esteemed Contributor

Re: hostname on hpux

Shiv,

i)etc/hosts
ii)/etc/rc.config.d/netconf

Good luck,
Our greatest duty in this life is to help others. And please, if you can't
KRS_1
Frequent Advisor

Re: hostname on hpux


in /etc/hosts

you can find host entry on second line.

in /etc/rc.config.d/netconf

HOSTNAME="hostname"


Thanks and Regards

KRS