Probe for DNS64 presence with an absolute name so that asr doesn't add
authorflorian <florian@openbsd.org>
Sat, 12 Mar 2022 14:35:29 +0000 (14:35 +0000)
committerflorian <florian@openbsd.org>
Sat, 12 Mar 2022 14:35:29 +0000 (14:35 +0000)
search domains and retry.

sbin/unwind/resolver.c

index 79e7b9b..74ff6f7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: resolver.c,v 1.154 2021/12/18 10:34:19 florian Exp $  */
+/*     $OpenBSD: resolver.c,v 1.155 2022/03/12 14:35:29 florian Exp $  */
 
 
 /*
@@ -2249,7 +2249,7 @@ check_dns64(void)
        }
 
        if ((asr_ctx = asr_resolver_from_string(resolv_conf)) != NULL) {
-               if ((aq = res_query_async("ipv4only.arpa", LDNS_RR_CLASS_IN,
+               if ((aq = res_query_async("ipv4only.arpa.", LDNS_RR_CLASS_IN,
                    LDNS_RR_TYPE_AAAA, asr_ctx)) == NULL) {
                        log_warn("%s: res_query_async", __func__);
                        asr_resolver_free(asr_ctx);