linux 桑巴舞dns_update错误告诉我记录已经存在[关闭]

brqmpdu1  于 2023-04-20  发布在  Linux
关注(0)|答案(1)|浏览(227)

**已关闭。**此问题为not about programming or software development。当前不接受答案。

此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site主题相关,您可以留下评论以解释在何处可以回答此问题。
7天前关闭
Improve this question
我试图在rocky-linux-8上设置Samba 4 ADDC。在配置和安装完所有内容后,我检查了Samba的状态,它告诉我它正在积极运行,但在检查结束时,我收到了dns_update错误。
我的桑巴舞广告似乎运行良好,但我想知道为什么这些错误发生,如果有一种方法来解决它们

Apr 12 11:33:58 samba80Test samba[15265]:   /usr/local/samba/sbin/samba_dnsupdate: ERROR(runtime): Record already exists; record could not be added. zone[corp.fin-rec.com] name[_ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones] [>
Apr 12 11:33:58 samba80Test samba[15265]: [2023/04/12 11:33:58.072095,  0] ../../lib/util/util_runcmd.c:355(samba_runcmd_io_handler)
Apr 12 11:33:58 samba80Test samba[15265]:   /usr/local/samba/sbin/samba_dnsupdate: ERROR(runtime): Record already exists; record could not be added. zone[corp.fin-rec.com] name[ForestDnsZones] [WERR_DNS_ERROR_RECORD_ALREADY_EXISTS] - (9>
Apr 12 11:33:58 samba80Test samba[15265]: [2023/04/12 11:33:58.072139,  0] ../../lib/util/util_runcmd.c:355(samba_runcmd_io_handler)
Apr 12 11:33:58 samba80Test samba[15265]:   /usr/local/samba/sbin/samba_dnsupdate: ERROR(runtime): Record already exists; record could not be added. zone[corp.fin-rec.com] name[_ldap._tcp.ForestDnsZones] [WERR_DNS_ERROR_RECORD_ALREADY_E>
Apr 12 11:33:58 samba80Test samba[15265]: [2023/04/12 11:33:58.072179,  0] ../../lib/util/util_runcmd.c:355(samba_runcmd_io_handler)
Apr 12 11:33:58 samba80Test samba[15265]:   /usr/local/samba/sbin/samba_dnsupdate: ERROR(runtime): Record already exists; record could not be added. zone[corp.fin-rec.com] name[_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones] [>
Apr 12 11:33:58 samba80Test samba[15265]: [2023/04/12 11:33:58.109904,  0] ../../source4/dsdb/dns/dns_update.c:86(dnsupdate_nameupdate_done)
Apr 12 11:33:58 samba80Test samba[15265]:   dnsupdate_nameupdate_done: Failed DNS update with exit code 29 ```
mccptt67

mccptt671#

只是Samba正在尝试更新DNS记录,但记录已经存在。
您可以首先使用/usr/local/samba/sbin/samba_dnsupdate --verbose --all-names检查导致错误的DNS记录是否正常
如果需要更新,请使用此选项,例如,如果要删除ldap._tcp.Default-First-Site-Name._sites.DomainDnsZonessamba-tool dns delete <your-dns-server-ip> corp.fin-rec.com _ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones SRV <your-dc-ip>
然后我们重新启动systemctl restart samba

相关问题