Mac OSXでホストファイルを編集する方法

Mac OSXでhostsファイルを編集する方法

image

このファイル/private/etc/hostsを編集します。

ターミナル

$ sudo nano /private/etc/hosts

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
127.0.0.1       example-mac
198.x.x.x       linode-bot1
1.2.3.4         www.google.com