if (*transport) {
KR_DNAME_GET_STR(ns_name, (*transport)->name);
const char *ns_str = kr_straddr(&(*transport)->address.ip);
- VERBOSE_MSG(qry,
- "=> id: '%05u' choosing: '%s'@'%s' with timeout %d ms zone cut: '%s'\n",
- qry->id, ns_name, ns_str ? ns_str : "", (*transport)->timeout, zonecut_str);
+ if ((*transport)->protocol) {
+ VERBOSE_MSG(qry,
+ "=> id: '%05u' choosing: '%s'@'%s' with timeout %d ms zone cut: '%s'\n",
+ qry->id, ns_name, ns_str ? ns_str : "", (*transport)->timeout, zonecut_str);
+ } else {
+ VERBOSE_MSG(qry,
+ "=> id: '%05u' choosing to resolve: '%s' zone cut: '%s'\n",
+ qry->id, ns_name, zonecut_str);
+ }
} else {
VERBOSE_MSG(qry,
"=> id: '%05u' no suitable transport, zone cut: '%s'\n",