Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
ff5fcd9e
Commit
ff5fcd9e
authored
Aug 19, 1999
by
Bob Halley
Browse files
NXRRSET NXT support
parent
c1943794
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/named/query.c
View file @
ff5fcd9e
...
@@ -527,9 +527,7 @@ query_addrrset(ns_client_t *client, dns_name_t **namep,
...
@@ -527,9 +527,7 @@ query_addrrset(ns_client_t *client, dns_name_t **namep,
* There's nothing else to do;
* There's nothing else to do;
*/
*/
return
;
return
;
}
}
else
if
(
result
==
DNS_R_NXDOMAIN
)
{
if
(
result
==
DNS_R_NXDOMAIN
)
{
/*
/*
* The name doesn't exist.
* The name doesn't exist.
*/
*/
...
@@ -844,18 +842,41 @@ query_find(ns_client_t *client) {
...
@@ -844,18 +842,41 @@ query_find(ns_client_t *client) {
break
;
break
;
case
DNS_R_NXRDATASET
:
case
DNS_R_NXRDATASET
:
INSIST
(
is_zone
);
INSIST
(
is_zone
);
if
(
dns_rdataset_isassociated
(
rdataset
))
{
/*
* If we've got a NXT record, we need to save the
* name now because we're going call query_addsoa()
* below, and it needs to use the name buffer.
*/
query_keepname
(
client
,
fname
,
dbuf
);
/*
* We don't want the cleanup code to try to release
* fname if we fail below, so we set it to NULL.
*/
tname
=
fname
;
fname
=
NULL
;
}
else
{
/*
* We're not going to use fname, and need to release
* our hold on the name buffer so query_addsoa()
* may use it.
*/
query_releasename
(
client
,
&
fname
);
}
/*
/*
* Add SOA.
* Add SOA.
*/
*/
query_releasename
(
client
,
&
fname
);
result
=
query_addsoa
(
client
,
db
);
result
=
query_addsoa
(
client
,
db
);
if
(
result
!=
ISC_R_SUCCESS
)
{
if
(
result
!=
ISC_R_SUCCESS
)
{
QUERY_ERROR
(
result
);
QUERY_ERROR
(
result
);
goto
cleanup
;
goto
cleanup
;
}
}
/*
/*
*
XXXRTH
Add NXT record
her
e.
* Add NXT record
if we found on
e.
*/
*/
if
(
dns_rdataset_isassociated
(
rdataset
))
query_addrrset
(
client
,
&
tname
,
&
rdataset
,
NULL
,
DNS_SECTION_AUTHORITY
);
goto
cleanup
;
goto
cleanup
;
case
DNS_R_NXDOMAIN
:
case
DNS_R_NXDOMAIN
:
if
(
restarts
>
0
)
{
if
(
restarts
>
0
)
{
...
...
bin/tests/db_test.c
View file @
ff5fcd9e
...
@@ -726,6 +726,8 @@ main(int argc, char *argv[]) {
...
@@ -726,6 +726,8 @@ main(int argc, char *argv[]) {
found_as
=
ISC_TRUE
;
found_as
=
ISC_TRUE
;
break
;
break
;
case
DNS_R_NXRDATASET
:
case
DNS_R_NXRDATASET
:
if
(
dns_rdataset_isassociated
(
&
rdataset
))
break
;
if
(
dbi
!=
NULL
)
{
if
(
dbi
!=
NULL
)
{
if
(
holdmode
)
{
if
(
holdmode
)
{
RUNTIME_CHECK
(
dbi
->
hold_count
<
RUNTIME_CHECK
(
dbi
->
hold_count
<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment