What you are doing here is overriding the internet’s domain name system, so that when you type www.web_address_here.com
- open the Terminal
- sudo su
- enter your computer’s password
- vim /etc/hosts
- Use the down arrow key to get to the end of the file
- Press “o”
- Then add the following line: [ip address you want to reroute to] www.web_address_here.com
- esc
- :wq
Ok that’s it. You should now automatically be routed to the ip address you entered. When you’re ready to stop routing to the given ip address simply go back to the file and delete the line you added.
0 Responses to “How to override the internet’s domain name system on a Mac”