go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.44k stars 985 forks source link

DNS request prefer IPv6 only #2171

Closed ierdelyi closed 2 months ago

ierdelyi commented 2 months ago

Welcome

What did you expect to see?

See this git issue: https://github.com/kchristensen/udm-le/issues/93 The lego use ipv6 dns server only.

What did you see instead?

1; paramter to force ipv4 or ipv6 OR/AND 2 ; method to check all available dns servers OR/AND 3; use DNS server whic was definied in command line

How do you use lego?

Library

Reproduction steps

Please see this isseues: https://github.com/kchristensen/udm-le/issues/94 https://github.com/kchristensen/udm-le/issues/93

Version of lego

lego version 4.16.1 linux/arm64

Logs

2024/05/02 11:56:12 [INFO] [portal.owncompany.com] acme: Waiting for DNS record propagation. 2024/05/02 11:56:14 [INFO] [portal.owncompany.com] acme: Cleaning DNS-01 challenge 2024/05/02 11:56:16 [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/345720099897 2024/05/02 11:56:16 Could not obtain certificates: error: one or more domains had a problem: [portal.owncompany.com] propagation: time limit exceeded: last error: DNS call error: read udp [2001:db8:1000::1]:51859->[2606:4700:50::adf5:3a38]:53: i/o timeout [ns=adi.ns.cloudflare.com.:53, question='_acme-challenge.portal.owncompany.com. IN TXT'] initial(): Starting udm-le systemd timer

Go environment (if applicable)

```console $ go version && go env # paste output here ```
ldez commented 2 months ago

Duplicate of #1801