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

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

Post by Paul Burr » Tue, 23 Dec 1997 04:00:00



What is the proper way to define multi-homed hosts when using NIS?

When using DNS, I have always advocated using a single host name
and multiple A records and left it up to the client's resolver
library to sort the addresses appropriately with a sortlist
directive in /etc/resolv.conf.
 ie.    sunhost         IN      A       192.168.214.100
                        IN      A       192.168.215.100

I recently learned by accident that NIS also supports multi-homed
hosts.

ie.     192.168.214.100         sunhost
        192.168.215.100         sunhost

After a little experimentation it looks like the NIS
resolver library will return an address on the client's subnet or
a random address.  But it only ever seems to return one address
in the h_addr_list array in the hostent structure.

Now, my questions are:
1. Exactly how is this supposed to be used?
2. Do people use this?  I've *never* seen it used.
3. Are you supposed to have a unique primary name or alias for each
interface?

Thanks..Paul

--

CrossKeys Systems Corporation
350 Terry Fox Drive, Kanata, ON K2K 2W5, CANADA
Tel:    (613) 591-1600, (613) 599-2300 x8304
Fax:    (613) 599-2330

 
 
 

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

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.

2. fix compile breakage on drivers/scsi/fd_mcs.c

3. NIS+ credentials and multi-homed hosts

4. Checking analog and ISDN modems

5. nis+ and multi-homed hosts

6. tcsh: completing ssh commands

7. hosts file format for multi homed hosts?

8. 3Com 3c595, x86, 2.5 ??

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

10. NFS mounts from multi-homed hosts

11. IP address resolved without NIS,DNS, etc/hosts - HOW ?

12. TCP wrappers complaining about multi-homed hosts

13. accept() on multi-homed host