I’m trying to test a WordPress configuration I’m building in Chef with Test Kitchen. The server is coming up with a temporary ip – this seems to have something to do with the error I’m getting when I try to visit the site in a browser:

Could not get domain name.

No errors in the httpd error.log. Any ideas on how to get past this? I tried faking the hostname in /etc/hosts for the main ip but that did not work.

Read more here: WordPress issue – could not get domain name


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: