From owner-freebsd-questions@FreeBSD.ORG Sat Aug 22 04:37:20 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 3927110656EA for ; Sat, 22 Aug 2009 04:37:20 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 128F28FC08 for ; Sat, 22 Aug 2009 04:37:19 +0000 (UTC) Received: by wa-out-1112.google.com with SMTP id m38so291108waf.27 for ; Fri, 21 Aug 2009 21:37:19 -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=C16ZG7OQJ6AM5MVvwqgtUHzqUg+xNvLQDz2mL4QSG/U43/pqmdh4mE+jNJc4244NPU vdamT8K6NWiflzGdomeBkLkn9Py5BYA0b+JFAZm1gBf0rx63QRq1X6DSmSGzXuqcQmqe P5dVPtn+iplCDsjJa8nCJ29BXYPtnte0vBSqI= 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=UtYlGw93IvGb25tPDFSQpviiTVCgtGmLu22HMKtuTM/R9Z5JqmR6E8H6baJqWaWESJ BCMRPrh9bYQE6a/8Wr5M64rX+eqK3entGiMEKC+pZzp2EyqDfBM8Njx1DoqWGjGLmTOy zm5MqRRqrwN7WDE+Jb9iKaSvRFKSJSzw/owYg= MIME-Version: 1.0 Received: by 10.115.101.10 with SMTP id d10mr2840241wam.61.1250915839056; Fri, 21 Aug 2009 21:37:19 -0700 (PDT) Date: Fri, 21 Aug 2009 21:37:19 -0700 Message-ID: <560f92640908212137h7bd235bcqbcf6d7a727abf6e5@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:20 -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.