-d8.2
Call to getcanonname(3) Debug command-line switch
The routine dns_getcanonname( )
in domain.c of the
sendmail source converts a
hostname to a fully qualified domain name. This
routine is called only if DNS is used to look up
hostnames, as determined by the ResolverOptions
option
(ResolverOptions on page 1080)
and the ServiceSwitchFile
option (ServiceSwitchFile on page 1088). If it
is, dns_getcanonname( ) can be
called from three places: during startup to get the
values for $w
,
$j
, and
$m
(-d0.4 on page 542); when a host is
looked up via the $[
and $]
canonify operators (Canonicalize Hostname: $[ and $] on page 668); or when a host is looked up using
the host
database
map (host on page 910).
The -d8.2
debugging
switch shows the hostname before it is fully
qualified with this call:
dns_getcanonname(host, flag)
If the flag is nonzero, calls to the getmxrr( ) routine (which looks up MX records) are also traced. On entry to that routine, sendmail will print:
getmxrr(host, droplocalhost=bool)
The host is the hostname whose MX
records are being looked up. The
bool, if nonzero, means that
all MX records that are less preferred than the
local host (as determined by $=w
) will be discarded.
If zero, they will be retained.
The -d8.2
debugging
switch also causes sendmail to
show the result of processing the ResolverOptions
option’s
settings (ResolverOptions on page
1080) while reading the configuration file:
_res.options = hex, HasWildcardMX = 1 or 0
The hex is a hexadecimal representation of the ...
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.