In linux, set DNS-Linux Enterprise Application-Linux server application information. For more information, see. In the morning, I came to the company and found out how the machine was shut down. I asked IT, IT turned out that the company stopped for a while in the morning. After opening the host, I found that launchmail could not be logged on. So I tried to log on to the server through a webpage, but I couldn't find it. I tried other web pages and couldn't open it. I checked that the network configuration was not set up in DNS. I remember that the last time was set up, but I don't know how to stop it after the power failure and restart. So I called IT to help me reset the DNS back (because I can't remember the IP address of the DNS .)
1. First check the content of/etc/resovl. conf.
# Cat/etc/resolv. conf
An empty file is found.
2. Restart the network service.
# Service network restart
3. Check/etc/resolv. conf again. If no DNS address exists, manually add
# Vi/etc/resolv. conf
Nameserver 172.17.192.21 #=> this address is the added DNS address.
After all OK! All webpage email addresses can be accessed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service