From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 05:46:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9106B16A4CE for ; Tue, 23 Mar 2004 05:46:42 -0800 (PST) Received: from hotmail.com (bay16-f27.bay16.hotmail.com [65.54.186.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FDD043D2D for ; Tue, 23 Mar 2004 05:46:42 -0800 (PST) (envelope-from weiwuzhang@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 23 Mar 2004 05:46:42 -0800 Received: from 218.85.103.175 by by16fd.bay16.hotmail.msn.com with HTTP; Tue, 23 Mar 2004 13:46:42 GMT X-Originating-IP: [218.85.103.175] X-Originating-Email: [weiwuzhang@hotmail.com] X-Sender: weiwuzhang@hotmail.com From: "Zhang Weiwu" To: questions@freebsd.org Date: Tue, 23 Mar 2004 21:46:42 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 23 Mar 2004 13:46:42.0571 (UTC) FILETIME=[46412DB0:01C410DD] Subject: Re: tell sendmail to use a different dns server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: zhangweiwu@realss.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 13:46:42 -0000 Zhang Weiwu wrote: > Hello. I'm using the dns service on a router box. This router does provide dns service, on which every computer in the LAN has a local domain name (computername.our.lan) > > Now the built in dns server's function is limited; it does not relay MX type of record. Thus sending mail using sendmail always get hostname lookup failure. > 1. If I change my name server address in resolv.conf to use my ISP's dns server, I cannot access lan computers using local hostnames. > 2. If I use our dns server, I cannot send mails through sendmail. > > So what should I do? Can I ask sendmail to use ISP's dns server, while the rest programs use local dns server? I just realized I can do this in resolve.conf: ==== # our LAN's dns server nameserver 192.168.0.1 # ISP nameserver 202.101.103.54 Hope this is the best method. _________________________________________________________________ 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com