When calling an external service request, PHP addresses: getaddrinfo failed: Name or Servicenot Known with an error:The reason:
PHP host cannot connect to DNS server
PHP host cannot connect to DNS server
Analysis: such as the services you access request is www.leyangjuntestxxxx.com
You can first ping or Telnet the domain name to see if it is accessible, if it is responsive
Failure to ping indicates that your service is now connected to a problematic DNS server
General solutions:
One: It is necessary to check whether the remote host of the request is in /etc/hosts of the native host
Two: the need to check the rules of the firewall, is not intercepted by the response
Three: You can manually bind host in the /etc/hosts file
Read More:
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- 404 solution for WordPress Chinese tag
- [WordPress Error] Fatal error undefined function is_network_admin()
- Error while injecting dependencies into App\Controller\IndexController: No entry or class found for
- php Error: mail() Failed to connect to mailserver at “localhost” port 25
- [Solved] PHPMailer Failed to Send Email: SMTP Error: Could not connect to SMTP host.
- [Solved] Postman Error: Error: getaddrinfo ENOTFOUND
- [PHP] php8 jit does not support 32-bit systems WARNING: JIT not supported by host architecture
- [Solved] Request exceeded the limit of 10 internal redirects due to possible configuration error
- Vant configures multiple sites, and new sites 404 error [How to Solve]
- [Solved] PHPMailer Error: SMTP ERROR: Failed to connect to server: (0)
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- composer Failed to decode response: zlib_decode(): data error
- [PHP] Solve PHP Call to undefined function ldap_connect()
- How to Solve opcache error: zend_mm_heap corrupted
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- [Solved] file_get_contents(): SSL operation failed with code 1
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- How to Hide index.php