using afr to increment values
Posted: Wed Mar 30, 2005 8:46 am
Hi, I just found your product and so far in my testing is does everything that i'd like it to, except for one thing. I'm currently working with some dns zone files which have a format of
@ IN SOA dns-1.example.com. webadmin.example.com. (
18 ; Serial number
900 ; Refresh
600 ; Retry
86400 ; Expire
3600 ) ; Minimum TTL
NS dns-1.example.com.
NS dns-2.example.com.
A nnn.nnn.nnn.nnn
MX 10 mail
mail A nn.nn.nnn.n
www A nnn.nnn.nnn.nnn
What i'm having a hard time wraping my head around is how to take the "Serial Number" (in this case 18, but could be different for each file) and increment it's value by 1. (ie 18 -> 19). Is there a way that AFR can do this or am I back to writing code? If it does than you just got yourselves another customer!!!
Thanks in advance,
benhab
@ IN SOA dns-1.example.com. webadmin.example.com. (
18 ; Serial number
900 ; Refresh
600 ; Retry
86400 ; Expire
3600 ) ; Minimum TTL
NS dns-1.example.com.
NS dns-2.example.com.
A nnn.nnn.nnn.nnn
MX 10 mail
mail A nn.nn.nnn.n
www A nnn.nnn.nnn.nnn
What i'm having a hard time wraping my head around is how to take the "Serial Number" (in this case 18, but could be different for each file) and increment it's value by 1. (ie 18 -> 19). Is there a way that AFR can do this or am I back to writing code? If it does than you just got yourselves another customer!!!
Thanks in advance,
benhab