Renee Danson writes:
>      If the request for a fully qualified host  name  fails,  the
>      sendmail.org  sendmail  sleeps  for 60 seconds, tries again,
>      and, upon continuing failure, resorts to a short  name.  The
>      Solaris  version of sendmail makes the same initial request,
>      but then, following initial failure,  calls  domainname.  If
>      successful, the sleep is avoided.

Oh, ugh.

It's actually worse than that.  There's some cut-n-paste logic in
resolv that does something similar: it uses getdomainname() as the
default if not specified in /etc/resolv.conf or through an environment
variable.  (And it has some really special logic to handle domain
names that start with "+".)

What a mess.  :-<

I guess I'll have to stick with "it's not supposed to do that."

> So, in a worst-case scenario, the solaris sendmail implementation
> will resort to using the value returned from /usr/bin/domainname.

Yes.  Of course, you have to fail all the normal DNS configuration
to get there.

> That said, the bottom line question we wanted to answer was whether
> or not it made sense to allow the default-domain property (nwam's
> equivalent of the /etc/defaultdomain file) to be set if NIS or LDAP
> was not in use; and I'm now convinced that that does not make sense.

Agreed; I wouldn't do that.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
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

Reply via email to