Articles that updated a long time ago may have already lost the technical merit. Please kindly pay attention while reading.

sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper; sudo dscacheutil -flushcache