From owner-freebsd-questions@FreeBSD.ORG Wed Aug 15 00:43:14 2007 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 28EF716A417 for ; Wed, 15 Aug 2007 00:43:14 +0000 (UTC) (envelope-from nicholas.wieland@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id C939813C45A for ; Wed, 15 Aug 2007 00:43:13 +0000 (UTC) (envelope-from nicholas.wieland@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1364046wxd for ; Tue, 14 Aug 2007 17:43:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:message-id:content-type:to:subject:from:date:x-mailer; b=SU/2Eu0RHSpGJ9IwVzzTDFi1NtuUyg7BYhnPfnUFxbid+7VZ6eIEETVwe1bxAf+izW11Pd3gBJNxcRGoufxhf7m2THrOdblFFOXuLprYkR/DziZSIKgp4Zo6SyNpuWAx/HXN7+XVY3lN5spbz7nCnPxt3jM5vlhSdBinRbqmClk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:message-id:content-type:to:subject:from:date:x-mailer; b=cXFzkazPoP/nS71IqbHIrFEVZNPAx9zvVPlHOqnx/CnAO6kXTaHZGTin7I6IekvQjpWhD0nMHIJJyLuEmHY8d/J2LChWYjUx1ZKvxqoh4xnqKfJ8LnXtyeoSFbMm0o4EuDNZEW6NUp3/Mx6JwMuSM217yD7MbpndOGAwPOgOsA8= Received: by 10.70.100.14 with SMTP id x14mr13107477wxb.1187135060778; Tue, 14 Aug 2007 16:44:20 -0700 (PDT) Received: from ?192.168.0.3? ( [87.8.96.242]) by mx.google.com with ESMTPS id i38sm15496306wxd.2007.08.14.16.44.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Aug 2007 16:44:19 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) Message-Id: <41FB0507-8216-416A-86FB-F3A1CE56D753@gmail.com> To: freebsd-questions@freebsd.org From: Nicholas Wieland Date: Wed, 15 Aug 2007 01:44:13 +0200 X-Mailer: Apple Mail (2.752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Local domain with Bind 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: Wed, 15 Aug 2007 00:43:14 -0000 Hi *, I have a problem setting up Bind9, and I really don't understand what's wrong with my configuration. luna# uname -a FreeBSD luna.subbacultcha.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/ obj/usr/src/sys/GENERIC i386 luna# cat /etc/namedb/named.conf acl "subbacultcha" { 192.168.0.0/24; localnets; }; options { directory "/etc/namedb"; pid-file "/var/run/named/pid"; dump-file "/var/dump/named_dump.db"; statistics-file "/var/stats/named.stats"; allow-query { "subbacultcha"; }; forwarders { 208.67.222.222; 208.67.220.220; }; }; logging { channel named_log { syslog named; severity debug 3; print-category yes; print-time yes; print-severity yes; }; category default { named_log; }; category xfer-in { named_log; }; category xfer-out { named_log; }; category unmatched { named_log; }; }; zone "." { type hint; file "named.root"; }; 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.ARP A" { type master; file "master/localhost-v6.rev"; }; zone "subbacultcha.local" { type master; file "/etc/namedb/subbacultcha.local"; }; zone "0.168.192.in-addr.arpa" { type master; file "/etc/namedb/revp.0.168.192"; }; luna# cat /etc/namedb/subbacultcha.local subbacultcha.local. IN SOA ns.subbacultcha.local. root.subbacultcha.local ( 200708111 ; serial 3H ; refresh 1H ; retry 1W ; expire 1D ) ; minimum subbacultcha.local. IN NS ns.subbacultcha.local. IN A 192.168.0.2 mail.subbacultcha.local. IN MX 10 mail.subbacultcha.local. subbacultcha.local. IN MX 10 mail.subbacultcha.local. localhost IN A 127.0.0.1 luna CNAME subbacultcha.local. hg CNAME subbacultcha.local. luna# cat /etc/namedb/revp.0.168.192 $TTL 1D @ IN SOA subbacultcha.local. root.subbacultcha.local. ( 20070811 ; serial 3H ; refresh 1H ; retry 1W ; expire 1D ; minimum ) IN NS ns.subbacultcha.local. IN PTR mail.subbacultcha.local. IN PTR hg.subbacultcha.local. IN PTR subbacultcha.local. This is the problem from another machine on the lan (192.168.0.3): ngw@chienandalusia ~$ dig subbacultcha.local ; <<>> DiG 9.3.4 <<>> subbacultcha.local ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30754 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;subbacultcha.local. IN A ;; ANSWER SECTION: subbacultcha.local. 86400 IN A 192.168.0.2 ;; AUTHORITY SECTION: subbacultcha.local. 86400 IN NS ns.subbacultcha.local. ;; Query time: 8 msec ;; SERVER: 192.168.0.2#53(192.168.0.2) ;; WHEN: Wed Aug 15 01:39:26 2007 ;; MSG SIZE rcvd: 69 ngw@chienandalusia ~$ ping subbacultcha.local ping: cannot resolve subbacultcha.local: Unknown host ngw@chienandalusia ~$ ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2): 56 data bytes 64 bytes from 192.168.0.2: icmp_seq=0 ttl=64 time=0.743 ms When I ping the domain nothing happens in logs ... Thanks for every suggestion, I'm *sure* I'm missing something obvious here ... TIA, ngw -- Nicholas Wieland nicholas.wieland@gmail.com