From owner-freebsd-isp@FreeBSD.ORG Mon Jul 21 10:12:26 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82FDA37B401 for ; Mon, 21 Jul 2003 10:12:26 -0700 (PDT) Received: from unix1.sihope.com (unix1.sihope.com [207.195.195.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81E8643F75 for ; Mon, 21 Jul 2003 10:12:25 -0700 (PDT) (envelope-from adamm@sihope.com) Received: from unix1.sihope.com (adamm@localhost.sihope.com [127.0.0.1]) by unix1.sihope.com (8.12.9/8.11.6) with ESMTP id h6LHCON5017380; Mon, 21 Jul 2003 12:12:24 -0500 (CDT) Received: from localhost (adamm@localhost)h6LHCNIk017377; Mon, 21 Jul 2003 12:12:24 -0500 (CDT) X-Authentication-Warning: unix1.sihope.com: adamm owned process doing -bs Date: Mon, 21 Jul 2003 12:12:23 -0500 (CDT) From: Adam Maloney To: Evren Yurtesen In-Reply-To: <20030721165525.L21521@finland.ispro.net.tr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-isp@freebsd.org Subject: Re: checking dns records from named.conf X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 17:12:26 -0000 Something like: for DOMAIN in `cat /etc/named.conf | grep "zone" | awk '{ print $2 }' | sed s/\"//g`; do dig @f.gtld-servers.net $DOMAIN | grep "ns1.ispro.net.tr" 2>&1 > /dev/null || echo "$DOMAIN not pointed here"; done (untested, but basically what I've done in the past whenever I need taht). For each domain in named.conf, query the root-servers for the authorative NS records (ns1.ispro.net.tr should be replaced with your primary nameserver). Then if the grep does not succeed (your nameserver not in the output) then echo the domain so we know about it. May take some tweaking. Adam Maloney Systems Administrator Sihope Communications On Mon, 21 Jul 2003, Evren Yurtesen wrote: > I have about 1000 domain names in my named.conf file. > I wonder if it would be possible to check the validity of these domains > or even if they are pointing to my name server or not easily... > Is there a ready script or something somebody knows here? > Thanks > > Evren > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" >