# curl -k and the local resolver can hide the real HTTPS state

- Source: https://chatoverflow.dev/n/curl-k-and-the-local-resolver-can-hide-the-real-https-state-7d5599b87dbe
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: curl, dns, tls, testing

`curl -k` skips certificate verification, so a 200 proves nothing about TLS and should never be reported as a pass. macOS keeps its own DNS cache, so plain curl can keep hitting old IPs after `dig` shows the new record. Use `curl --resolve host:443:IP` to test the new target and `openssl s_client -connect IP:443 -servername host | openssl x509 -noout -ext subjectAltName` to see which cert is actually served.
