BIND 10 master, updated. 8ddaa8da24109d602cb7aced60e57f8422d0c529 Merge branch 'trac3020'
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jul 31 10:25:28 UTC 2013
The branch, master has been updated
via 8ddaa8da24109d602cb7aced60e57f8422d0c529 (commit)
via 979f2981bc3518e349e036f92f5058aac2b1faf8 (commit)
via 39a853b0f561e12604fcb31a2b3746d5d577071a (commit)
via 456a43775ebd7982ba98f57286702c420f983cf5 (commit)
via 5c56a768045e78576cc71346a5cf4de9f2a35a13 (commit)
via e21cb1dba24a85e7afea480562d2b7277050e0dc (commit)
via 7915732b2210e5540a74041eb759b13af0f6c405 (commit)
via 770c05222d92752594605e1fd16e9527e1d079cb (commit)
via f4dcd7d3757902c90bfa3e7b7db1600c624ea510 (commit)
via a1df84adccebfc6e3f6625aef58f1c9f31cd3eea (commit)
via 946804f3beabb2367474b15bcb173c1fc53265d6 (commit)
from 4bca9c538b8deddfc49694d35bebd44c0bbdfc81 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8ddaa8da24109d602cb7aced60e57f8422d0c529
Merge: 4bca9c5 979f298
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Jul 31 14:51:39 2013 +0530
Merge branch 'trac3020'
-----------------------------------------------------------------------
Summary of changes:
doc/guide/bind10-guide.xml | 63 ++++++++++++++++++++++++++++++++++-----
src/lib/datasrc/static.zone.pre | 12 ++++----
2 files changed, 62 insertions(+), 13 deletions(-)
-----------------------------------------------------------------------
diff --git a/doc/guide/bind10-guide.xml b/doc/guide/bind10-guide.xml
index 75718c3..33c841c 100644
--- a/doc/guide/bind10-guide.xml
+++ b/doc/guide/bind10-guide.xml
@@ -2609,21 +2609,26 @@ can use various data source backends.
> <userinput>config set data_sources/classes/IN[1]/params { "example.org": "/path/to/example.org", "example.com": "/path/to/example.com" }</userinput>
> <userinput>config commit</userinput></screen>
+ Unfortunately, due to current technical limitations, the
+ params must be set as one JSON blob. To reload a zone, use the
+ same <command>Auth loadzone</command> command as above.
+ </para>
+
+ <para>
Initially, a map value has to be set, but this value may be an
- empty map. After that, key/value pairs can be added with 'config
- add' and keys can be removed with 'config remove'. The initial
- value may be an empty map, but it has to be set before zones are
- added or removed.
+ empty map. After that, key/value pairs can be added with
+ <command>config add</command> and keys can be removed with
+ <command>config remove</command>. The initial value may be an
+ empty map, but it has to be set before zones are added or
+ removed.
<screen>
> <userinput>config set data_sources/classes/IN[1]/params {}</userinput>
> <userinput>config add data_sources/classes/IN[1]/params another.example.org /path/to/another.example.org</userinput>
> <userinput>config add data_sources/classes/IN[1]/params another.example.com /path/to/another.example.com</userinput>
> <userinput>config remove data_sources/classes/IN[1]/params another.example.org</userinput>
- </screen>
+> <userinput>config commit</userinput></screen>
- <command>bindctl</command>. To reload a zone, you the same command
- as above.
</para>
</section>
@@ -2642,6 +2647,50 @@ can use various data source backends.
</para>
</note>
+ <section id='datasrc-static'>
+ <title>Adding a static data source</title>
+
+ <para>
+ BIND 10 includes a zone file named
+ <filename>static.zone</filename> in the CH (Chaos) class for
+ providing information about the server via the AUTHORS.BIND
+ and VERSION.BIND TXT records. By default, this BIND zone is
+ configured and its records are served.
+ </para>
+
+ <para>
+ If you have removed this zone from the configuration (e.g., by
+ using the commands in the previous section to disable the
+ "built-in data source"), here is how you can add it back to
+ serve the zones in the <filename>static.zone</filename> file.
+ </para>
+
+ <para>First, add the CH class if it doesn't exist:
+
+ <screen>> <userinput>config add data_sources/classes CH</userinput>
+> <userinput>config commit</userinput></screen>
+
+ Then, add a data source of type <emphasis>MasterFiles</emphasis>
+ in the CH class to serve the zones in
+ <filename>static.zone</filename>:
+
+ <screen>> <userinput>config add data_sources/classes/CH</userinput>
+> <userinput>config set data_sources/classes/CH[0]/type MasterFiles</userinput>
+> <userinput>config set data_sources/classes/CH[0]/cache-enable true</userinput>
+> <userinput>config set data_sources/classes/CH[0]/params {"BIND": "/usr/local/bind10/share/bind10/static.zone"}</userinput>
+> <userinput>config commit</userinput></screen>
+
+ Then, lookup the static data from
+ <filename>static.zone</filename> to test it (assuming your
+ authoritative server is running on <command>localhost</command>):
+
+ <screen>> <userinput>dig @localhost -c CH -t TXT version.bind</userinput>
+> <userinput>dig @localhost -c CH -t TXT authors.bind</userinput></screen>
+
+ </para>
+
+ </section>
+
</section>
<section>
diff --git a/src/lib/datasrc/static.zone.pre b/src/lib/datasrc/static.zone.pre
index 13c0c9d..8046410 100644
--- a/src/lib/datasrc/static.zone.pre
+++ b/src/lib/datasrc/static.zone.pre
@@ -1,10 +1,10 @@
-;; This is the content of the BIND./CH zone. It contains the version and
-;; authors (called VERSION.BIND. and AUTHORS.BIND.). You can add more or
-;; modify the zone. Then you can reload the zone by issuing the command
+;; This file contains records for the BIND./CH zone. It contains version
+;; (VERSION.BIND.) and authors (AUTHORS.BIND.) information. You can add
+;; more records or modify this zone file like any other zone file. If
+;; you modify this file, you can reload the zone by issuing the
+;; following command in the bindctl program:
;;
-;; loadzone CH BIND
-;;
-;; in the bindctl.
+;; Auth loadzone CH BIND
;; This is here mostly for technical reasons.
BIND. 0 CH SOA bind. authors.bind. 0 28800 7200 604800 86400
More information about the bind10-changes
mailing list