Edit report at https://bugs.php.net/bug.php?id=74287&edit=1
ID: 74287
Updated by: [email protected]
Reported by: jndockery at gmail dot com
Summary: DNS Resolution appears broken with recent Ubuntu
update
Status: Open
Type: Bug
Package: Network related
Operating System: Ubuntu 14.04.5 LTS
PHP Version: 5.6.30
Block user comment: N
Private report: N
New Comment:
@rhsoft: It would be much appreciated if you could tone down your comments a bit. They are commonly passive aggressive, sometimes downright rude and contribute to a somewhat unpleasant atmosphere on this bug tracker.
Previous Comments:
------------------------------------------------------------------------
[2017-03-21 21:55:14] spam2 at rhsoft dot net
and why don't you write a bugreport on the ubuntu bugtracker instead upstream? most likely some library update broke the PHP installation - both is from ubuntu and PHP 5.6 is more or less EOL at all
and another question: who does "automated updates" and then complains at upstream bugtrackers that some unattended downstream stuff broke whatever?
------------------------------------------------------------------------
[2017-03-21 21:33:07] jndockery at gmail dot com
Description:
------------
After an automated update, PHP appears unable to resolve DNS entries
- Other commands still resolve properly: ping, telnet, ldapsearch, curl
- Affected 3 services on separate servers
- Servers without unattended-upgrades (updated 2017-03-17) still functioning
- Adding a manual entry in /etc/hosts allows DNS resolution
Affected service examples:
- ldap_bind(): "Can't contact LDAP server"
- PHP curl: "Could not resolve host: ..."
- SMTP: "Connection could not be established with host smtp.sendgrid.net"
Packages recently updated:
- libgnutls-openssl27:amd64
- multiarch-support:amd64
- libfreetype6:amd64
- libc-dev-bin:amd64
- libc-bin:amd64
- libc6:amd64
- libgnutls26:amd64
- libc6-dev:amd64
Start-Date: 2017-03-21 06:31:17
Upgrade: libgnutls-openssl27:amd64 (2.12.23-12ubuntu2.6, 2.12.23-12ubuntu2.7), multiarch-support:amd64 (2.19-0ubuntu6.9, 2.19-0ubuntu6.10), libfreetype6:amd64 (2.5.2-1ubuntu2.5, 2.5.2-1ubuntu2.6), libc-dev-bin:amd64 (2.19-0ubuntu6.9, 2.19-0ubuntu6.10), libc-bin:amd64 (2.19-0ubuntu6.9, 2.19-0ubuntu6.10), libc6:amd64 (2.19-0ubuntu6.9, 2.19-0ubuntu6.10), libgnutls26:amd64 (2.12.23-12ubuntu2.6, 2.12.23-12ubuntu2.7), libc6-dev:amd64 (2.19-0ubuntu6.9, 2.19-0ubuntu6.10)
End-Date: 2017-03-21 06:31:22
Thank you!
Test script:
---------------
<?
$url = "http://$_SERVER[HTTP_HOST]";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_exec($ch);
print_r(curl_error($ch));
curl_close($ch);
Expected result:
----------------
no output
Actual result:
--------------
Could not resolve host: example.example.com
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74287&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.