使用SRV记录时puppetserver ca命令无法连接到https://puppet:8140解决方案

dee*_*eez 5 ca puppet srv

我在我的木偶架构中使用 SRV 解决方案。当尝试设置新的 puppet master 和 CA 并查看我的证书时,我收到此错误:

puppetserver ca list --all
Fatal error when running action 'list'
  Error: Failed connecting to https://puppet:8140/puppet-ca/v1/certificate_statuses/any_key
  Root cause: Failed to open TCP connection to puppet:8140 (getaddrinfo: No address associated with hostname)
Run Code Online (Sandbox Code Playgroud)

我的 puppet.conf 文件具有以下配置:

   use_srv_records = true
   srv_domain = mypuppetrecord.com
Run Code Online (Sandbox Code Playgroud)

我缺少什么?

dee*_*eez 8

我设法在这里找到解决方案。我需要将/etc/hosts以下内容添加到我的文件中:

xxx.xx.xx.xx(主机的IP)木偶