mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 08:35:31 +00:00
3475. [func] expand logging when adding records via DDNS update
[RT #32365]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
3475. [func] expand logging when adding records via DDNS update
|
||||||
|
[RT #32365]
|
||||||
|
|
||||||
3474. [bug] nsupdate could assert when the local and remote
|
3474. [bug] nsupdate could assert when the local and remote
|
||||||
address families didn't match. [RT #22897]
|
address families didn't match. [RT #22897]
|
||||||
|
|
||||||
|
@@ -2859,13 +2859,22 @@ update_action(isc_task_t *task, isc_event_t *event) {
|
|||||||
if (isc_log_wouldlog(ns_g_lctx, LOGLEVEL_PROTOCOL)) {
|
if (isc_log_wouldlog(ns_g_lctx, LOGLEVEL_PROTOCOL)) {
|
||||||
char namestr[DNS_NAME_FORMATSIZE];
|
char namestr[DNS_NAME_FORMATSIZE];
|
||||||
char typestr[DNS_RDATATYPE_FORMATSIZE];
|
char typestr[DNS_RDATATYPE_FORMATSIZE];
|
||||||
dns_name_format(name, namestr,
|
char rdstr[4096];
|
||||||
sizeof(namestr));
|
isc_buffer_t buf;
|
||||||
|
isc_region_t r;
|
||||||
|
int len = 0;
|
||||||
|
dns_name_format(name, namestr, sizeof(namestr));
|
||||||
dns_rdatatype_format(rdata.type, typestr,
|
dns_rdatatype_format(rdata.type, typestr,
|
||||||
sizeof(typestr));
|
sizeof(typestr));
|
||||||
|
isc_buffer_init(&buf, rdstr, sizeof(rdstr));
|
||||||
|
result = dns_rdata_totext(&rdata, NULL, &buf);
|
||||||
|
isc_buffer_usedregion(&buf, &r);
|
||||||
|
if (result == ISC_R_SUCCESS)
|
||||||
|
len = r.length;
|
||||||
update_log(client, zone, LOGLEVEL_PROTOCOL,
|
update_log(client, zone, LOGLEVEL_PROTOCOL,
|
||||||
"adding an RR at '%s' %s",
|
"adding an RR at '%s' %s %.*s",
|
||||||
namestr, typestr);
|
namestr, typestr, len,
|
||||||
|
(char *) r.base);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prepare the affected RRset for the addition. */
|
/* Prepare the affected RRset for the addition. */
|
||||||
|
Reference in New Issue
Block a user