Bug #51711 [Opn]: Test curl_basic_008 will fail if dns resolver uses search domain

From: Date: Sat, 01 May 2010 00:37:19 +0000
Subject: Bug #51711 [Opn]: Test curl_basic_008 will fail if dns resolver uses search domain
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150073@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51711&edit=1

 ID:               51711
 User updated by:  post at wickenrode dot com
 Reported by:      post at wickenrode dot com
 Summary:          Test curl_basic_008 will fail if dns resolver uses
                   search domain
 Status:           Open
 Type:             Bug
 Package:          cURL related
 Operating System: Linux 2.6.18 i686
 PHP Version:      5.3.2

 New Comment:

Also affects curl_basic_010.phpt and curl_error_basic.phpt


Previous Comments:
------------------------------------------------------------------------
[2010-05-01 02:32:40] 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.'



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51711&edit=1


Thread (3 messages)

« previous php.bugs (#150073) next »