From owner-freebsd-questions@FreeBSD.ORG Sat Aug 22 04:37:12 2009 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 9C2E1106568C for ; Sat, 22 Aug 2009 04:37:12 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 59FBA8FC16 for ; Sat, 22 Aug 2009 04:37:12 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so727720qwe.7 for ; Fri, 21 Aug 2009 21:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=XpW21Y+KGQJyLv/KpI5svf7EZwGJKnpOntfQxkEm4Yc=; b=sish9Nwlj6dyYig22+S1gcM2Q6PjVSRRlS8L1nybKKR8bOhsAYJFWxZzKK0DbBPRU9 RLvakNpHBtmDb7jTcUsvRmSX4yPSv+rFTnu4ph58/8JcQ68ep7E87hLd1WydnlkKjhYI qX0iUTD36msVYu722jV74Zy2sqlSD8vzjSZj0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=xiXntH+umKvZy9uZmtJYbJp54xNF32AifWvO7+HOiH85B9xnP6+Vz/mlnpdsg+3ZEC Ltvz64x34X65twf4z9XfGnWfPX3iJzUNV0+9xXgX7g/Ph0k6FioqtO3tli6TBCs9XRS6 uloiqQnuhp/kPrzLc8oNIK0DMzjAAo1UUlrAw= MIME-Version: 1.0 Received: by 10.229.54.143 with SMTP id q15mr497899qcg.74.1250915830140; Fri, 21 Aug 2009 21:37:10 -0700 (PDT) Date: Fri, 21 Aug 2009 21:37:09 -0700 Message-ID: <560f92640908212137s376f1dc8vaba59618a6b71d67@mail.gmail.com> From: Nerius Landys To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: /etc/rc.d/named dilemma X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2009 04:37:12 -0000 I am trying to figure out why DNS lookups are not possible right after the "named" process has been launched (during bootup). I am kind of a newb at diagnosing these sorts of issues, but as an attempt to figure out what's wrong, I added the following lines to the very bottom of my /etc/rc.d/named: case "$1" in *start) sleep 5 cat /etc/resolv.conf ping -c 4 127.0.0.1 host google.com || true ;; esac And so, during bootup, I get the following messages, as expected: Starting named. domain nerius.com nameserver 127.0.0.1 PING 127.0.0.1 .... 64 bytes from 127.0.0.1: icmp..... ... 4 packets transmitted, 4 packets received... ... ;; connection timed out; no servers could be reached The last line is what I don't understand. named is listening on 127.0.0.1, and normal lookups can be done fine after bootup. Then why can't I do a lookup right after named starts? By the way, the underlying issue that I'm trying to address is that ntpdate, which comes right after named in the boot sequence, is not able to resolve the DNS for the time servers. Thx.