Trying to get information from an external source, I\'m receiving the following error:
Warning: php_network_getaddresses: getaddrinfo
In my case(my machine is ubuntu 16), I append /etc/resolvconf/resolv.conf.d/base file by adding below ns lines.
/etc/resolvconf/resolv.conf.d/base
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