LoginSignup
19
28

More than 5 years have passed since last update.

iOSに自機のhosts設定を適応する

Last updated at Posted at 2015-12-15

iOSのhostsを書き換えるには脱獄が前提となるので、
簡易的にDNSを立てて代用します

簡易DNSサーバー「dnsmasq」を利用する(Mac)
ターミナルにて作業します

インストール

$brew update
$brew install dnsmasq

設定ファイルをコピーします(デフォルト)
$cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
*パッケージ管理はhomebrewを使用します

サービス起動
$sudo brew services start dnsmasq
サービス停止
$sudo brew services stop dnsmasq

テスト

iOSを同じネットワークに接続し
Wifi設定を開きDNS項目から自機のIPアドレスを指定します

自機のhosts設定がiOSから使えるようになります。

19
28
3

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
19
28