PHP error: php_network_getaddresses: getaddrinfo failed: (while getting information from other site.)

后端 未结 11 1110
时光说笑
时光说笑 2020-12-01 10:18

Trying to get information from an external source, I\'m receiving the following error:

Warning: php_network_getaddresses: getaddrinfo

11条回答
  •  离开以前
    2020-12-01 10:57

    In my case(my machine is ubuntu 16), I append /etc/resolvconf/resolv.conf.d/base file by adding below ns lines.

    nameserver 8.8.8.8
    nameserver 4.2.2.1
    nameserver 2001:4860:4860::8844
    nameserver 2001:4860:4860::8888
    

    then run the update script,

    resolvconf -u
    

提交回复
热议问题