メイン コンテンツへスキップ
サポート
Microsoft アカウントでサインイン
サインインまたはアカウントを作成してください。
こんにちは、
別のアカウントを選択してください。
複数のアカウントがあります
サインインに使用するアカウントを選択してください。

概要

この資料の方法を使用すると、Hosts ファイルを既定にリセットして戻すことができます。

Hosts ファイルとは

Hosts ファイルは、人間に優しいホスト名を数値インターネット プロトコル (IP) アドレスにマップするためにオペレーティング システムによって使用され、IP ネットワーク内のホストを識別して見つけます。 hosts ファイルは、コンピューター ネットワーク内のネットワーク ノードをアドレス指定するいくつかのシステム リソースの 1 つであり、オペレーティング システムの IP 実装の一般的な部分です。

Hosts ファイルには、最初のテキスト フィールドに 1 つ以上のホスト名が続く IP アドレスで構成されるテキストの行が含まれています。 各フィールドは空白で区切られます (多くの場合、履歴上の理由からタブが推奨されますが、スペースも使用されます)。 コメント行を含め、そのような行の最初の位置にハッシュ文字 (#) で示します。 ファイル内の完全な空白行は無視されます。

Hosts ファイルが既定から変更された場合は、リセットすると、接続の問題の解決に役立ちます。

解決方法

自分で Hosts ファイルを既定にリセットして戻すには、お使いのオペレーティング システムに合わせて以下の手順を実行します。

自分で Hosts ファイルを既定にリセットして戻すには、以下の手順を実行します。

1. メモ帳を開きます。 これを行うには、"メモ帳" を検索し、 メモ帳 アイコンをタップまたはクリックします。

2. 次のテキストをコピーし、テキストをファイルに貼り付けます。

  • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

3. [ ファイル ] メニューの [名前を付けて保存] を選択し、[ ファイル名 ] ボックスに「hosts」と入力し (次の図に示すように)、ファイルをデスクトップに保存します。 "hosts" ファイルを保存する方法を示すスクリーンショット

4. メモ帳を閉じます。

5. %WinDir%\System32\Drivers\Etc を検索し、[ ファイル フォルダー ] アイコンを選択します。

6. Hosts ファイルを長押しするか右クリックし、[名前の 変更] を選択し、ファイルの名前を "Hosts.old" に変更します。

7. 手順 3 で作成した Hosts ファイルをデスクトップから %WinDir%\System32\Drivers\Etc フォルダーにコピーまたは移動します。 指示に従って管理者のパスワードを入力する場合、[続行] を選択します。

自分で Hosts ファイルを既定にリセットして戻すには、以下の手順を実行します。

1. メモ帳を開きます。 これを行うには、 Cortana を使用して "メモ帳" を検索し、 メモ帳 アイコンをタップまたはクリックします。

2. 次のテキストをコピーし、テキストをファイルに貼り付けます。

  • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

3. [ ファイル ] メニューの [名前を付けて保存] を選択し、[ ファイル名 ] ボックスに「hosts」と入力し (次の図に示すように)、ファイルをデスクトップに保存します。 "hosts" ファイルを保存する方法を示すスクリーンショット

4. メモ帳を閉じます。

5. Cortana を使用して %WinDir%\System32\Drivers\Etc を検索し、[ファイル フォルダー] アイコンを選択します。

6. Hosts ファイルを長押しするか右クリックし、[名前の 変更] を選択し、ファイルの名前を "Hosts.old" に変更します。

7. 手順 3 で作成した Hosts ファイルをデスクトップから %WinDir%\System32\Drivers\Etc フォルダーにコピーまたは移動します。 指示に従って管理者のパスワードを入力する場合、[続行] を選択します。

自分で Hosts ファイルを既定にリセットして戻すには、以下の手順を実行します。

1. メモ帳を開きます。 これを行うには、画面の右端からスワイプし、[ 検索] をタップし、「メモ帳」と入力して、 メモ帳 アイコンをタップします。 または、マウスを使用している場合は、画面の右上隅をポイントし、マウス ポインターを下に移動し、[ 検索] をクリックし、「メモ帳」と入力して、[ メモ帳] をクリックします。

2. 次のテキストをコピーし、テキストをファイルに貼り付けます。

  • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

3. [ ファイル ] メニューの [名前を付けて保存] を選択し、[ ファイル名 ] ボックスに「hosts」と入力し (次の図に示すように)、ファイルをデスクトップに保存します。

  • [ファイル] メニューの [名前を付けて保存] を選択し、(以下の図に示す) [ファイル名] ボックスに「hosts」と入力して、ファイルをデスクトップに保存します。

4. メモ帳を閉じます。

5. %WinDir%\System32\Drivers\Etc フォルダーを開きます。 この場合、次の手順を実行します。

  • a.  画面の右端からスワイプし、[ 検索] をタップし、「実行」と入力して、[ 実行 ] アイコンをタップします。 または、マウスを使用している場合は、画面の右上隅をポイントし、マウス ポインターを下に移動し、[検索] を選択し、「実行」と入力して、[ 実行 ] アイコンを選択します。

  • b.  [名前] ボックスに「%WinDir%\System32\Drivers\Etc」と入力して、[OK] を選択します。

6. Hosts ファイルを選択し、[名前の変更] を選択し、ファイルの名前を "Hosts.old" に変更します。

7. 手順 3 で作成した Hosts ファイルを %WinDir%\System32\Drivers\Etc フォルダーにコピーまたは移動します。 指示に従って管理者のパスワードを入力する場合、[続行] をタップまたはクリックします。

自分で Hosts ファイルを既定にリセットして戻すには、以下の手順を実行します。

  1. [ スタート] をクリックし、[ 実行] をクリックし、「 Notepad」と入力し、[OK] をクリック します

  2. 次の一覧から Windows のバージョンを探し、そのバージョンの Windows の次のテキストをコピーし、メモ帳に貼り付けます。

  • Windows 7:

  • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost
  • Windows Vista または Windows Server 2008 の場合:

  • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost ::1 localhost
  • Windows XP または Windows Server 2003 の場合:

  • # Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost

3. [ ファイル ] メニューの [名前を付けて保存] を選択し、[ ファイル名 ] ボックスに「hosts」と入力し、ファイルをデスクトップに保存します。

[ファイル] メニューの [名前を付けて保存] を選択し、[ファイル名] ボックスに「hosts」と入力して、ファイルをデスクトップに保存します。

4. [Start > Run] を選択し、「%WinDir%\System32\Drivers\etc」と入力し、[OK] を選択します

5. Hosts ファイルを選択し、名前を "Hosts.old" に変更します。

6. 手順 3 で作成した Hosts ファイルを %WinDir%\System32\Drivers\Etc フォルダーにコピーまたは移動します。 指示に従って管理者のパスワードを入力する場合、[続行] を選択します。

詳細情報

Windows XP のサポートが終了しました

Microsoft は、2014 年 4 月 8 日に Windows XP のサポートを終了しました。 この変更により、ソフトウェア更新プログラムとセキュリティ オプションに影響があります。 これが何を意味するのか、保護を維持する方法について説明します。

Windows Server 2003 のサポートは 2015 年 7 月 14 日に終了しました

Microsoft は、2015 年 7 月 14 日に Windows Server 2003 のサポートを終了しました。 この変更により、ソフトウェア更新プログラムとセキュリティ オプションに影響があります。 これが何を意味するのか、保護を維持する方法について説明します。

ヘルプを表示

その他のオプションが必要ですか?

サブスクリプションの特典の参照、トレーニング コースの閲覧、デバイスのセキュリティ保護方法などについて説明します。

コミュニティは、質問をしたり質問の答えを得たり、フィードバックを提供したり、豊富な知識を持つ専門家の意見を聞いたりするのに役立ちます。

この情報は役に立ちましたか?

言語の品質にどの程度満足していますか?
どのような要因がお客様の操作性に影響しましたか?
[送信] を押すと、Microsoft の製品とサービスの改善にフィードバックが使用されます。 IT 管理者はこのデータを収集できます。 プライバシーに関する声明。

フィードバックをいただき、ありがとうございます。

×