Prev | Current Page 582 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


The short (host) name found by gethostbyname(3) or getipnodebyname(3) is assigned
as the value of the $w sendmail macro. The short name, the canonical name, and any
aliases are added to the class $=w.
If the DontProbeInterfaces option (?§24.9.42 on page 1023) is undefined, or set to
false, the address and hostname associated with each interface are also added to the
class $=w (?§9.2.2 on page 327).
Some old Sun and Ultrix machines are set up to use NIS where the canonical name is
the short name, and a fully qualified name that should have been the canonical name
appears as an alias. For suchsystems, you must link withth e BIND library (libresolv.
a) when compiling this program or compiling sendmail. That library gets its
information from DNS rather than from NIS. But note that V8.7 and above versions
of sendmail do the intelligent thing and use the canonical name that was found in the
list of aliases, if it exists.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
9.2 How sendmail Uses DNS | 327
If a good BIND library is not available, or if it is not convenient to compile and
install a new version of sendmail, you can circumvent the short name assigned to the
$j sendmail macro by defining $j like this:
define(`confDOMAIN_NAME??, `canonical name here??)
The canonical name is your site??™s hostname with a dot and your domain name
appended.


Pages:
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
wierszyki bajka Tango Olsztyn pozycjonowanie typy bukmacherskie