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