title: puppetserver ca commands fail connecting to https://puppet:8140 when using SRV record solution
body: <p>I use SRV solution in my puppet architecture. When trying to setup a new puppet master and CA and view my certificates I get this error:</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>My puppet.conf file has the following configuration:</p>
  
  <pre><code>   use_srv_records = true
     srv_domain = mypuppetrecord.com
  </code></pre>
  
  <p>What am I missing ?</p>