Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a fairly simple puppet setup, one master and one node, both running Debian Squeeze 6.0.4. I have DNS entries for the two machines, client and master respectively. Both client and master's DNS entries resolve correctly on both machines to the right IPs.

On my client, I have this configuration:

server =


Key exchange seems to fail, according to this messages in /var/log/syslog:

localhost puppet-agent[11364]: Could not request certificate: getaddrinfo: Name or service not known

Why is resolution not working only for puppet?

share|improve this question
up vote 5 down vote accepted

You'll need a forward and reverse DNS entry for the client. You could also add an /etc/hosts entry for the client on the puppetmaster.

share|improve this answer
Brilliant. I will need to file in a support ticket for the PTR, but I will mark your answer as accepted if it works. (or if I test it with the hosts file beforehand) – gparent Apr 3 '12 at 17:00
Test with the /etc/hosts entry in the meantime. – ewwhite Apr 3 '12 at 17:00
Yep, ninja edited my comment to mention it. – gparent Apr 3 '12 at 17:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.