Peter Memishian writes:
>  > If we don't have it we'd probably need some support in the conversion of 
>  > /etc/hostname* files so that at the time of conversion we do a 
>  > getaddrinfo to get the addresses from /etc/hosts,ipnodes.
>  > 
>  > Thus the RFE might not even be needed.
> 
> Agreed.  For the reasons already discussed on this thread, using hostnames
> with ipadm (and ifconfig) is problematic; we'd be better off without it.

For what it's worth, I happen to like using names whereever I can
rather than repeating magic numbers.  Thus, I normally configure
systems with static IP addresses to have an entry in /etc/hosts
corresponding to the address I'm going to use, set up
/etc/nsswitch.conf to have 'files' listed first (as it Should Always
Be), and then use the name rather than the numeric address in
/etc/hostname.* and all the other configuration files.

This saves me from a lot of grief if I ever have to renumber the box.
In most cases, all I have to change is the /etc/hosts entry, and I'm
good to go.  (Yes, some parts like /etc/resolv.conf are unusually
annoying about such things.)

Thus, I would like to manage statically addressed interfaces by name
if it's possible.  And as Erik mentioned, if it's configured by name,
that same name should be used for all operations and shouldn't be
internally translated into something else.

-- 
James Carlson, Solaris Networking              <[email protected]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to