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

From: Barry Margolin (barry.margolin@level3.com)
Date: 04/08/03


From: Barry Margolin <barry.margolin@level3.com>
Date: Tue, 08 Apr 2003 14:11:28 GMT

In article <cIska.56170$yh1.3499781@news1.east.cox.net>,
al <publicaccess@cox.net> wrote:
>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.

>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.

-- 
Barry Margolin, barry.margolin@level3.com
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.


Relevant Pages

  • Re: (NIS/NPF) Event log and other issues.
    ... connecting to the internet if you don't have any log entries? ... (That's a very poorly worded event log entry because it's not ... > You'll note that this rule has absolutely nothing to do with DNS lookup ...
    (comp.security.firewalls)
  • Re: Please Help - Losing Internet connection
    ... How are you connecting ... Everything works fine, except that the Internet ... This is the error I got in event logs: "The DNS server could not signal the ...
    (microsoft.public.windows.server.sbs)
  • Re: pop 3 connector error event id 1036
    ... Have you run the 'Connect to the internet' wizard? ... Connecting via ADSL with verizon through ... then I run utility to update DNS. ... I assumed that this was normal due to the dynamic dns operation! ...
    (microsoft.public.windows.server.sbs)
  • Re: 2003 server and 2 network cards
    ... Our other network card is connected ... it failed after connecting to the BT ... > We are having terrible trouble with the DNS setup. ... > respond to any requests from the Internet. ...
    (microsoft.public.windows.server.setup)
  • Re: Urgent! New router and big disaster
    ... Both NICs should point to his internal IP for DNS. ... forward ports to it reliably in the router. ... I should have been more clear about internet connection.. ...
    (microsoft.public.windows.server.sbs)