Operating System - HP-UX
1748180 Members
3863 Online
108759 Solutions
New Discussion юеВ

Quick Question for /etc/hosts file

 
g700304
Super Advisor

Quick Question for /etc/hosts file

Does it make the different if we have the following on our host file;
We are running HPUX 11.31 on rx2660


10.0.0.1 host1 host1.domain.com

of

10.0.0.1 host1.domain.com host1


btw, the host1 is our server hostname

Anyone?
5 REPLIES 5
Victor Fridyev
Honored Contributor

Re: Quick Question for /etc/hosts file

Hi,

If you don't intent to use
remsh host1
from host2 without password request, both formats are OK.

HTH
Entities are not to be multiplied beyond necessity - RTFM
g700304
Super Advisor

Re: Quick Question for /etc/hosts file

One more question, so changing the host1 to host1.domain.com will not affect other processes like SWAgent, etc???
James R. Ferguson
Acclaimed Contributor

Re: Quick Question for /etc/hosts file

Hi:

Strictly speaking the 'hosts' format is:

internet_address official_host_name aliases

Thus in your case:

10.0.0.1 host1.domain.com host1

Regardless of the order you choose, if you must support a '.rhosts' file, simply include the simple and the fully qualified name entries.

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: Quick Question for /etc/hosts file

> internet_address official_host_name aliases

So, if your program looks up any of the
names, then it will get back the same
address. But if your program looks up the
address, then it will get back the first
("official") name. Whether this matters may
depend on what your program expects to do
with the name.

For example, I seem to recall some old
version(s) of sendmail (on some OS or other)
getting upset if the fully qualified name was
not the first name.

> [...] simply include the simple and the
> fully qualified name entries.

Or run the experiment to see which one works.
g700304
Super Advisor

Re: Quick Question for /etc/hosts file

Thank you all for the fast respond :> Point given :)