Date: Tue, 17 Sep 2002 05:12:36 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Mike Hogsett <hogsett@csl.sri.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Hosts file from DNS zone files? Message-ID: <20020917021236.GF44563@hades.hell.gr> In-Reply-To: <200209161802.g8GI2l7B070289@axp.csl.sri.com> References: <200209161802.g8GI2l7B070289@axp.csl.sri.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-09-16 11:02, Mike Hogsett <hogsett@csl.sri.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020917021236.GF44563>