Linux-Hams archive - March 1998: Re: [smtp] sendmail + DNS

Re: [smtp] sendmail + DNS

Jochen Kmietsch (nnzsua.dkfgepvgo@nstu.ru)
Tue, 17 Mar 1998 19:58:45 +0100 (CET)


Hello John !

On 17-Mar-98 John Ackermann N8UR wrote (concerning Re: [smtp] Hammer in hand!!!!):
> sendmail can be configured at compile time to require DNS lookups for
> all addresses. I'm not sure if this can be defeated in any way other than
> recompiling it.

One possibility is recompiling with "-DNAMED_BIND=0" and removing "-lresolv" from
the library search path to turn of all DNS checking. That's the hard way, though :)

Uhm, I am trying to understand the sendmail manual here. The way I get it, it
relies on gethostbyname(), meaning a /etc/host.conf with

order hosts, bind
multi on

might do the trick on a Linux box, if the names and addresses in question are in the
/etc/hosts file.

Jochen

---