in reply to Re^2: DNS Failover
in thread DNS Failover

Would you not then have to maintain not only 18 zone files but 18 templates as well?

No, you wouldn't. You'd just maintain the templates, and generate the "real" config files automatically.

Introducing Templates is effectively changing your problem from "read the config files, search and replace in them, and write them back" to "Fill the templates with variables, and write the output into the config files".

If that confuses you, your best bet is to stay with your original solution, and wait until somebody has a better suggestion on how to handle it ;-)

Replies are listed 'Best First'.
Re^4: DNS Failover
by bjensen34 (Initiate) on Oct 29, 2007 at 22:56 UTC
    Ok believe I am following you now. So the 20 A Records get added to the templates only and then the script that calls the templates would generate new zone files.

    Sorry for the confusion. I will do a bit more digging on templates. Seems like it may very well be the best way to go.

    Thank you!

    Brad Jensen