I'm having some trouble with a new install of wkhtmltopdf v0.12.1 64bit on CentOS6
This works perfectly:
/usr/local/bin/wkhtmltopdf http://google.com/ temp.pdf
But the following command fails with HostNotFoundError (where domain.com is the domain of the php file running the shell script):
/usr/local/bin/wkhtmltopdf http://domain.com/ temp.pdf
The same is true for any html file on the domain. Domain.com is resolving normally via a web browser. Also, trying to convert other webpages on different domains which are hosted on the same server works fine.
Any ideas what might be wrong? I suspect something surrounding the server firewall or the user account under which php runs but I can't figure it out.