From owner-freebsd-net@FreeBSD.ORG Wed Jul 4 14:48:16 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1246C106566B for ; Wed, 4 Jul 2012 14:48:16 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from EXFESMQ04.datapipe-corp.net (exfesmq04.datapipe.com [64.27.120.68]) by mx1.freebsd.org (Postfix) with ESMTP id A58048FC0C for ; Wed, 4 Jul 2012 14:48:15 +0000 (UTC) Received: from nat.myhome (192.168.128.103) by EXFESMQ04.datapipe-corp.net (192.168.128.29) with Microsoft SMTP Server (TLS) id 14.2.298.4; Wed, 4 Jul 2012 10:47:02 -0400 Date: Wed, 4 Jul 2012 09:47:22 -0500 From: "Paul A. Procacci" To: m s Message-ID: <20120704144722.GB1884@nat.myhome> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [192.168.128.103] Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: setting up dns server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 14:48:16 -0000 - What bind listening? (Can you see it with netstat?) - What port is it listening to? - What errors (if any) are in the error log? I'm afraid your question really isn't a specific FreeBSD problem. You might have better luck on the BIND mailing list. ~Paul On Wed, Jul 04, 2012 at 06:43:00AM -0700, m s wrote: > Hi all. > I want to config FreeBSD as a dns server. I did below configuration but > when I use "nslookup" command it doesn't work. I also enabled named servi= ce > in rc.conf file and put my ip as a nameserver in "resolv.conf". > what am I missing?is there anything else I should do? > > any help would be appriciated. > > My "named.conf" file: > -------------------------------------------------------------------------= ------------------------------------------ > > options { > > directory "/etc/namedb"; > > pid-file "/var/run/named/pid"; > > dump-file "/var/dump/named_dump.db"; > > statistics-file "/var/stats/named.stats"; > > }; > > > > zone "." { type hint; file "/etc/namedb/named.root"; }; > > > > zone "0.0.127.IN-ADDR.ARPA" { > > type master; > > file "master/localhost.rev; > > }; > > > > zone "ictptk.net" { type master; file "/etc/namedb/master/db.domain"; }; > > > > zone "10.10.10.in-addr.arpa" { > > type master; > > file "/etc/named/master/db.ict"; > > }; > > -------------------------------------------------------------------------= ------------------------------------------ > > > my "db.ict" file : > > > -------------------------------------------------------------------------= ------------------------------------------ > > > > $TTL 3600 > > > > @ IN SOA ns.ictptk.net. root.ns.ictptk.net. = ( > > > 2001220200 > ;Serial > > 3600 > ;Refresh > > 900 > ;Retry > > > 3600000 > ;Expire > > 3600 > ) > ;Minimum > > IN NS ns.ictptk.net. > > 1 IN PTR ictptk.net. > > -------------------------------------------------------------------------= ------------------------------------------ > > my "db.domain" file : > > -------------------------------------------------------------------------= ------------------------------------------ > > $TTL 3600 > > > > @ IN SOA ns.ictptk.net. root.ns.ictptk.net. = ( > > > 2001220200 > ;Serial > > 3600 > ;Refresh > > 900 > ;Retry > > > 3600000 > ;Expire > > 3600 > ) > ;Minimum > > IN NS ns.ictptk.net. > > ictptk.net IN A 10.10.10.1 > > www.ictptk.net. IN CNAME ictptk.net. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" ________________________________ This message may contain confidential or privileged information. If you are= not the intended recipient, please advise us immediately and delete this m= essage. See http://www.datapipe.com/legal/email_disclaimer/ for further inf= ormation on confidentiality and the risks of non-secure electronic communic= ation. If you cannot access these links, please notify us by reply message = and we will send the contents to you.