On Apr 20, 2011, at 4:37 PM, John Stoffel wrote:
> So when our script updates the SOA serial number, it pulls the one out of the 
> file, but that's invariably wrong because the SOA serial has been steadily 
> incrementing due to DDNS updates.  Fun.

I understand you don't want to update this script, but is it seriously too 
difficult to do, instead of some code that uses a regular-expression to pull 
the serial number out of a file, something like:

$ FOO=`dig +short @ns1.megacity.org megacity.org soa | cut -f 3 -d ' '` ; echo 
$FOO
2011041503

and get the current serial number that way?

It seems to me that this would require one or two lines of change in the code 
to grab the output of that and stuff it into your "last serial number" value, 
no?

Cheers,
D
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to