From: Mukund Sivaraman Date: Fri, 11 May 2012 03:24:15 +0000 (+0530) Subject: [1911] Update guide on how to configure in-mem datasource with sqlite3 backend X-Git-Tag: trac2351_base~226^2~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc9d78dae2780eb90d67f8593f7c8fbad202d4ca;p=thirdparty%2Fkea.git [1911] Update guide on how to configure in-mem datasource with sqlite3 backend --- diff --git a/doc/guide/bind10-guide.xml b/doc/guide/bind10-guide.xml index 630c0c4b7b..f7ff35c8bd 100644 --- a/doc/guide/bind10-guide.xml +++ b/doc/guide/bind10-guide.xml @@ -1321,9 +1321,10 @@ This may be a temporary setting until then. class to optionally select the class (it defaults to IN); and - zones to define the - file path name and the - origin (default domain). + zones to define + the file path name, + the filetype (e.g., sqlite3), + and the origin (default domain). By default, this is empty. @@ -1333,7 +1334,8 @@ This may be a temporary setting until then. Only the IN class is supported at this time. By default, the memory data source is disabled. Also, currently the zone file must be canonical such as - generated by named-compilezone -D. + generated by named-compilezone -D, or + must be an SQLite3 database. @@ -1478,6 +1480,39 @@ This may be a temporary setting until then. after it is loaded. + + +
+ In-memory Data Source With SQLite3 Backend + + + + The following commands to bindctl + provide an example of configuring an in-memory data + source containing the example.org zone + with a SQLite3 backend file named example.org.sqlite3: + + + + > config add Auth/datasources +> config set Auth/datasources[1]/type "" +> config add Auth/datasources[1]/zones +> config set Auth/datasources[1]/zones[0]/origin "" +> config set Auth/datasources[1]/zones[0]/file "" +> config set Auth/datasources[1]/zones[0]/filetype "" +> config commit + + The authoritative server will begin serving it immediately + after it is loaded. + + +
+ +
+ Reloading an In-memory Data Source + Use the Auth loadzone command in bindctl to reload a changed master @@ -1496,6 +1531,10 @@ This may be a temporary setting until then. --> +
+
+ Disabling In-memory Data Sources + By default, the memory data source is disabled; it must be configured explicitly. To disable all the in-memory zones, @@ -1628,12 +1667,6 @@ TODO - - In the current development release of BIND 10, incoming zone - transfers are only available for SQLite3-based data sources, - that is, they don't work for an in-memory data source. - -
Configuration for Incoming Zone Transfers @@ -1753,6 +1786,19 @@ what if a NOTIFY is sent?
+
+ Incoming Transfers with In-memory Datasource + + + In the case of an incoming zone which is served by an in-memory + datasource with an SQLite3 backend, the zone is first stored in + the corresponding backend file. Then, + b10-auth is automatically sent a + loadzone command to reload the corresponding + zone into memory from the backend file. + +
+