From owner-freebsd-questions@FreeBSD.ORG Sun Oct 19 13:50:20 2008 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 3CAA710656A6 for ; Sun, 19 Oct 2008 13:50:20 +0000 (UTC) (envelope-from support@vocaboly.com) Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by mx1.freebsd.org (Postfix) with ESMTP id EC03C8FC17 for ; Sun, 19 Oct 2008 13:50:19 +0000 (UTC) (envelope-from support@vocaboly.com) Received: by gxk9 with SMTP id 9so2631239gxk.19 for ; Sun, 19 Oct 2008 06:50:19 -0700 (PDT) Received: by 10.151.156.12 with SMTP id i12mr3991511ybo.240.1224422547392; Sun, 19 Oct 2008 06:22:27 -0700 (PDT) Received: by 10.151.117.9 with HTTP; Sun, 19 Oct 2008 06:22:27 -0700 (PDT) Message-ID: <565ddad50810190622s7fa76ce2la293cb4f9e8b496a@mail.gmail.com> Date: Sun, 19 Oct 2008 06:22:27 -0700 From: Kevin To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Bind BIND 9.3.5 configuration 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: Sun, 19 Oct 2008 13:50:20 -0000 I installed bind 9.3.5 on my new FreeBSD 6.3 server. I copied named.conf directly from my old server (originally from the Internet), it seems working fine but with some startup errors. I hope someone can explain or tune the configuration a little bit for me, any input would be greatly appreciated. Q1. Bind gave me errors on the following lines due to missing files, I have only empty.db, localhost-forward.db and localhost-reverse.db. Should I modify all localhost.rev to localhost-reverse.db? Is it safe to remove all lines about localhost-v6.rev? ------------------------------------------- zone "0.0.127.IN-ADDR.ARPA" { type master; file "master/localhost.rev"; }; // RFC 3152 zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" { type master; file "master/localhost-v6.rev"; }; // RFC 1886 -- deprecated zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" { type master; file "master/localhost-v6.rev"; }; zone "localhost" IN { type master; file "master/localhost.rev"; allow-update { none; }; }; --------------------------------------------------- Q2. Regarding the following lines, it seems that I should uncomment the forwarders, is it the the same IP in /etc/resolv.conf? Or I need to ask my ISP? --------------------------------------------------- // If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { 127.0.0.1; }; */ Q3. About the following comments, should I enable a local name server? and how to do it exactly? I have added 127.0.0.1 in resolv.conf, but how to enable it in /etc/rc.conf? ------------------------------------------------------------------------------------------ // If you enable a local name server, don't forget to enter 127.0.0.1 // first in your /etc/resolv.conf so this server will be queried. // Also, make sure to enable it in /etc/rc.conf. I have used this configuration for several years and always quite confused. I have put my named.conf at http://www.msofficeforums.com/named.conf . Please give me some suggestions. Thanks! Kevin