diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 27a216490e..ed6ce78c97 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3278,6 +3278,10 @@ start_udp(dig_query_t *query) { return; } + if (!port_set) { + port = 53; + } + result = get_address(query->servname, port, &query->sockaddr); if (result != ISC_R_SUCCESS) { /* This servname doesn't have an address. */