Commit 0e10d226 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

Document more about b10-resolver and introduce b10-stats.

Add some bindctl examples for configuring b10-resolver.
And also introduce b10-stats and Stats show.
parent cb38a8f9
This diff is collapsed.
......@@ -167,6 +167,14 @@
<command>b10-stats</command> &mdash;
Statistics collection daemon.
This process collects and reports statistics data.
<command>b10-xfrin</command> &mdash;
......@@ -683,6 +691,7 @@ var/
<command>b10-cmdctl</command> for admins to communicate with the
system, <command>b10-auth</command> for authoritative DNS service or
<command>b10-resolver</command> for recursive name service,
<command>b10-stats</command> for statistics collection,
<command>b10-xfrin</command> for inbound DNS zone transfers,
<command>b10-xfrout</command> for outbound DNS zone transfers,
and <command>b10-zonemgr</command> for secondary service.
......@@ -1304,27 +1313,100 @@ what is XfroutClient xfr_client??
It simply forwards the query on to another full resolver.
<!-- TODO:
The main <command>bind10</command> process can be configured
to select to run either the authoritative or resolver.
By default, it starts the authoritative service.
<!-- TODO: later both -->
You may change this using <command>bindctl</command>, for example:
By default, bind10 starts the authoritative service.
&gt; <userinput>config set Boss/start_auth false</userinput>
&gt; <userinput>config set Boss/start_resolver true</userinput>
&gt; <userinput>config commit</userinput>
> config set Boss/start_auth false
> config set Boss/start_resolver true
config commit
Boss shutdown
<!-- TODO: -->
In the current version, the master <command>bind10</command>
process must be stopped and restarted to start up the resolver.
restart Boss
Then the upstream address and port must be configured to
forward queries to, such as:
then next set forward_addresses as needed
&gt; <userinput>config set Resolver/forward_addresses [{ "address": "<replaceable></replaceable>", "port": 53 }]</userinput>
&gt; <userinput>config commit</userinput>
{"version": 2, "Resolver": {"forward_addresses": [{"port": 5302, "address": ""}], "listen_on": [{"port": 53, "address": ""}, {"port": 53, "address": ""}]}, "Boss": {"start_auth": false, "start_resolver": true}}
(Replace <replaceable></replaceable> to point to your
full resolver.)
The resolver also needs to be configured to listen on an address
and port:
&gt; <userinput>config set Resolver/listen_on [{ "address": "", "port": 53 }]</userinput>
&gt; <userinput>config commit</userinput>
<!-- TODO: later the above will have some defaults -->
<!-- TODO: later try this
> config set Resolver/forward_addresses[0]/address ""
> config set Resolver/forward_addresses[0]/port 53
then change those defaults with config set Resolver/forward_addresses[0]/address ""
> config set Resolver/forward_addresses[0]/address ""
<chapter id="statistics">
The <command>b10-stats</command> process is started by
It periodically collects statistics data from various modules
and aggregates it.
<!-- TODO -->
This stats daemon provides commands to identify if it is running,
show specified or all statistics data, set values, remove data,
and reset data.
For example, using <command>bindctl</command>:
&gt; <userinput>Stats show</userinput>
"auth.queries.tcp": 1749,
"auth.queries.udp": 867868,
"bind10.boot_time": "2011-01-20T16:59:03Z",
"report_time": "2011-01-20T17:04:06Z",
"stats.boot_time": "2011-01-20T16:59:05Z",
"stats.last_update_time": "2011-01-20T17:04:05Z",
"stats.lname": "",
"stats.start_time": "2011-01-20T16:59:05Z",
"stats.timestamp": 1295543046.823504
<!-- TODO: how to help: run unit tests, join lists, review trac tickets -->
<!-- <index> <title>Index</title> </index> -->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment