[svn] commit: r899 - in /experiments/each-zoneload: README convert.py loadzone.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Sat Feb 20 09:44:51 UTC 2010
Author: each
Date: Sat Feb 20 09:44:50 2010
New Revision: 899
Log:
A better zone loading tool. This one uses the python sqlite3 API to
load data directly. It also loads zones using a temporary randomly-
generated zone name; this allows new zones to be loaded beside existing
ones, and then the existing ones to be deleted after the loading is
complete.
Added:
experiments/each-zoneload/loadzone.py (with props)
Removed:
experiments/each-zoneload/convert.py
Modified:
experiments/each-zoneload/README
Modified: experiments/each-zoneload/README
==============================================================================
--- experiments/each-zoneload/README (original)
+++ experiments/each-zoneload/README Sat Feb 20 09:44:50 2010
@@ -1,10 +1,4 @@
-This is an EXTREMELY preliminary zone loading tool, for testing purposes
-only.
-
-sqlite3 /tmp/zone.sqlite3 << EOF
- delete from zones;
- delete from records;
-EOF
+This is an VERY preliminary zone loading tool, for testing purposes only.
# generate keys for test zones (already done)
dnssec-keygen example.com
@@ -21,8 +15,6 @@
named-compilezone -s full -o sql1.example.com.out sql1.example.com \
sql1.example.com.signed
-# convert the zones into sql commands and send to sqlite3:
-python3 convert.py example.com.out 1 example.com. | \
- sqlite3 /tmp/zone.sqlite3
-python3 convert.py sql1.example.com.out 2 sql1.example.com. | \
- sqlite3 /tmp/zone.sqlite3
+# load the zone files into the on-disk database
+python3 loadzone.py example.com example.com.out
+python3 loadzone.py sql1.example.com sql1.example.com.out
More information about the bind10-changes
mailing list