On Mon, Dec 27, 2010 at 11:46:48PM +0100, no-re...@cfengine.com wrote: > I'm trying to create an agent that creates seed forward and reverse zone > files for bind9. I'd like to specify the static addresses in both files: > forward: > myhost.acme.com. IN A 192.168.1.254 > reverse: > 254.1.168.192.in-addr.arpa IN PTR myhost.acme.com. > What's the best way to take "192.168.1.254" and reverse it to > "254.1.168.192"? I can't seem to find any utilities in CFEngine. Should I > just call out to a shell script?
Sorry if this is one of those answers to a question you didn't ask. Sounds like your trying to manage zone files with cf-engine. Personally I don't think executing commands that would edit your zone files is very convergent. I mean you sure could put logic into your script and ensure its idempotent but to me it seems like a better idea to manage the entire zone-file and distribute it with cf-engine, either via a template or just as a flat-file. I suspect others would agree but I would like to see what they have to say. I haven't deployed cf-engine im still evaluating it but as I said to me it seems the best way would be to just manage the flat file. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine