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

Error adding DS records for my subdomain to the zone file of parent domain - using bind

· 52CE 我爱测

I have domain example.company.com which is DNSSEC secured and has sent its DS records to the parent company.com. I want to create 2 other subdomains, both DNSSEC secured, sub1.example.company.com and sub2.example.company.com. How…

问题原文

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

I have domain example.company.com which is DNSSEC secured and has sent its DS records to the parent company.com. I want to create 2 other subdomains, both DNSSEC secured, sub1.example.company.com and sub2.example.company.com. However the parent domain here is example.company.com and not company.com so I want to include the DS records for the subdomains in the zone file for example.company.com.

However when I add the DS records manually and try to resign example.company.com using the same keys as before (unexpired) I get the following error

dnssec-signzone: fatal: dnssec-signzone: fatal: 'sub1.example.company.com': found DS RRset without NS RRset

What am I doing wrong here, alternatively how can I ensure DNSSEC protection from my subdomains given my existing main domain (example.company.com)?

已采纳解答

原帖链接 · Håkan Lindqvist · CC BY-SA 4.0

DS records are only used as part of delegations between zones, ie side by side with the NS records that define such a delegation.

If you have for example the zone example.com and just add records for foo.example.com or foo.bar.example.com to this zone that is already covered as it is part of the same zone.

However, if you delegate eg sub.example.com so that this is a separate zone, you would have BOTH NS and DS records for sub.example.com in the example.com zone.

I'm not sure which of the cases above this question describes, but either you are missing the NS records for the delegation of the new zone or you are trying to add superfluous DS records "within" a zone.

Additionally, I would strongly suggest using the integrated DNSSEC signing support in BIND (auto-dnssec maintain and if needed the inline-signing config options) rather than the older external dnssec-signzone tool.

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

资料来源与适用范围

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

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

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