
我嘗試將 txt 值新增至我的 DNS 記錄以使用 certbot(如解釋的 certbot-auto這裡)。
以下是我的文字模式 DNS 記錄(帶有範例數字):
@ 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
但是當我跑步時:
host -t txt _acme-challenge.example.org
我得到:
_acme-challenge.example.org has no TXT record
為什麼我的 TXT 記錄不被考慮在內?
答案1
需要考慮的一些事項:
_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
您應該在左側以點結束 FQDN。否則它將把 $ORIGIN 放在它後面。我認為這不是期望的行為。
其次,您要混合兩個不同區域的記錄。那結果如何呢?它們不應該都以“example.net”結尾嗎?