Bug #74287 [NEW]: DNS Resolution appears broken with recent Ubuntu update

From: Date: Tue, 21 Mar 2017 21:33:10 +0000
Subject: Bug #74287 [NEW]: DNS Resolution appears broken with recent Ubuntu update
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207988@lists.php.net to get a copy of this message
From:             jndockery at gmail dot com
Operating system: Ubuntu 14.04.5 LTS
PHP version:      5.6.30
Package:          Network related
Bug Type:         Bug
Bug description:DNS Resolution appears broken with recent Ubuntu update

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 bug report at https://bugs.php.net/bug.php?id=74287&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=74287&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=74287&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=74287&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=74287&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=74287&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=74287&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=74287&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=74287&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=74287&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=74287&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=74287&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=74287&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=74287&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74287&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=74287&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=74287&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=74287&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74287&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=74287&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=74287&r=mysqlcfg



Thread (12 messages)

« previous php.bugs (#207988) next »