Я хочу пойти на www.Google.com когда я ввожу 1.1.1.1 в моем браузере. Поэтому я думаю, что должен изменить файл hosts в windows\system32\drivers\etc path в Windows, чтобы сопоставить этот IP-адрес с домашней страницей Google.
Я изменил это как ниже:
# Copyright (c) 1993-2009 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 handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
1.1.1.1 www.google.com
Но все же, когда я ввожу 1.1.1.1 в браузер, браузер не перенаправляет и не ищет настоящий 1.1.1.1 и я получаю Эта веб-страница не доступна ошибка!
Обновить:
Ну, основываясь на комментариях, я заменяю предыдущую строку следующими строками:
178.22.78.1 https://www.google.com
178.22.78.1 www.google.com
Теперь я ожидаю, что мой браузер откроет 178.22.78.1 при входе на сайт www.google.com . Но все равно я получаю Эта страница не доступна ошибка!
Почему мое перенаправление не работает?
