From owner-freebsd-questions Mon Sep 16 19:12:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2747F37B400 for ; Mon, 16 Sep 2002 19:12:46 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B60FB43E3B for ; Mon, 16 Sep 2002 19:12:44 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a020.otenet.gr [212.205.215.20]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g8H2CcLH010361; Tue, 17 Sep 2002 05:12:39 +0300 (EEST) Received: (from keramida@localhost) by hades.hell.gr (8.11.6/8.11.6) id g8H2Cc391250; Tue, 17 Sep 2002 05:12:38 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 17 Sep 2002 05:12:36 +0300 From: Giorgos Keramidas To: Mike Hogsett Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Hosts file from DNS zone files? Message-ID: <20020917021236.GF44563@hades.hell.gr> References: <200209161802.g8GI2l7B070289@axp.csl.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209161802.g8GI2l7B070289@axp.csl.sri.com> X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 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 On 2002-09-16 11:02, Mike Hogsett wrote: > > Anyone know of a tool to build a hosts file from a set of DNS zone files? > It needs to handle multiple domains. Parse the output of dig. My local caching named uses "hell.gr" as the domain name for the hostnames in my private space. I can get a hosts listing with: $ dig @127.0.0.1 hell.gr axfr | \ grep 'IN[[:space:]]A' | \ awk '{print $NF,$1,$1}' | \ sed -e 's/$/.hell.gr/' - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message