From owner-freebsd-questions Mon Dec 4 7:39: 1 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 07:38:59 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id ACD8437B400 for ; Mon, 4 Dec 2000 07:38:56 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id RAA21694; Mon, 4 Dec 2000 17:44:00 +0100 Message-ID: <3A2BBAC7.4080009@i-clue.de> Date: Mon, 04 Dec 2000 16:39:51 +0100 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001130 X-Accept-Language: de, en MIME-Version: 1.0 To: Nils Holland Cc: questions@FreeBSD.ORG Subject: Re: Sendmail/Dial-Up-Question References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nils Holland wrote: > Hallo! > I have the following question: > > I have one machine configugred with ppp -auto -nat, so that it establishes > a connection to the Internet whenever one of my other machines wants to > send packets to the Internet. The other machines are, of course, set up so > that their default route points to the ppp-machine. > > So far, so good. Now, on the other machines I have sendmail running > (sendmail -bd), which also works fine BUT whenever I turn on one of these > machines, sendmail wants to look something up using the nameserver, and so > the boot-process hangs until the ppp-machine has established a connection > to the Internet. > > This bothers me a little. I wonder if there's a way to prevent sendmail > from doing that, because I don't see a need for a ppp-connection being > established every time I start one of my computers, only for allowing > sendmail to do this one nslookup operation (I don't even know WHAT > sendmail looks up...) > > So... does anybody have an idea what I can do so that sendmail starts > normally but does *not* establish / need a connection to the > Internet? While this behavior is not really a problem for me, I'm just > curious if I can do something against it... Check for the IP sendmail queries, add it to the machines /etc/hosts file, then pray the IP never changes. Don't forget to configure the resolver to search the hosts file before querying DNS. Alternatively, start a caching-only namerserver, have ppp block DNS queries, or hack sendmail.cf to not issue DNS queries. All of those possibilities carry other consequences, thus I implemented the above mentioned solution at home. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message