Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!MSU.BITNET!08071TCP From: 08071TCP@MSU.BITNET (Doug Nelson) Newsgroups: comp.protocols.tcp-ip Subject: Re: /etc/hosts to BIND Message-ID: <8904261021.AA25535@ucbvax.Berkeley.EDU> Date: 25 Apr 89 21:22:02 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 >In the BIND 4.8 distribution we find: > 1) :pwedit - convert /etc/passwd into user records for BIND > 2) atod.y - convert /usr/lib/aliases into mail records for BIND > >What we do not find is a somewhat more complex program to transform /etc/hosts >into records for the BIND database. Has anyone done this? I have several "awk" scripts you might find useful. See the files in /src/hostmaint on serv1.cl.msu.edu (via anonymous ftp). I maintain all my records in the "hosts.txt" format, and convert the same file to both the /etc/hosts format and named format. Also there is a script to change "hosts" format into "hosts.txt", which will get you started. Doug Nelson Network Software Manager Michigan State University