I did this
curl --no-progress-meter -6Iv ipv4.sidn.nl 2>&1 |grep ::
* Trying [::ffff:212.114.120.63]:80...
* Connected to ipv4.sidn.nl (::ffff:212.114.120.63) port 80
I expected the following
When I try to connect via ipv4 to an ipv6 only host, I get an error:
curl --no-progress-meter -4Iv ipv6.sidn.nl 2>&1
* Could not resolve host: ipv6.sidn.nl
* Closing connection
curl: (6) Could not resolve host: ipv6.sidn.nl
I'd expect to get an error when trying to connect via --ipv6 to an ipv4 only host.
(I'm trying to use --ipv6 to validate a remote server's support for ipv6, not my local kernel's ability to lie and do evil dual stack fallback stuff.)
curl/libcurl version
curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
Release-Date: 2023-10-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
operating system
Darwin jsoref-mbp.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
I did this
I expected the following
When I try to connect via ipv4 to an ipv6 only host, I get an error:
I'd expect to get an error when trying to connect via
--ipv6to an ipv4 only host.(I'm trying to use
--ipv6to validate a remote server's support for ipv6, not my local kernel's ability to lie and do evil dual stack fallback stuff.)curl/libcurl version
curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
Release-Date: 2023-10-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
operating system
Darwin jsoref-mbp.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64