From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 18 08:30:29 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9FF316A4CE for ; Mon, 18 Apr 2005 08:30:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BC9243D53 for ; Mon, 18 Apr 2005 08:30:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3I8UTER074979 for ; Mon, 18 Apr 2005 08:30:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3I8US6r074976; Mon, 18 Apr 2005 08:30:28 GMT (envelope-from gnats) Resent-Date: Mon, 18 Apr 2005 08:30:28 GMT Resent-Message-Id: <200504180830.j3I8US6r074976@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Schweikle Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7BD316A4CE for ; Mon, 18 Apr 2005 08:27:35 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F01243D5F for ; Mon, 18 Apr 2005 08:27:35 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3I8RZu0076707 for ; Mon, 18 Apr 2005 08:27:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j3I8RZTn076706; Mon, 18 Apr 2005 08:27:35 GMT (envelope-from nobody) Message-Id: <200504180827.j3I8RZTn076706@www.freebsd.org> Date: Mon, 18 Apr 2005 08:27:35 GMT From: Thomas Schweikle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/80054: dns-servers are started to late if not named X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 08:30:30 -0000 >Number: 80054 >Category: misc >Synopsis: dns-servers are started to late if not named >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 18 08:30:28 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Thomas Schweikle >Release: FreeBSD 5.4-STABLE >Organization: >Environment: FreeBSD hazel.tps 5.4-STABLE FreeBSD 5.4-STABLE #32: Wed Apr 13 12:49:28 CEST 2005 screen@hazel.tps:/usr/obj/usr/src/sys/HAZEL i386 >Description: if an other dns server than named is used, like dnsmasq, this server is started after other daemons requiring dns services, like ntpdate and ntpd. >How-To-Repeat: In /etc/rc.conf set: | dnsmasq_enable="YES" | named_enable="NO" Configure dnsmasq in /usr/local/etc/dnsmasq.conf: | domain-needed | bogus-priv | filterwin2k | resolv-file=/etc/resolv.dnsmasq | local=/invalid/ | expand-hosts | domain=invalid | dhcp-range=192.168.1.100,192.168.1.199,255.255.255.0,192.168.1.255,48h | dhcp-option=3,192.168.1.1 | dhcp-authoritative | cache-size=150 | no-negcache Configure /etc/resolv.dnsmasq: | search invalid | nameserver 217.237.150.141 | nameserver 217.237.150.97 Configure /etc/resolv.conf: | search invalid | nameserver 127.0.0.1 | nameserver 192.168.1.11 Restart. ntpdate will now be started before dnsmasq is running. Thus ntpdate will never find configured servers. This makes the system start extremly slow, since it waits for ntpdates dns query to time out. Second: time is never set by ntpdate, in tune ntpd does not sync if the local clocks displacement is to large. >Fix: Any dns server selected has to start before and daemon using dns services. This makes daemon starting global. It can't matter a daemon being "Local" or "System". It maters what it provides. The error is within the start procedure first starting all "System" daemons, then local ones. We can't do it this way. We have to intermix both, then find what has to be started first, regardless of "Local" or "System". >Release-Note: >Audit-Trail: >Unformatted: