From owner-freebsd-questions Sun Jun 16 4:51:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by hub.freebsd.org (Postfix) with ESMTP id C0BAD37B404 for ; Sun, 16 Jun 2002 04:50:48 -0700 (PDT) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 17JYYO-00006z-00; Sun, 16 Jun 2002 18:50:44 +0700 Received: from uni.land3.nsu.ru ([193.124.213.230] helo=land3.nsu.ru) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 17JYYN-00006E-00; Sun, 16 Jun 2002 18:50:43 +0700 Received: from localhost (lucky@localhost) by land3.nsu.ru (8.11.6/8.11.6) with ESMTP id g5GBohe82920; Sun, 16 Jun 2002 18:50:43 +0700 (NOVST) (envelope-from lucky@land3.nsu.ru) Date: Sun, 16 Jun 2002 18:50:43 +0700 (NOVST) From: Alexey Privalov To: johann@broadpark.no Cc: questions@freebsd.org Subject: Re: Internal DNS In-Reply-To: <1024226178.3d0c7382997fc@mail.broadpark.no> Message-ID: <20020616184831.F73351-100000@land3.nsu.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Envelope-To: questions@freebsd.org, johann@broadpark.no Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi. add following in your named.conf: logging { channel default_ch { file "/var/log/named/named.log"; severity info; print-category yes; print-time yes; }; channel security_ch { file "/var/log/named/named_sec.log"; severity info; print-category yes; print-time yes; }; category default { default_ch; }; category security { security_ch; }; }; and you`ll see what are happening. On Sun, 16 Jun 2002 johann@broadpark.no wrote: > Date: Sun, 16 Jun 2002 13:16:18 +0200 > From: johann@broadpark.no > To: questions@freebsd.org > Subject: Internal DNS > > Hi. > > I'm in the process of setting up an internal DNS server so Postfix may have > an easier setup. I've set up the zonefiles and added their reference to > named.conf, yet the hosts (muay.lan, ninja.lan) aren't found: > > [named.conf] > ###################################### > > options { > directory "/etc/namedb"; > }; > > # forwarders { # What is wrong with this forwarding? > # 217.13.4.21; # BIND claims it's wrong. > # 217.13.7.136; > # }; > > zone "." { > type hint; > file "named.root"; > }; > > zone "0.0.127.in-addr.arpa" { > type master; > file "localhost.rev"; > }; > > zone "lan" { > type master; > file "db.lan"; > }; > > zone "0.168.192.in-addr.arpa" { > type master; > file "db.lan.rev"; > }; > > zone "terrabionic.com" { > type master; > file "db.terrabionic.com"; > }; > > [db.lan] > ###################################### > > lan. IN SOA muay.lan. johann.ninja.lan. ( > 2002041601 ; Serial > 10800 ; Refresh > 3600 ; Retry > 604800 ; Expire > 86400 ) ; Minimum TTL > > @ IN NS muay.lan. > > muay.lan. IN A 192.168.0.1 > ninja.lan. IN A 192.168.0.2 > > [db.lan.rev] > ###################################### > > 0.168.192.in-addr.arpa. IN SOA muay.lan. johann.ninja.lan. ( > 2002041601 ; Serial > 10800 ; Refresh > 3600 ; Retry > 604800 ; Expire > 86400 ) ; Minimum TTL > > @ IN NS muay.lan. > > 1.0.168.192.in-addr.arpa. IN PTR muay.lan. > 2.0.168.192.in-addr.arpa. IN PTR ninja.lan. > > [db.localhost.rev] > ###################################### > > 0.0.127.in-addr.arpa. IN SOA muay.lan. johann.ninja.lan. ( > 20020613 ; Serial > 3600 ; Refresh > 900 ; Retry > 3600000 ; Expire > 3600 ) ; Minimum > > 0.0.127.in-addr.arpa. IN NS muay.terrabionic.com. > 0.0.127.in-addr.arpa. IN PTR localhost.terrabionic.com. > > [db.terrabionic.com] > ###################################### > > terrabionic.com. IN SOA ns1.terrabionic.com. johann.ninja.lan. ( > 2002041201 ; Serial > 10800 ; Refresh > 3600 ; Retry > 604800 ; Expire > 86400 ) ; Minimum TTL > > @ IN NS ns1.terrabionic.com. > @ IN NS ns2.terrabionic.com. > > localhost IN A 127.0.0.1 > ns1 IN A 217.13.29.51 > ns2 IN A 217.8.139.93 > @ IN A 217.13.29.51 > > muay IN CNAME @ > ninja IN CNAME @ > mail IN CNAME @ > www IN CNAME @ > > @ IN MX 10 mail.terrabionic.com. > > ###################################### > > Well, this is my setup. If anyone knows why things still aren't working, > PLEASE let me know. Also, what happens to /etc/hosts now that BIND steps in > its shoes? > > Thanks. > > -- Johann > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message