getaddrinfo failed error

On my site I have a script that displays random quotes and messages.
It used to work fine for over 3 years but for the past two weeks I keep getting the following errors which show up randomly and if you refresh the site the script might work fine again.

Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/httpd/vhosts/domain/httpdocs/index.php on line 76

Warning: main(http://www.domain.com/articles/quotes/quotes.php): failed to open stream: Resource temporarily unavailable in /home/httpd/vhosts/domain/httpdocs/index.php on line 76
At first, the script was setup to open up a small text file and display the text which it contained. The person who hosts the site for me suggested that instead of opening the file I should try a php array. So I did that and I still get the error that I posted above. The error seems to be intermittant.

I have also been told that the /tmp/ directory has been cleared. But that didnt resolve the problem.

Does anyone know what this error means and how to fix it?

 

 

 

 

Top