1748203 Members
3270 Online
108759 Solutions
New Discussion юеВ

Re: hostname

 
SOLVED
Go to solution
Tonatiuh
Super Advisor

hostname

HP-UX 11.23

My hostname command shows: MyHostname.
My Reflection X software shows the name of the server only as: MyHostname

Other HP-UX servers shows: MyHostname.MyDomani.Org in both (command line and Reflection X)

How to change the hostname to be showed as fully qualifyed hostname (MyHostName.Mydomain.org)?
4 REPLIES 4
Sunny123_1
Esteemed Contributor

Re: hostname

Hi

You can change your hostname in /etc/rc.config.d/netconf file.Look out what entry is there for hostname and change it.


Regards
Sunny
AL_3001
Regular Advisor

Re: hostname

Hi Tonatiuh,

Check you hostname in /etc/hosts file and i'm sure it will be in this format MyHostname.MyDomani.Org.

If that is the case, it is absolutely fine. You can also try ping myhostname and get the resolved DNS. Hope this helps.

Regards,
AL
Prashantj
Valued Contributor
Solution

Re: hostname

Hi Tonatiuh,

use "set_parms hostname"

hope this will work

Prashant

Good judgment comes from experience and experience comes from bad judgment.
Fabio Ettore
Honored Contributor

Re: hostname

Hi,

to change hostname the correct solution is

/sbin/set_parms hostname

Everything else (for example changing manually files like netconf and /etc/hosts) is not the best way.

Anyway having hostname with complete domain I think it's not good, or maybe you have already checked the attached document.

Best regards,
Fabio
WISH? IMPROVEMENT!