Php_network_getaddresses: getaddrinfo failed
... / Php_network_getaddresses:...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Php_network_getaddresses: getaddrinfo failed

by
Community Deleted user
Created on 2019-01-19 14:46:55 (edited on 2024-09-04 13:55:35) in Hébergement Cloud Web

Bonjour, j'ai un hébergement "Cloud Web" mais depuis quelques jours la commande php file_get_contents("http://www.google.com/") renvoie l'erreur "php_network_getaddresses: getaddrinfo failed: Name or service not known". Comme si le server web n'avait plus accès au monde extérieur. Est-ce qu'un changement de configuration sur cluster024.hosting.ovh.net a eu lieu ?


3 Replies ( Latest reply on 2019-01-19 17:16:29 by
kyodev
)

ça arrive, souci de résolution de nom à priori dans ton cas
avec 172.217.18.206, ça fonctionne?

cloudWeb, cluster024
```php
$toto=file_get_contents("http://www.google.com/");
echo $toto;
?>
```
est ok pour moi

oui c'est curieux (erreur chez toi et pas moi)
je suis en phpfpm-7.2
à priori on est au même endroit

Replies are currently disabled for this question.