mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
Make separate queries for A and AAAA records. Hand out A/AAAA/HTTPS information before all queries are complete. Closes #21205
48 lines
796 B
XML
48 lines
796 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
DNS cache
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<dns>
|
|
</dns>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
dns
|
|
</server>
|
|
<features>
|
|
override-dns
|
|
</features>
|
|
<name>
|
|
Get three URLs with bad hostname - cache
|
|
</name>
|
|
<setenv>
|
|
CURL_DNS_SERVER=127.0.0.1:%DNSPORT
|
|
</setenv>
|
|
<command>
|
|
http://examplehost.invalid/%TESTNUMBER http://examplehost.invalid/%TESTNUMBER http://examplehost.invalid/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# curl: (6) Could not resolve host: examplehost.invalid
|
|
<errorcode>
|
|
6
|
|
</errorcode>
|
|
|
|
# Ignore HTTPS requests here
|
|
<dns host="examplehost.invalid QTYPE A">
|
|
QNAME examplehost.invalid QTYPE A
|
|
QNAME examplehost.invalid QTYPE AAAA
|
|
</dns>
|
|
</verify>
|
|
</testcase>
|