大网数据广告活动
服务器运维问答

Why are my TXT DNS records for certbot-auto not taken into account?

· 52CE 我爱测

I tried to add a txt value to my DNS records to use certbot (certbot-auto as explained here ). Here are my DNS records in text mode (with example numbers): @ 10800 IN SOA ex1.example.net. hostmaster.example.net. XXXXX XXXXX XXXX …

问题原文

原帖链接 · arthur.sw · CC BY-SA 4.0

I tried to add a txt value to my DNS records to use certbot (certbot-auto as explained here ).

Here are my DNS records in text mode (with example numbers):

@ 10800 IN SOA ex1.example.net. hostmaster.example.net. XXXXX XXXXX XXXX XXXXXX XXXXX
* 1800 IN A XXX.XXX.XXX.XXX
@ 10800 IN A XXX.XXX.XXX.XXX
@ 10800 IN MX 10 @
@ 10800 IN MX 50 fb.mail.gandi.net.
_acme-challenge.example.org 1800 IN A XXX.XXX.XXX.XXX
_acme-challenge.example.org 10800 IN TXT "a-value"
_acme-challenge.example.org 10800 IN TXT "another-value"
www.example.org 1800 IN A XXX.XXX.XXX.XXX

but when I run:

host -t txt _acme-challenge.example.org

I get:

_acme-challenge.example.org has no TXT record

Why are my TXT records not taken into account?

已采纳解答

原帖链接 · Tommiie · CC BY-SA 4.0

Some things to consider:

_acme-challenge.example.net    1800  IN  A    XXX.XXX.XXX.XXX
_acme-challenge.example.org   10800  IN  TXT  "a-value"
_acme-challenge.example.org   10800  IN  TXT  "another-value"
www.example.org                1800  IN  A    XXX.XXX.XXX.XXX

You should end the FQDN on the left with a dot. Otherwise it will put the $ORIGIN after it. I assume this is not the desired behavior.

Secondly you're mixing records for two different zones. How would that work out? Should they not all end with 'example.net'?

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-09-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。