I have a centOS virtual machine with 3 virtual hosts. It worked fine until this moment when I lost access to the dns server. Now the hosts can't be resolved. Can any1 tell me if I can configure some static routes or something to the virtual hosts?
Print screen with the httpd response:
PS I would prefere not to configure a DNS server since the old one will start tomorrow again.
In your /etc/hosts
you can map IP addresses to hostnames:
127.0.0.1 example.com
127.0.0.1 example.net
// etc...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.