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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 18:01:32 2024 UTC