Я настроил локальный домен, например, так
mydomain.test
Всякий раз, когда я пингую этот домен, я получаю следующее
64 bytes from localhost (127.0.0.1): icmp_seq=87 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=88 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_seq=89 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=90 ttl=64 time=0.030 ms
64 bytes from localhost (127.0.0.1): icmp_seq=91 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=92 ttl=64 time=0.028 ms`
. this:
This site can’t be reached mydomain.test’s server IP address could not be found.
Search Google for mydomain test
ERR_NAME_NOT_RESOLVED
Я использовал следующий скрипт оболочки для настройки всего Virtualhost Manage Script
sudo nano /etc/hosts
добавьте эту строку в ваш файл хоста
127.0.0.1 mydomain.test
, затем ctrl + x, затем y
, затем попробуйте