/etc/hosts (or NIS host map): official-host-name vs nicknames

/etc/hosts (or NIS host map): official-host-name vs nicknames

Post by al » Wed, 09 Apr 2003 14:00:56



I am setting up a couple of NIS domains on the same physical LAN.  Will not
be using DNS or
connecting to the internet.  Can someone explain to me:

1) What the official-host-name is? Is it hostname or hostname | domainname?
What are the pros
and cons of using just the hostname for the official-host-name?  What are
the pros and cons
of using hostname | domainname as the official-host-name?

2)  How is the official-host-name entry treated differently then the aliases
entries?
Do certain applications or os components use the official-host-name entry
while others
use the aliases entries?

Thanks.

 
 
 

/etc/hosts (or NIS host map): official-host-name vs nicknames

Post by Barry Margoli » Wed, 09 Apr 2003 23:11:28




>I am setting up a couple of NIS domains on the same physical LAN.  Will not
>be using DNS or
>connecting to the internet.  Can someone explain to me:

>1) What the official-host-name is? Is it hostname or hostname | domainname?
>What are the pros
>and cons of using just the hostname for the official-host-name?  What are
>the pros and cons
>of using hostname | domainname as the official-host-name?

If you're not using DNS and not connecting to the Internet, it doesn't
matter which you use.  Fully-qualified names probably aren't even important
in such an environment, since you don't need to disambiguate across
different organizations.

However, it might be a good idea to use the qualified names anyway, in case
you connect to the Internet some time in the future.

Quote:>2)  How is the official-host-name entry treated differently then the aliases
>entries?
>Do certain applications or os components use the official-host-name entry
>while others
>use the aliases entries?

When an application performs a reverse lookup, to translate an address back
into a name, it always returns the official-host-name.  For instance, if
you use .rhosts files, the hostname in there must be an official-host-name
because the server will do a reverse lookup of the client address and then
search for it in the .rhosts file.

Other than that, I don't think there's any significant difference between
the official name and the aliases.

--

Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

1. Multihomed Hosts - /etc/hosts - NIS+ Maps Question

Hey folks,

I have a question concerning multihomed hosts.  A client of mine
recently asked what was the "standard" method of implementing multihomed
hosts in the /etc/hosts and NIS+ maps.  Which of the below methods is
the prefered way of doing it:

1.2.3.4  host5 host5fd0
5.6.7.8  host5 host5le0
9.10.11.12 host5 host5le1

-- or --

1.2.3.4  host5fd0 host5
5.6.7.8  host5le0 host5
9.10.11.12 host5le1 host5

The reason I ask is that many of you may have noticed a bug in
nisaddentry if you tried to do the above.  Sun has fixed this problem.  
My client is trying to determine the best way to do this.  They have
questions (and so do I) on how applications like 'netstat' will respond
to a request for hostname 'host5'.  It should get back a multiple line
response.  Is this correct?  (That's not my question ... sorry).

What of the two methods above is the accepted "standard" to define a
multihomed host in /etc/hosts or NIS+ maps?  And please give reasons and
examples of application response to your answer.

Thanks in advance!!!

Sean O'Neill
Rapid Systems Solutions, Inc.

2. CSA Solaris Exams Help

3. Can't ping the host name or host IP address from host.

4. CERN http 3.0 - problems with children processes

5. multi-homed hosts in /etc/hosts, NIS and DNS

6. controlling ksh commands from NT or DOS

7. Is there any point to full host names in /etc/hosts ?

8. Monitoring info.

9. Using both /etc/hosts and domain name server to get host addrs

10. /etc/hosts.deny & /etc/hosts.allow ??

11. /etc/hosts.deny and /etc/hosts.allow

12. can't ping host or host IP from host ?

13. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?