I've used dig's zone transfer client to extract zone data from a Windows DNS server for import into a CMDB, so I imagine you can do something similar with that. The output from dig is very awkable and shouldn't be hard to translate into /etc/hosts format.
Something like: dig -t AXFR <zone-name> @<dns-server-name> Windows DNS will require "+noedns", not sure about other DNS servers. Skylar On Fri, Feb 21, 2014 at 8:01 AM, craig constantine <[email protected]>wrote: > I have a DNS zone that I'd like to have available, and up to date, in the > traditional Un*x /etc/hosts file. (Just the hostname-to-address (IN A) > records of course.) So something that would do a zone transfer from a name > server, generate an /etc/hosts formatted file and > put-that-into/update-that-on, the Puppet master? > > --Craig Constantine, http://constantine.name > > > _______________________________________________ > Discuss mailing list > [email protected] > https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss > This list provided by the League of Professional System Administrators > http://lopsa.org/ > >
_______________________________________________ Discuss mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/
