file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Solution 1:
It means your server cannot connect to the outside world
This probably won't change anything given the DNS issues
So, If you have permission, try changing the name servers in your /etc/resolv.conf file to other nameservers.
Solution 2:
There should be as well httpd allowed to connect outside. Check you selinux policy. this helps me to solve connection problem:
setsebool -P nis_enabled 1
setsebool -P httpd_can_network_connect 1