サカシタネットデザイン

HOME > すべて表示 > インデックス >
■ WinTips

[←前のページに戻る]

Vistaのhostsファイル変更方法

No.104 / Group:Vistaネットワーク Date: 2008/02/13(Wed) 11:15 [修正]

内部サーバを構築している時、IEなどからドメイン名でアクセスしようしてもエラーがでてアクセスできません。

そんな時は「hosts」ファイルを変更する事によってアクセスできるようになります。

WindowsXPまでなら簡単に変更できましたが、Vistaになってからはファイル権限の関係で下記の方法でしか変更できません。

1)「スタート」ボタン、「すべてのプログラム」「アクセサリ」を順にクリック、「メモ帳」を右クリックし「管理者として実行」をクリック

2)
 c:\Windows\System32\drivers\etc\hosts
を、開き修正


# 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

192.168.0.18 vivinet.org #内部サーバ

関連項目:No.30 ローカルLANのホストにドメイン名でアクセスする方法

http://saka4ta.net/faq/wlnews.cgi?id=wintips&no=30



- WL-News Ver1.02 -

HOME

Windows

Mac

Linux

講習会資料

Link

Support

HOBBYIST


xrea.com