[php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution #0]

Unknown why,

working in normal previously,

sudden got this Error:
Connection could not be established with host smtp.gmail.com [php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution #0]


Finally and simply solved it by
# service httpd restart



Update