[GH-ISSUE #524] [Bug] DNS无法解析 #335

Closed
opened 2026-03-03 01:02:32 +03:00 by kerem · 1 comment
Owner

Originally created by @ans- on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/524

描述问题
证书申请失败,报错如下:

[2025-03-15 20:22:37]
进入申请证书节点
[2025-03-15 20:22:47]
get directory at 'https://acme-v02.api.letsencrypt.org/directory': Get "https://acme-v02.api.letsencrypt.org/directory": dial tcp: lookup acme-v02.api.letsencrypt.org on 127.0.0.11:53: read udp 127.0.0.1:58178->127.0.0.11:53: i/o timeout

宿主机上可以ping通:

ping acme-v02.api.letsencrypt.org
PING ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com (172.65.32.248) 56(84) bytes of data.
64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=1 ttl=58 time=2.64 ms
64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=2 ttl=58 time=0.492 ms

container中ping不通:

/app # ping acme-v02.api.letsencrypt.org
ping: bad address 'acme-v02.api.letsencrypt.org'

设置「DNS 递归服务器」后,依然不通, 同样的报错

Image Image

复现步骤
复现该问题的步骤:

  1. 去到 '...'
  2. 点击 '...'
  3. 滚动到 '...'
  4. 发现问题

期望的结果
简要描述你期望发生的事情。

截图
如有可能,请添加截图以帮助解释问题。

环境

docker.io image, v0.3.4

其他信息
在此处添加关于该问题的任何其他信息。

container中发现/etc/resolv.conf如下:

# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 127.0.0.11
options ndots:0

# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [8.8.8.8 1.1.1.1 8.8.4.4]
# Overrides: []
# Option ndots from: internal

Originally created by @ans- on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/524 **描述问题** 证书申请失败,报错如下: [2025-03-15 20:22:37] 进入申请证书节点 [2025-03-15 20:22:47] get directory at 'https://acme-v02.api.letsencrypt.org/directory': Get "https://acme-v02.api.letsencrypt.org/directory": dial tcp: lookup acme-v02.api.letsencrypt.org on 127.0.0.11:53: read udp 127.0.0.1:58178->127.0.0.11:53: i/o timeout 宿主机上可以ping通: ``` ping acme-v02.api.letsencrypt.org PING ca80a1adb12a4fbdac5ffcbc944e9a61.pacloudflare.com (172.65.32.248) 56(84) bytes of data. 64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=1 ttl=58 time=2.64 ms 64 bytes from 172.65.32.248 (172.65.32.248): icmp_seq=2 ttl=58 time=0.492 ms ``` container中ping不通: ``` /app # ping acme-v02.api.letsencrypt.org ping: bad address 'acme-v02.api.letsencrypt.org' ``` 设置「DNS 递归服务器」后,依然不通, 同样的报错 <img width="751" alt="Image" src="https://github.com/user-attachments/assets/70e28af5-f1f0-4b0b-b17e-b4d24c8b42a9" /> <img width="1499" alt="Image" src="https://github.com/user-attachments/assets/da104fa5-6e3b-4e82-ad57-f33cb97d385e" /> **复现步骤** 复现该问题的步骤: 1. 去到 '...' 2. 点击 '...' 3. 滚动到 '...' 4. 发现问题 **期望的结果** 简要描述你期望发生的事情。 **截图** 如有可能,请添加截图以帮助解释问题。 **环境** docker.io image, v0.3.4 **其他信息** 在此处添加关于该问题的任何其他信息。 container中发现/etc/resolv.conf如下: ``` # Generated by Docker Engine. # This file can be edited; Docker Engine will not make further changes once it # has been modified. nameserver 127.0.0.11 options ndots:0 # Based on host file: '/etc/resolv.conf' (internal resolver) # ExtServers: [8.8.8.8 1.1.1.1 8.8.4.4] # Overrides: [] # Option ndots from: internal ```
kerem closed this issue 2026-03-03 01:02:33 +03:00
Author
Owner

@usual2970 commented on GitHub (Mar 15, 2025):

感谢反馈~ 这应该和 Certimate 无关

<!-- gh-comment-id:2726529424 --> @usual2970 commented on GitHub (Mar 15, 2025): 感谢反馈~ 这应该和 Certimate 无关
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#335
No description provided.