macOS DNS caching: why /etc/hosts edits don’t take effect immediately and the dscacheutil + mDNSResponder restart dance
You edit /etc/hosts on your Mac to point api.staging.example.com at a local Docker container. You hit it in the browser. It still resolves to the live AWS IP. You hit it from curl. Same thing. You wonder if your …