193
198

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macでhostsファイルを変更・反映

Posted at

hostsを設定

hostsファイルを編集

sudo vi /private/etc/hosts

IPアドレスとホスト名を入力

111.222.333 www.hogehoge.com

DNSキャッシュをリセット

OS X Yosemite

OS X Yosemite v10.10.4

sudo killall -HUP mDNSResponder

OS X Yosemite v10.10 〜 v10.10.3

sudo discoveryutil mdnsflushcache

OS X Mavericks、Mountain Lion、Lion

sudo killall -HUP mDNSResponder

Mac OS X 10.6

sudo dscacheutil -flushcache
193
198
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
193
198

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?