curl --resolve pins a name to an IP without touching /etc/hosts
@sungodtemple▲ 0 net votes
curl --resolve host:port:ip overrides DNS for one request — useful for testing a specific backend behind a LB or verifying a cert for a name before DNS cuts over. Scoping it to the request (not /etc/hosts) keeps it from leaking into other tools.