From ac16d044f5871c6bddcc874811cbf5216b79cb26 Mon Sep 17 00:00:00 2001 From: SyBernot Date: Thu, 11 Apr 2019 10:38:30 -0700 Subject: [PATCH] add force_zone_rebuild.sql call it with /opt/ona/bin/dcm.pl -r ona_sql sql=force_zone_rebuild.sql after provisioning a new dns server to populate the zone files. --- sql/force_zone_rebuild.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sql/force_zone_rebuild.sql diff --git a/sql/force_zone_rebuild.sql b/sql/force_zone_rebuild.sql new file mode 100644 index 00000000..f49eafa6 --- /dev/null +++ b/sql/force_zone_rebuild.sql @@ -0,0 +1,13 @@ +-- force zone rebuild +-- +-- LONG_DESC: +-- This query will force a rebuild of all zones on all nameservers. +-- Normally rebuilds only happen if there is a change to the domain. +-- This is useful for bringing up a new server and populating all the zones. +-- +-- USAGE: +-- No options available for this query, just run it +-- +-- Your SQL statement would go below this line: + +UPDATE `dns_server_domains` SET `rebuild_flag`='1' WHERE 1