I've got a mess
Stewart
bdlists at snerk.org
Sat Apr 17 07:48:28 UTC 2004
Barry Margolin wrote:
> Many people format their files to make it easy to do things like this.
> E.g.
>
> @ IN SOA ns1.company.com. hostmaster.company.com. (
> 2004041501 ; serial
> 3600 ; refresh
> 900 ; retry
> 604800 ; expire
> 86400 ) ; minimum
>
> Then a script can look for "; serial" and modify the serial number on
> that line.
The way I do it (old habit) is to use a template with a variable to
generate the header of the zonefile. Said header would have a variable,
perhaps even something like [ser2004041701] which could be more easily
found and updated.
When scripting it, I'd go the 'easy way' and just replace the serial
variable with the date/time string YYYYMMDDHH. Providing I wasn't
updating zones like a maniac it worked well.
--
Stewart Honsberger - http://blackdeath.snerk.org/
To teach is to learn twice.
-- Joseph Joubert
More information about the bind-users
mailing list