mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
Merge branch 'master' of ssh://bind10.isc.org/var/bind10/git/bind10
This commit is contained in:
11
ChangeLog
11
ChangeLog
@@ -1,3 +1,14 @@
|
|||||||
|
193. [func]* jreed
|
||||||
|
Listen on the IPv6 (::) and IPv4 (0.0.0.0) wildcard addresses
|
||||||
|
for b10-auth. This returns to previous behavior prior to
|
||||||
|
change #184. Document the listen_on configuration in manual.
|
||||||
|
(Trac #649, git 65a77d8fde64d464c75917a1ab9b6b3f02640ca6)
|
||||||
|
|
||||||
|
192. [func]* jreed
|
||||||
|
Listen on standard domain port 53 for b10-auth and
|
||||||
|
b10-resolver.
|
||||||
|
(Trac #617, #618, git 137a6934a14cf0c5b5c065e910b8b364beb0973f)
|
||||||
|
|
||||||
191. [func] jinmei
|
191. [func] jinmei
|
||||||
Imported system test framework of BIND 9. It can be run by
|
Imported system test framework of BIND 9. It can be run by
|
||||||
'make systest' at the top source directory. Notes: currently it
|
'make systest' at the top source directory. Notes: currently it
|
||||||
|
2
README
2
README
@@ -164,8 +164,6 @@ source tree:
|
|||||||
(Which will use the modules and configurations also from the source
|
(Which will use the modules and configurations also from the source
|
||||||
tree.)
|
tree.)
|
||||||
|
|
||||||
The server will listen on port 5300 for DNS requests.
|
|
||||||
|
|
||||||
CONFIGURATION
|
CONFIGURATION
|
||||||
|
|
||||||
Commands can be given through the bindctl tool.
|
Commands can be given through the bindctl tool.
|
||||||
|
@@ -336,14 +336,6 @@ var/
|
|||||||
</simpara>
|
</simpara>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<note>
|
|
||||||
<simpara>
|
|
||||||
The development prototype of the b10-auth server listens on
|
|
||||||
0.0.0.0 (all interfaces) port 5300. (This is not the standard
|
|
||||||
domain service port.)
|
|
||||||
</simpara>
|
|
||||||
</note>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To quickly get started with BIND 10, follow these steps.
|
To quickly get started with BIND 10, follow these steps.
|
||||||
</para>
|
</para>
|
||||||
@@ -397,7 +389,7 @@ var/
|
|||||||
<listitem>
|
<listitem>
|
||||||
|
|
||||||
<para>Test it; for example:
|
<para>Test it; for example:
|
||||||
<screen>$ <userinput>dig @127.0.0.1 -p 5300 -c CH -t TXT authors.bind</userinput></screen>
|
<screen>$ <userinput>dig @127.0.0.1 -c CH -t TXT authors.bind</userinput></screen>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
@@ -1044,11 +1036,6 @@ TODO
|
|||||||
process.
|
process.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<note><simpara>
|
|
||||||
This development prototype release listens on all interfaces
|
|
||||||
and the non-standard port 5300.
|
|
||||||
</simpara></note>
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>Server Configurations</title>
|
<title>Server Configurations</title>
|
||||||
|
|
||||||
|
@@ -63,12 +63,12 @@
|
|||||||
"item_optional": false,
|
"item_optional": false,
|
||||||
"item_default": [
|
"item_default": [
|
||||||
{
|
{
|
||||||
"address": "::1",
|
"address": "::",
|
||||||
"port": 5300
|
"port": 53
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"address": "127.0.0.1",
|
"address": "0.0.0.0",
|
||||||
"port": 5300
|
"port": 53
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"list_item_spec": {
|
"list_item_spec": {
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
"item_name": "port",
|
"item_name": "port",
|
||||||
"item_type": "integer",
|
"item_type": "integer",
|
||||||
"item_optional": false,
|
"item_optional": false,
|
||||||
"item_default": 5300
|
"item_default": 53
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -2,12 +2,12 @@
|
|||||||
.\" Title: b10-auth
|
.\" Title: b10-auth
|
||||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||||
.\" Date: February 22, 2011
|
.\" Date: March 8, 2011
|
||||||
.\" Manual: BIND10
|
.\" Manual: BIND10
|
||||||
.\" Source: BIND10
|
.\" Source: BIND10
|
||||||
.\" Language: English
|
.\" Language: English
|
||||||
.\"
|
.\"
|
||||||
.TH "B10\-AUTH" "8" "February 22, 2011" "BIND10" "BIND10"
|
.TH "B10\-AUTH" "8" "March 8, 2011" "BIND10" "BIND10"
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
.\" * set default formatting
|
.\" * set default formatting
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
@@ -70,6 +70,18 @@ defines the path to the SQLite3 zone file when using the sqlite datasource\&. Th
|
|||||||
/usr/local/var/bind10\-devel/zone\&.sqlite3\&.
|
/usr/local/var/bind10\-devel/zone\&.sqlite3\&.
|
||||||
.PP
|
.PP
|
||||||
|
|
||||||
|
\fIlisten_on\fR
|
||||||
|
is a list of addresses and ports for
|
||||||
|
\fBb10\-auth\fR
|
||||||
|
to listen on\&. The list items are the
|
||||||
|
\fIaddress\fR
|
||||||
|
string and
|
||||||
|
\fIport\fR
|
||||||
|
number\&. By default,
|
||||||
|
\fBb10\-auth\fR
|
||||||
|
listens on port 53 on the IPv6 (::) and IPv4 (0\&.0\&.0\&.0) wildcard addresses\&.
|
||||||
|
.PP
|
||||||
|
|
||||||
\fIdatasources\fR
|
\fIdatasources\fR
|
||||||
configures data sources\&. The list items include:
|
configures data sources\&. The list items include:
|
||||||
\fItype\fR
|
\fItype\fR
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
<refentry>
|
<refentry>
|
||||||
|
|
||||||
<refentryinfo>
|
<refentryinfo>
|
||||||
<date>February 22, 2011</date>
|
<date>March 8, 2011</date>
|
||||||
</refentryinfo>
|
</refentryinfo>
|
||||||
|
|
||||||
<refmeta>
|
<refmeta>
|
||||||
@@ -131,6 +131,15 @@
|
|||||||
<filename>/usr/local/var/bind10-devel/zone.sqlite3</filename>.
|
<filename>/usr/local/var/bind10-devel/zone.sqlite3</filename>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<varname>listen_on</varname> is a list of addresses and ports for
|
||||||
|
<command>b10-auth</command> to listen on.
|
||||||
|
The list items are the <varname>address</varname> string
|
||||||
|
and <varname>port</varname> number.
|
||||||
|
By default, <command>b10-auth</command> listens on port 53
|
||||||
|
on the IPv6 (::) and IPv4 (0.0.0.0) wildcard addresses.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<varname>datasources</varname> configures data sources.
|
<varname>datasources</varname> configures data sources.
|
||||||
The list items include:
|
The list items include:
|
||||||
|
@@ -74,7 +74,7 @@ to listen on\&. The list items are the
|
|||||||
\fIaddress\fR
|
\fIaddress\fR
|
||||||
string and
|
string and
|
||||||
\fIport\fR
|
\fIport\fR
|
||||||
number\&. The defaults are address ::1 port 5300 and address 127\&.0\&.0\&.1 port 5300\&.
|
number\&. The defaults are address ::1 port 53 and address 127\&.0\&.0\&.1 port 53\&.
|
||||||
.PP
|
.PP
|
||||||
|
|
||||||
\fIretries\fR
|
\fIretries\fR
|
||||||
|
@@ -141,8 +141,9 @@ once that is merged you can for instance do 'config add Resolver/forward_address
|
|||||||
<command>b10-resolver</command> to listen on.
|
<command>b10-resolver</command> to listen on.
|
||||||
The list items are the <varname>address</varname> string
|
The list items are the <varname>address</varname> string
|
||||||
and <varname>port</varname> number.
|
and <varname>port</varname> number.
|
||||||
The defaults are address ::1 port 5300 and
|
The defaults are address ::1 port 53 and
|
||||||
address 127.0.0.1 port 5300.
|
address 127.0.0.1 port 53.
|
||||||
|
<!-- TODO: but defaults are not used, Trac #518 -->
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@@ -56,7 +56,6 @@ using namespace asiolink;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Default port current 5300 for testing purposes
|
|
||||||
static const string PROGRAM = "Resolver";
|
static const string PROGRAM = "Resolver";
|
||||||
|
|
||||||
IOService io_service;
|
IOService io_service;
|
||||||
|
@@ -86,11 +86,11 @@
|
|||||||
"item_default": [
|
"item_default": [
|
||||||
{
|
{
|
||||||
"address": "::1",
|
"address": "::1",
|
||||||
"port": 5300
|
"port": 53
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"address": "127.0.0.1",
|
"address": "127.0.0.1",
|
||||||
"port": 5300
|
"port": 53
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"list_item_spec": {
|
"list_item_spec": {
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
"item_name": "port",
|
"item_name": "port",
|
||||||
"item_type": "integer",
|
"item_type": "integer",
|
||||||
"item_optional": false,
|
"item_optional": false,
|
||||||
"item_default": 5300
|
"item_default": 53
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -43,9 +43,7 @@ void
|
|||||||
QidGenerator::seed() {
|
QidGenerator::seed() {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, 0);
|
gettimeofday(&tv, 0);
|
||||||
long int seed;
|
generator_.seed((tv.tv_sec * 1000000) + tv.tv_usec);
|
||||||
seed = (tv.tv_sec * 1000000) + tv.tv_usec;
|
|
||||||
generator_.seed(seed);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isc::dns::qid_t
|
isc::dns::qid_t
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
|
|
||||||
namespace asiolink {
|
namespace asiolink {
|
||||||
|
|
||||||
/// This class generates Qids for outgoing queries
|
/// This class generates Qids for outgoing queries
|
||||||
///
|
///
|
||||||
/// It is implemented as a singleton; the public way to access it
|
/// It is implemented as a singleton; the public way to access it
|
||||||
@@ -47,7 +47,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// It is recommended that getInstance is used rather than creating
|
/// It is recommended that getInstance is used rather than creating
|
||||||
/// separate instances of this class.
|
/// separate instances of this class.
|
||||||
///
|
///
|
||||||
/// The constructor automatically seeds the generator with the
|
/// The constructor automatically seeds the generator with the
|
||||||
/// current time.
|
/// current time.
|
||||||
QidGenerator();
|
QidGenerator();
|
||||||
@@ -61,21 +61,21 @@ public:
|
|||||||
///
|
///
|
||||||
/// This is automatically called by the constructor
|
/// This is automatically called by the constructor
|
||||||
void seed();
|
void seed();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// "Mersenne Twister: A 623-dimensionally equidistributed
|
// "Mersenne Twister: A 623-dimensionally equidistributed
|
||||||
// uniform pseudo-random number generator", Makoto Matsumoto and
|
// uniform pseudo-random number generator", Makoto Matsumoto and
|
||||||
// Takuji Nishimura, ACM Transactions on Modeling and Computer
|
// Takuji Nishimura, ACM Transactions on Modeling and Computer
|
||||||
// Simulation: Special Issue on Uniform Random Number Generation,
|
// Simulation: Special Issue on Uniform Random Number Generation,
|
||||||
// Vol. 8, No. 1, January 1998, pp. 3-30.
|
// Vol. 8, No. 1, January 1998, pp. 3-30.
|
||||||
//
|
//
|
||||||
// mt19937 is an implementation of one of the pseudo random
|
// mt19937 is an implementation of one of the pseudo random
|
||||||
// generators described in this paper.
|
// generators described in this paper.
|
||||||
boost::mt19937 generator_;
|
boost::mt19937 generator_;
|
||||||
|
|
||||||
// For qid's we want a uniform distribution
|
// For qid's we want a uniform distribution
|
||||||
boost::uniform_int<> dist_;
|
boost::uniform_int<> dist_;
|
||||||
|
|
||||||
boost::variate_generator<boost::mt19937&, boost::uniform_int<> > vgen_;
|
boost::variate_generator<boost::mt19937&, boost::uniform_int<> > vgen_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user