php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51711 Test curl_basic_008 will fail if dns resolver uses search domain
Submitted: 2010-05-01 02:32 UTC Modified: 2011-11-22 08:56 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: post at wickenrode dot com Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.2 OS: Linux 2.6.18 i686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: post at wickenrode dot com
New email:
PHP Version: OS:

 

 [2010-05-01 02:32 UTC] post at wickenrode dot com
Description:
------------
Precondition:
If the server has a dns entry "*.server IN CNAME server" and will append "server" 
to non-absolute dns names the DNS query will actually succeed and the test will 
fail.

The DNS resolvers method of appending a search domain specified in 
/etc/resolv.conf is valid.

Thus the test should use an absolute DNS name.

# curl http://23rrweffgert.234tr3dger
[...default apache page...]

# curl http://23rrweffgert.234tr3dger.
curl: (6) Couldn't resolve host '23rrweffgert.234tr3dger.'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-01 02:37 UTC] post at wickenrode dot com
Also affects curl_basic_010.phpt and curl_error_basic.phpt
 [2011-11-22 08:56 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2011-11-22 08:56 UTC] pierrick@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 23 09:01:26 2025 UTC