Commit 44105585cb for bind

commit 44105585cbe87b70dc953413e32a338e226f82a4
Author: Mark Andrews <marka@isc.org>
Date:   Tue Jul 14 16:01:10 2026 +1000

    Display the remote error id value with 'rndc -r'

    If this is not available display "UNKNOWN" instead.

diff --git a/bin/rndc/rndc.c b/bin/rndc/rndc.c
index a1483a1716..969ff19efe 100644
--- a/bin/rndc/rndc.c
+++ b/bin/rndc/rndc.c
@@ -387,7 +387,15 @@ rndc_recvdone(isc_nmhandle_t *handle, isc_result_t result, void *arg) {

 		result = isccc_cc_lookupuint32(data, "result", &eresult);
 		if (result == ISC_R_SUCCESS) {
-			printf("%s %u\n", isc_result_toid(eresult), eresult);
+			char *tmp = NULL;
+			const char *errid;
+			result = isccc_cc_lookupstring(data, "errid", &tmp);
+			if (result != ISC_R_SUCCESS) {
+				errid = "UNKNOWN";
+			} else {
+				errid = tmp;
+			}
+			printf("%s %u\n", errid, eresult);
 		} else {
 			printf("NONE -1\n");
 		}