Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
2c15fcde
Commit
2c15fcde
authored
Aug 24, 2005
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seperate out sibling glue checks
parent
f255d0eb
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
124 additions
and
52 deletions
+124
-52
bin/check/check-tool.c
bin/check/check-tool.c
+2
-2
bin/check/named-checkconf.c
bin/check/named-checkconf.c
+18
-4
bin/check/named-checkzone.c
bin/check/named-checkzone.c
+21
-4
bin/check/named-checkzone.docbook
bin/check/named-checkzone.docbook
+10
-2
bin/named/config.c
bin/named/config.c
+3
-2
bin/named/update.c
bin/named/update.c
+2
-2
bin/named/zoneconf.c
bin/named/zoneconf.c
+8
-3
bin/tests/system/cacheclean/ns1/named.conf
bin/tests/system/cacheclean/ns1/named.conf
+2
-2
bin/tests/system/checknames/ns1/named.conf
bin/tests/system/checknames/ns1/named.conf
+2
-2
bin/tests/system/glue/ns1/named.conf
bin/tests/system/glue/ns1/named.conf
+2
-2
bin/tests/system/nsupdate/ns1/named.conf
bin/tests/system/nsupdate/ns1/named.conf
+3
-3
bin/tests/system/xfer/ns2/named.conf
bin/tests/system/xfer/ns2/named.conf
+2
-2
doc/arm/Bv9ARM-book.xml
doc/arm/Bv9ARM-book.xml
+26
-6
lib/dns/include/dns/zone.h
lib/dns/include/dns/zone.h
+4
-3
lib/dns/zone.c
lib/dns/zone.c
+16
-11
lib/isccfg/namedconf.c
lib/isccfg/namedconf.c
+3
-2
No files found.
bin/check/check-tool.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: check-tool.c,v 1.1
8
2005/0
6
/2
0 01:03:48
marka Exp $ */
/* $Id: check-tool.c,v 1.1
9
2005/0
8
/2
4 23:53:54
marka Exp $ */
/*! \file */
/*! \file */
...
@@ -70,7 +70,7 @@ unsigned int zone_options = DNS_ZONEOPT_CHECKNS |
...
@@ -70,7 +70,7 @@ unsigned int zone_options = DNS_ZONEOPT_CHECKNS |
DNS_ZONEOPT_CHECKMX
|
DNS_ZONEOPT_CHECKMX
|
DNS_ZONEOPT_MANYERRORS
|
DNS_ZONEOPT_MANYERRORS
|
DNS_ZONEOPT_CHECKNAMES
|
DNS_ZONEOPT_CHECKNAMES
|
DNS_ZONEOPT_INTEGRITY
CHECK
|
DNS_ZONEOPT_
CHECK
INTEGRITY
|
DNS_ZONEOPT_CHECKWILDCARD
;
DNS_ZONEOPT_CHECKWILDCARD
;
/*
/*
...
...
bin/check/named-checkconf.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: named-checkconf.c,v 1.3
7
2005/08/2
3 02:36:05
marka Exp $ */
/* $Id: named-checkconf.c,v 1.3
8
2005/08/2
4 23:53:54
marka Exp $ */
/*! \file */
/*! \file */
...
@@ -166,9 +166,7 @@ configure_zone(const char *vclass, const char *view, cfg_obj_t *zconfig,
...
@@ -166,9 +166,7 @@ configure_zone(const char *vclass, const char *view, cfg_obj_t *zconfig,
cfg_obj_t
*
fmtobj
=
NULL
;
cfg_obj_t
*
fmtobj
=
NULL
;
dns_masterformat_t
masterformat
;
dns_masterformat_t
masterformat
;
zone_options
=
DNS_ZONEOPT_CHECKNS
|
zone_options
=
DNS_ZONEOPT_CHECKNS
|
DNS_ZONEOPT_MANYERRORS
;
DNS_ZONEOPT_MANYERRORS
|
DNS_ZONEOPT_INTEGRITYCHECK
;
zname
=
cfg_obj_asstring
(
cfg_tuple_get
(
zconfig
,
"name"
));
zname
=
cfg_obj_asstring
(
cfg_tuple_get
(
zconfig
,
"name"
));
classobj
=
cfg_tuple_get
(
zconfig
,
"class"
);
classobj
=
cfg_tuple_get
(
zconfig
,
"class"
);
...
@@ -219,6 +217,22 @@ configure_zone(const char *vclass, const char *view, cfg_obj_t *zconfig,
...
@@ -219,6 +217,22 @@ configure_zone(const char *vclass, const char *view, cfg_obj_t *zconfig,
zone_options
&=
~
DNS_ZONEOPT_CHECKMXFAIL
;
zone_options
&=
~
DNS_ZONEOPT_CHECKMXFAIL
;
}
}
obj
=
NULL
;
if
(
get_maps
(
maps
,
"check-integrity"
,
&
obj
))
{
if
(
cfg_obj_asboolean
(
obj
))
zone_options
|=
DNS_ZONEOPT_CHECKINTEGRITY
;
else
zone_options
&=
~
DNS_ZONEOPT_CHECKINTEGRITY
;
}
obj
=
NULL
;
if
(
get_maps
(
maps
,
"check-sibling"
,
&
obj
))
{
if
(
cfg_obj_asboolean
(
obj
))
zone_options
|=
DNS_ZONEOPT_CHECKSIBLING
;
else
zone_options
&=
~
DNS_ZONEOPT_CHECKSIBLING
;
}
obj
=
NULL
;
obj
=
NULL
;
if
(
get_checknames
(
maps
,
&
obj
))
{
if
(
get_checknames
(
maps
,
&
obj
))
{
if
(
strcasecmp
(
cfg_obj_asstring
(
obj
),
"warn"
)
==
0
)
{
if
(
strcasecmp
(
cfg_obj_asstring
(
obj
),
"warn"
)
==
0
)
{
...
...
bin/check/named-checkzone.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: named-checkzone.c,v 1.3
8
2005/08/2
2 00:58:18
marka Exp $ */
/* $Id: named-checkzone.c,v 1.3
9
2005/08/2
4 23:53:55
marka Exp $ */
/*! \file */
/*! \file */
...
@@ -145,19 +145,36 @@ main(int argc, char **argv) {
...
@@ -145,19 +145,36 @@ main(int argc, char **argv) {
case
'i'
:
case
'i'
:
if
(
!
strcmp
(
isc_commandline_argument
,
"full"
))
{
if
(
!
strcmp
(
isc_commandline_argument
,
"full"
))
{
zone_options
|=
DNS_ZONEOPT_INTEGRITYCHECK
;
zone_options
|=
DNS_ZONEOPT_CHECKINTEGRITY
|
DNS_ZONEOPT_CHECKSIBLING
;
docheckmx
=
ISC_TRUE
;
docheckns
=
ISC_TRUE
;
dochecksrv
=
ISC_TRUE
;
}
else
if
(
!
strcmp
(
isc_commandline_argument
,
"full-sibling"
))
{
zone_options
|=
DNS_ZONEOPT_CHECKINTEGRITY
;
zone_options
&=
~
DNS_ZONEOPT_CHECKSIBLING
;
docheckmx
=
ISC_TRUE
;
docheckmx
=
ISC_TRUE
;
docheckns
=
ISC_TRUE
;
docheckns
=
ISC_TRUE
;
dochecksrv
=
ISC_TRUE
;
dochecksrv
=
ISC_TRUE
;
}
else
if
(
!
strcmp
(
isc_commandline_argument
,
}
else
if
(
!
strcmp
(
isc_commandline_argument
,
"local"
))
{
"local"
))
{
zone_options
|=
DNS_ZONEOPT_INTEGRITYCHECK
;
zone_options
|=
DNS_ZONEOPT_CHECKINTEGRITY
;
zone_options
|=
DNS_ZONEOPT_CHECKSIBLING
;
docheckmx
=
ISC_FALSE
;
docheckns
=
ISC_FALSE
;
dochecksrv
=
ISC_FALSE
;
}
else
if
(
!
strcmp
(
isc_commandline_argument
,
"local-sibling"
))
{
zone_options
|=
DNS_ZONEOPT_CHECKINTEGRITY
;
zone_options
&=
~
DNS_ZONEOPT_CHECKSIBLING
;
docheckmx
=
ISC_FALSE
;
docheckmx
=
ISC_FALSE
;
docheckns
=
ISC_FALSE
;
docheckns
=
ISC_FALSE
;
dochecksrv
=
ISC_FALSE
;
dochecksrv
=
ISC_FALSE
;
}
else
if
(
!
strcmp
(
isc_commandline_argument
,
}
else
if
(
!
strcmp
(
isc_commandline_argument
,
"none"
))
{
"none"
))
{
zone_options
&=
~
DNS_ZONEOPT_INTEGRITYCHECK
;
zone_options
&=
~
DNS_ZONEOPT_CHECKINTEGRITY
;
zone_options
&=
~
DNS_ZONEOPT_CHECKSIBLING
;
docheckmx
=
ISC_FALSE
;
docheckmx
=
ISC_FALSE
;
docheckns
=
ISC_FALSE
;
docheckns
=
ISC_FALSE
;
dochecksrv
=
ISC_FALSE
;
dochecksrv
=
ISC_FALSE
;
...
...
bin/check/named-checkzone.docbook
View file @
2c15fcde
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
- PERFORMANCE OF THIS SOFTWARE.
- PERFORMANCE OF THIS SOFTWARE.
-->
-->
<!-- $Id: named-checkzone.docbook,v 1.2
2
2005/0
7/19 04:55:19
marka Exp $ -->
<!-- $Id: named-checkzone.docbook,v 1.2
3
2005/0
8/24 23:53:55
marka Exp $ -->
<refentry
id=
"man.named-checkzone"
>
<refentry
id=
"man.named-checkzone"
>
<refentryinfo>
<refentryinfo>
<date>
June 13, 2000
</date>
<date>
June 13, 2000
</date>
...
@@ -174,7 +174,9 @@
...
@@ -174,7 +174,9 @@
<para>
<para>
Perform post load zone integrity checks. Possible modes are
Perform post load zone integrity checks. Possible modes are
<command>
"full"
</command>
(default),
<command>
"full"
</command>
(default),
<command>
"local"
</command>
and
<command>
"full-sibling"
</command>
,
<command>
"local"
</command>
,
<command>
"local-sibling"
</command>
and
<command>
"none"
</command>
.
<command>
"none"
</command>
.
</para>
</para>
<para>
<para>
...
@@ -198,6 +200,12 @@
...
@@ -198,6 +200,12 @@
refer to in-zone hostnames or that some required glue exists,
refer to in-zone hostnames or that some required glue exists,
that is when the nameserver is in a child zone.
that is when the nameserver is in a child zone.
</para>
</para>
<para>
Mode
<command>
"full-sibling"
</command>
and
<command>
"local-sibling"
</command>
disable sibling glue
checks but are otherwise the same as
<command>
"full"
</command>
and
<command>
"local"
</command>
respectively.
</para>
<para>
<para>
Mode
<command>
"none"
</command>
disables the checks.
Mode
<command>
"none"
</command>
disables the checks.
</para>
</para>
...
...
bin/named/config.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: config.c,v 1.
59
2005/08/2
3 02:36:0
6 marka Exp $ */
/* $Id: config.c,v 1.
60
2005/08/2
4 23:53:5
6 marka Exp $ */
/*! \file */
/*! \file */
...
@@ -133,7 +133,6 @@ options {\n\
...
@@ -133,7 +133,6 @@ options {\n\
acache-cleaning-interval 60;
\n
\
acache-cleaning-interval 60;
\n
\
max-acache-size 0;
\n
\
max-acache-size 0;
\n
\
dnssec-enable no; /* Make yes for 9.4. */
\n
\
dnssec-enable no; /* Make yes for 9.4. */
\n
\
integrity-check yes;
\n
\
clients-per-query 10;
\n
\
clients-per-query 10;
\n
\
max-clients-per-query 100;
\n
\
max-clients-per-query 100;
\n
\
"
"
...
@@ -167,6 +166,8 @@ options {\n\
...
@@ -167,6 +166,8 @@ options {\n\
max-journal-size unlimited;
\n
\
max-journal-size unlimited;
\n
\
ixfr-from-differences false;
\n
\
ixfr-from-differences false;
\n
\
check-wildcard yes;
\n
\
check-wildcard yes;
\n
\
check-sibling yes;
\n
\
check-integrity yes;
\n
\
};
\n
\
};
\n
\
"
"
...
...
bin/named/update.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: update.c,v 1.12
3
2005/0
7/18 05
:5
8
:5
6
marka Exp $ */
/* $Id: update.c,v 1.12
4
2005/0
8/24 23
:5
3
:5
7
marka Exp $ */
#include <config.h>
#include <config.h>
...
@@ -2199,7 +2199,7 @@ check_mx(ns_client_t *client, dns_zone_t *zone,
...
@@ -2199,7 +2199,7 @@ check_mx(ns_client_t *client, dns_zone_t *zone,
/*
/*
* Check zone integrity checks.
* Check zone integrity checks.
*/
*/
if
((
options
&
DNS_ZONEOPT_INTEGRITY
CHECK
)
==
0
)
if
((
options
&
DNS_ZONEOPT_
CHECK
INTEGRITY
)
==
0
)
continue
;
continue
;
result
=
dns_db_find
(
db
,
&
mx
.
mx
,
newver
,
dns_rdatatype_a
,
result
=
dns_db_find
(
db
,
&
mx
.
mx
,
newver
,
dns_rdatatype_a
,
0
,
0
,
NULL
,
foundname
,
NULL
,
NULL
);
0
,
0
,
NULL
,
foundname
,
NULL
,
NULL
);
...
...
bin/named/zoneconf.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: zoneconf.c,v 1.12
3
2005/08/2
3 02:36:08
marka Exp $ */
/* $Id: zoneconf.c,v 1.12
4
2005/08/2
4 23:53:57
marka Exp $ */
/*% */
/*% */
...
@@ -600,6 +600,11 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
...
@@ -600,6 +600,11 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
INSIST
(
result
==
ISC_R_SUCCESS
);
INSIST
(
result
==
ISC_R_SUCCESS
);
dns_zone_setnotifydelay
(
zone
,
cfg_obj_asuint32
(
obj
));
dns_zone_setnotifydelay
(
zone
,
cfg_obj_asuint32
(
obj
));
obj
=
NULL
;
result
=
ns_config_get
(
maps
,
"check-sibling"
,
&
obj
);
INSIST
(
result
==
ISC_R_SUCCESS
);
dns_zone_setoption
(
zone
,
DNS_ZONEOPT_CHECKSIBLING
,
cfg_obj_asboolean
(
obj
));
}
}
/*
/*
...
@@ -666,9 +671,9 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
...
@@ -666,9 +671,9 @@ ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
dns_zone_setoption
(
zone
,
DNS_ZONEOPT_CHECKMXFAIL
,
fail
);
dns_zone_setoption
(
zone
,
DNS_ZONEOPT_CHECKMXFAIL
,
fail
);
obj
=
NULL
;
obj
=
NULL
;
result
=
ns_config_get
(
maps
,
"integrity
-check
"
,
&
obj
);
result
=
ns_config_get
(
maps
,
"
check-
integrity"
,
&
obj
);
INSIST
(
obj
!=
NULL
);
INSIST
(
obj
!=
NULL
);
dns_zone_setoption
(
zone
,
DNS_ZONEOPT_INTEGRITY
CHECK
,
dns_zone_setoption
(
zone
,
DNS_ZONEOPT_
CHECK
INTEGRITY
,
cfg_obj_asboolean
(
obj
));
cfg_obj_asboolean
(
obj
));
}
}
...
...
bin/tests/system/cacheclean/ns1/named.conf
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*/
*/
/* $
Id
:
named
.
conf
,
v
1
.
6
2005
/
0
5
/
30
02
:
00
:
3
8
marka
Exp
$ */
/* $
Id
:
named
.
conf
,
v
1
.
7
2005
/
0
8
/
24
23
:
53
:
5
8
marka
Exp
$ */
controls
{ /*
empty
*/ };
controls
{ /*
empty
*/ };
...
@@ -29,7 +29,7 @@ options {
...
@@ -29,7 +29,7 @@ options {
listen
-
on
-
v6
{
none
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
recursion
no
;
notify
yes
;
notify
yes
;
integrity
-
check
no
;
check
-
integrity
no
;
};
};
zone
"."
{
zone
"."
{
...
...
bin/tests/system/checknames/ns1/named.conf
View file @
2c15fcde
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*/
*/
/* $
Id
:
named
.
conf
,
v
1
.
6
2005
/
0
5
/
30
02
:
00
:
39
marka
Exp
$ */
/* $
Id
:
named
.
conf
,
v
1
.
7
2005
/
0
8
/
24
23
:
53
:
58
marka
Exp
$ */
controls
{ /*
empty
*/ };
controls
{ /*
empty
*/ };
...
@@ -28,7 +28,7 @@ options {
...
@@ -28,7 +28,7 @@ options {
listen
-
on
-
v6
{
none
; };
listen
-
on
-
v6
{
none
; };
recursion
no
;
recursion
no
;
notify
yes
;
notify
yes
;
integrity
-
check
no
;
check
-
integrity
no
;
};
};
zone
"."
{
zone
"."
{
...
...
bin/tests/system/glue/ns1/named.conf
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*/
*/
/* $
Id
:
named
.
conf
,
v
1
.
1
2
2005
/
0
5
/
30
02
:
00
:
3
9
marka
Exp
$ */
/* $
Id
:
named
.
conf
,
v
1
.
1
3
2005
/
0
8
/
24
23
:
53
:
5
9
marka
Exp
$ */
controls
{ /*
empty
*/ };
controls
{ /*
empty
*/ };
...
@@ -30,7 +30,7 @@ options {
...
@@ -30,7 +30,7 @@ options {
recursion
no
;
recursion
no
;
notify
no
;
notify
no
;
cache
-
file
"cache"
;
cache
-
file
"cache"
;
integrity
-
check
no
;
check
-
integrity
no
;
};
};
zone
"."
{
zone
"."
{
...
...
bin/tests/system/nsupdate/ns1/named.conf
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*/
*/
/* $
Id
:
named
.
conf
,
v
1
.
1
4
2005
/
0
5
/
2
0
01
:
09
:
35
marka
Exp
$ */
/* $
Id
:
named
.
conf
,
v
1
.
1
5
2005
/
0
8
/
2
4
23
:
53
:
59
marka
Exp
$ */
controls
{ /*
empty
*/ };
controls
{ /*
empty
*/ };
...
@@ -43,7 +43,7 @@ controls {
...
@@ -43,7 +43,7 @@ controls {
zone
"example.nil"
{
zone
"example.nil"
{
type
master
;
type
master
;
file
"example.db"
;
file
"example.db"
;
integrity
-
check
no
;
check
-
integrity
no
;
allow
-
update
{
any
; };
allow
-
update
{
any
; };
allow
-
transfer
{
any
; };
allow
-
transfer
{
any
; };
};
};
...
@@ -51,7 +51,7 @@ zone "example.nil" {
...
@@ -51,7 +51,7 @@ zone "example.nil" {
zone
"update.nil"
{
zone
"update.nil"
{
type
master
;
type
master
;
file
"update.db"
;
file
"update.db"
;
integrity
-
check
no
;
check
-
integrity
no
;
allow
-
update
{
any
; };
allow
-
update
{
any
; };
allow
-
transfer
{
any
; };
allow
-
transfer
{
any
; };
also
-
notify
{
10
.
53
.
0
.
2
; };
also
-
notify
{
10
.
53
.
0
.
2
; };
...
...
bin/tests/system/xfer/ns2/named.conf
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*
PERFORMANCE
OF
THIS
SOFTWARE
.
*/
*/
/* $
Id
:
named
.
conf
,
v
1
.
2
0
2005
/
0
5
/
30
02
:
00
:
39
marka
Exp
$ */
/* $
Id
:
named
.
conf
,
v
1
.
2
1
2005
/
0
8
/
24
23
:
54
:
00
marka
Exp
$ */
controls
{ /*
empty
*/ };
controls
{ /*
empty
*/ };
...
@@ -30,7 +30,7 @@ options {
...
@@ -30,7 +30,7 @@ options {
recursion
no
;
recursion
no
;
notify
yes
;
notify
yes
;
ixfr
-
from
-
differences
yes
;
ixfr
-
from
-
differences
yes
;
integrity
-
check
no
;
check
-
integrity
no
;
};
};
include
"../../common/controls.conf"
;
include
"../../common/controls.conf"
;
...
...
doc/arm/Bv9ARM-book.xml
View file @
2c15fcde
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
- PERFORMANCE OF THIS SOFTWARE.
- PERFORMANCE OF THIS SOFTWARE.
-->
-->
<!-- File: $Id: Bv9ARM-book.xml,v 1.27
7
2005/08/
18 00:57:28
marka Exp $ -->
<!-- File: $Id: Bv9ARM-book.xml,v 1.27
8
2005/08/
24 23:54:01
marka Exp $ -->
<book
xmlns:xi=
"http://www.w3.org/2001/XInclude"
>
<book
xmlns:xi=
"http://www.w3.org/2001/XInclude"
>
<title>
BIND 9 Administrator Reference Manual
</title>
<title>
BIND 9 Administrator Reference Manual
</title>
...
@@ -4359,7 +4359,8 @@ category notify { null; };
...
@@ -4359,7 +4359,8 @@ category notify { null; };
(
<replaceable>
warn
</replaceable>
|
<replaceable>
fail
</replaceable>
|
<replaceable>
ignore
</replaceable>
);
</optional>
(
<replaceable>
warn
</replaceable>
|
<replaceable>
fail
</replaceable>
|
<replaceable>
ignore
</replaceable>
);
</optional>
<optional>
check-mx (
<replaceable>
warn
</replaceable>
|
<replaceable>
fail
</replaceable>
|
<replaceable>
ignore
</replaceable>
);
</optional>
<optional>
check-mx (
<replaceable>
warn
</replaceable>
|
<replaceable>
fail
</replaceable>
|
<replaceable>
ignore
</replaceable>
);
</optional>
<optional>
check-wildcard
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
check-wildcard
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
integrity-checks
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
check-integrity
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
check-sibling
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
allow-notify {
<replaceable>
address_match_list
</replaceable>
};
</optional>
<optional>
allow-notify {
<replaceable>
address_match_list
</replaceable>
};
</optional>
<optional>
allow-query {
<replaceable>
address_match_list
</replaceable>
};
</optional>
<optional>
allow-query {
<replaceable>
address_match_list
</replaceable>
};
</optional>
<optional>
allow-query-cache {
<replaceable>
address_match_list
</replaceable>
};
</optional>
<optional>
allow-query-cache {
<replaceable>
address_match_list
</replaceable>
};
</optional>
...
@@ -5507,7 +5508,7 @@ options {
...
@@ -5507,7 +5508,7 @@ options {
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><command>
integrity
-check
</command></term>
<term><command>
check-
integrity
</command></term>
<listitem>
<listitem>
<para>
<para>
Perform post load zone integrity checks on master
Perform post load zone integrity checks on master
...
@@ -5524,6 +5525,15 @@ options {
...
@@ -5524,6 +5525,15 @@ options {
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<term><command>
check-sibling
</command></term>
<listitem>
<para>
When performing integrity checks also check that
sibling glue exists. The default is
<command>
yes
</command>
.
</para>
</listitem>
</varlistentry>
</variablelist>
</variablelist>
</sect3>
</sect3>
...
@@ -7749,7 +7759,7 @@ view "external" {
...
@@ -7749,7 +7759,7 @@ view "external" {
<optional>
check-names (
<constant>
warn
</constant>
|
<constant>
fail
</constant>
|
<constant>
ignore
</constant>
) ;
</optional>
<optional>
check-names (
<constant>
warn
</constant>
|
<constant>
fail
</constant>
|
<constant>
ignore
</constant>
) ;
</optional>
<optional>
check-mx (
<constant>
warn
</constant>
|
<constant>
fail
</constant>
|
<constant>
ignore
</constant>
) ;
</optional>
<optional>
check-mx (
<constant>
warn
</constant>
|
<constant>
fail
</constant>
|
<constant>
ignore
</constant>
) ;
</optional>
<optional>
check-wildcard
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
check-wildcard
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
integrity
-checks
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
check-
integrity
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
dialup
<replaceable>
dialup_option
</replaceable>
;
</optional>
<optional>
dialup
<replaceable>
dialup_option
</replaceable>
;
</optional>
<optional>
delegation-only
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
delegation-only
<replaceable>
yes_or_no
</replaceable>
;
</optional>
<optional>
file
<replaceable>
string
</replaceable>
;
</optional>
<optional>
file
<replaceable>
string
</replaceable>
;
</optional>
...
@@ -8160,11 +8170,21 @@ view "external" {
...
@@ -8160,11 +8170,21 @@ view "external" {
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><command>
integrity-check
</command></term>
<term><command>
check-integrity
</command></term>
<listitem>
<para>
See the description of
<command>
check-integrity
</command>
in
<xref
linkend=
"boolean_options"
/>
.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>
check-sibling
</command></term>
<listitem>
<listitem>
<para>
<para>
See the description of
See the description of
<command>
integrity-check
</command>
in
<xref
linkend=
"boolean_options"
/>
.
<command>
check-sibling
</command>
in
<xref
linkend=
"boolean_options"
/>
.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
lib/dns/include/dns/zone.h
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: zone.h,v 1.13
6
2005/08/
18 00:57:30
marka Exp $ */
/* $Id: zone.h,v 1.13
7
2005/08/
24 23:54:03
marka Exp $ */
#ifndef DNS_ZONE_H
#ifndef DNS_ZONE_H
#define DNS_ZONE_H 1
#define DNS_ZONE_H 1
...
@@ -58,8 +58,9 @@ typedef enum {
...
@@ -58,8 +58,9 @@ typedef enum {
#define DNS_ZONEOPT_CHECKWILDCARD 0x00002000U
/*%< check for internal wildcards */
#define DNS_ZONEOPT_CHECKWILDCARD 0x00002000U
/*%< check for internal wildcards */
#define DNS_ZONEOPT_CHECKMX 0x00004000U
/*%< check-mx */
#define DNS_ZONEOPT_CHECKMX 0x00004000U
/*%< check-mx */
#define DNS_ZONEOPT_CHECKMXFAIL 0x00008000U
/*%< fatal check-mx failures */
#define DNS_ZONEOPT_CHECKMXFAIL 0x00008000U
/*%< fatal check-mx failures */
#define DNS_ZONEOPT_INTEGRITYCHECK 0x00010000U
/*%< perform integrity checks */
#define DNS_ZONEOPT_CHECKINTEGRITY 0x00010000U
/*%< perform integrity checks */
#define DNS_ZONEOPT_NOCHECKNS 0x00020000U
/*%< disable IN NS address checks */
#define DNS_ZONEOPT_CHECKSIBLING 0x00020000U
/*%< perform sibling glue checks */
#define DNS_ZONEOPT_NOCHECKNS 0x00040000U
/*%< disable IN NS address checks */
#ifndef NOMINUM_PUBLIC
#ifndef NOMINUM_PUBLIC
/*
/*
...
...
lib/dns/zone.c
View file @
2c15fcde
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
*/
/* $Id: zone.c,v 1.44
4
2005/08/
18 00:57:29
marka Exp $ */
/* $Id: zone.c,v 1.44
5
2005/08/
24 23:54:02
marka Exp $ */
/*! \file */
/*! \file */
...
@@ -1585,15 +1585,20 @@ zone_check_glue(dns_zone_t *zone, dns_db_t *db, dns_name_t *name,
...
@@ -1585,15 +1585,20 @@ zone_check_glue(dns_zone_t *zone, dns_db_t *db, dns_name_t *name,
what
=
"SIBLING GLUE "
;
what
=
"SIBLING GLUE "
;
else
else
what
=
""
;
what
=
""
;
dns_zone_log
(
zone
,
level
,
"%s/NS '%s' has no %saddress records (A or AAAA)"
,
if
(
result
!=
DNS_R_DELEGATION
||
ownerbuf
,
namebuf
,
what
);
DNS_ZONE_OPTION
(
zone
,
DNS_ZONEOPT_CHECKSIBLING
))
{
/*
dns_zone_log
(
zone