You're debugging some DNS changes in your network and Safari (or
curl / any other tool) keeps sending requests to an old DNS entry?
With these commands, you can clear your system's DNS cache:
|11 (Big Sur)|
|10.13 (High Sierra)|
I hope this helps 🙂