Skip to content
GitLab
Projects
Groups
Snippets
/
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
1a3d6530
Commit
1a3d6530
authored
Nov 19, 1999
by
Andreas Gustafsson
Browse files
deleting the last NS should always succeed when not at the zone apex
parent
6eccd75f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/update.c
View file @
1a3d6530
...
...
@@ -2188,20 +2188,29 @@ update_action(isc_task_t *task, isc_event_t *event)
&
diff
));
}
}
else
if
(
update_class
==
dns_rdataclass_none
)
{
if
(
rdata
.
type
==
dns_rdatatype_soa
)
{
isc_log_write
(
UPDATE_PROTOCOL_LOGARGS
,
"attempt to delete SOA ignored"
);
continue
;
}
if
(
rdata
.
type
==
dns_rdatatype_ns
)
{
int
count
;
CHECK
(
rr_count
(
db
,
ver
,
name
,
dns_rdatatype_ns
,
0
,
&
count
));
if
(
count
==
1
)
{
/*
* The (name == zonename) condition appears in
* RFC2136 3.4.2.4 but is missing from the pseudocode.
*/
if
(
dns_name_equal
(
name
,
zonename
))
{
if
(
rdata
.
type
==
dns_rdatatype_soa
)
{
isc_log_write
(
UPDATE_PROTOCOL_LOGARGS
,
"attempt to delete SOA "
"ignored"
);
continue
;
}
if
(
rdata
.
type
==
dns_rdatatype_ns
)
{
int
count
;
CHECK
(
rr_count
(
db
,
ver
,
name
,
dns_rdatatype_ns
,
0
,
&
count
));
if
(
count
==
1
)
{
isc_log_write
(
UPDATE_PROTOCOL_LOGARGS
,
"attempt to delete last "
"NS ignored"
);
continue
;
continue
;
}
}
}
isc_log_write
(
UPDATE_PROTOCOL_LOGARGS
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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