Forum: Cfengine Help
Subject: best practices for manipulating strings
Author: nkabir
Link to topic: https://cfengine.com/forum/read.php?3,19954,19954#msg-19954

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?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to