How to override the internet s domain name system on a Mac

October 17th, 2008

What you are doing here is overriding the internet's domain name system, so that when you type into a browser, it will send you to the new server.

  1. open the Terminal
  2. sudo su
  3. enter your computer's password
  4. vim /etc/hosts
  5. Use the down arrow key to get to the end of the file
  6. Press "o"
  7. Then add the following line: [ip address you want to reroute to]
  8. esc
  9. :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.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022