mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
3475. [func] expand logging when adding records via DDNS update
[RT #32365]
This commit is contained in:
parent
dd59fe01c9
commit
c91c439f80
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
|
||||
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)) {
|
||||
char namestr[DNS_NAME_FORMATSIZE];
|
||||
char typestr[DNS_RDATATYPE_FORMATSIZE];
|
||||
dns_name_format(name, namestr,
|
||||
sizeof(namestr));
|
||||
char rdstr[4096];
|
||||
isc_buffer_t buf;
|
||||
isc_region_t r;
|
||||
int len = 0;
|
||||
dns_name_format(name, namestr, sizeof(namestr));
|
||||
dns_rdatatype_format(rdata.type, 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,
|
||||
"adding an RR at '%s' %s",
|
||||
namestr, typestr);
|
||||
"adding an RR at '%s' %s %.*s",
|
||||
namestr, typestr, len,
|
||||
(char *) r.base);
|
||||
}
|
||||
|
||||
/* Prepare the affected RRset for the addition. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user