DNS Host file on MAC book/Windows

Host file contain dns entries for domain.

In windows the host file can be found under “C:WindowsSystem32Driversetc”

hostfile

In MAC book we can find the host file in following path:

/private/etc/

Here there will be a file named “hosts”. We can edit this file and can have host entries. To edit this file we need administrator permission and we can use “vim” editor to make changes in the file.

Advertisements
This entry was posted in MAC and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s