If you want to bind an ip address to a host name or block a certain applications from connecting to a specific server address, you can add that information to the hosts file. Here is how you do it.
- Log in as an admin. user.
- Open the Terminal.app located at Applications > Utilities > Terminal.app.
sudo nano /private/etc/hosts
to open the hosts file
- Add the corresponding record.
Eg.: 127.0.0.1 activate.adobe.com
- Press Control+o to save and Control+x to exit the nano editor.
to clear DNS cache.
That’s all. Have fun!