Hello.
My system FreeBSD 12.4-RELEASE-p7 amd64.
How to fix?
My system FreeBSD 12.4-RELEASE-p7 amd64.
Code:
# curl -A check-sites -LI --connect-timeout 5 --dns-servers 8.8.8.8 [URL]https://test.mysite.org[/URL]
curl: option --dns-servers: the installed libcurl version doesn't support this
curl: try 'curl --help' for more information
Code:
# curl -V
curl 8.5.0 (amd64-portbld-freebsd12.4) libcurl/8.5.0 OpenSSL/1.1.1q zlib/1.2.12 nghttp2/1.58.0
Release-Date: 2023-12-06
Protocols: dict file ftp ftps gopher gophers http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy Kerberos Largefile libz NTLM NTLM_WB SPNEGO SSL threadsafe TLS-SRP UnixSockets
Code:
# curl --help dns
Usage: curl [options...] <url>
dns: General DNS options
--dns-interface <interface> Interface to use for DNS requests
--dns-ipv4-addr <address> IPv4 address to use for DNS requests
--dns-ipv6-addr <address> IPv6 address to use for DNS requests
--dns-servers <addresses> DNS server addrs to use
--doh-cert-status Verify the status of the DoH server cert via OCSP-staple
--doh-insecure Allow insecure DoH server connections
--doh-url <URL> Resolve host names over DoH
-4, --ipv4 Resolve names to IPv4 addresses
-6, --ipv6 Resolve names to IPv6 addresses
--resolve <[+]host:port:addr[,addr]...> Resolve the host+port to this address
How to fix?