From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 13:26:49 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 561BF106566B for ; Fri, 9 Apr 2010 13:26:49 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 1327B8FC1A for ; Fri, 9 Apr 2010 13:26:48 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1O0EER-0008RM-4P for freebsd-questions@freebsd.org; Fri, 09 Apr 2010 15:26:47 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o39DQkKd016549 for ; Fri, 9 Apr 2010 15:26:46 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o39DQkBe016548 for freebsd-questions@freebsd.org; Fri, 9 Apr 2010 15:26:46 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 9 Apr 2010 15:26:46 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20100409132646.GA16510@current.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Subject: sendmail && /etc/resolv.conf modified by DHCP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 13:26:49 -0000 Hello, At home I have my WLAN as 192.168.2.0/24. After moving to my office and rebooting there, I encounter that sendmail receives messages (via fetchmail) terrible slow. I digged into this and see that the sendmail issues wrong DNS requests as (for example): 08:51:18.753491 IP xx.xx.xx.xx.49812 > 192.168.2.1.53: 12793+ MX? ubuntu.com.Sisis.de. (37) 08:51:18.867365 IP xx.xx.xx.xx.42619 > 192.168.2.1.53: 12793+ MX? physik.uni-wuerzburg.de.Sisis.de. (50) 08:51:18.982491 IP xx.xx.xx.xx.52554 > 192.168.2.1.53: 12794+ AAAA? lexasoft.ru. (29) 08:51:19.095490 IP xx.xx.xx.xx.10093 > 192.168.2.1.53: 12794+ AAAA? des.no. (24) The reason is obvious: - the /etc/resolv.conf on shutdown at home has this DNS resolver; - in my office the system comes up and when at some point the WLAN interface associates, it gets an IP and a new /etc/resolv.conf file; Why sendmail does not honour the new /etc/resolv.conf and stays with the old DNS server IP? How this is supposed to fix? An idea would be to restart sendmail via a devd hook, but maybe there is some config values for sendmail that it always check /etc/resolv.conf for fresh? Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ ˇYa basta! ˇTropas de OTAN, fuera de Afghanistan! There's an end of it! NATO troups out of Afghanistan! Schluss jetzt endlich! NATO raus aus Afghanistan!