Linux/etc/resolv.conf configuration DNS, after restarting the NIC disappears the problem

Source: Internet
Author: User
Tags nameserver

Today open the virtual machine to start the network card ping Baidu Ping does not show Ping:unknown host baidu.com, is definitely a DNS issue.

Open resolv.conf found that the last DNS that was provisioned has disappeared,

I re-configured some nameserver restart the NIC after continuing to ping Baidu or the same error occurred. So I looked again resolv.conf found NameServer disappeared again.

After configuring DNS1 and DNS2 to restart the NIC in/etc/sysconfig/network-scrips/ifcfg-eth0, the DNS does not disappear.

Later Baidu why, only found that the original resolv.conf is ifcfg-eth link file. Not sure, right?

This article from "Open source is the spirit, sharing is the Virtue" blog, please be sure to keep this source http://hongtengfei.blog.51cto.com/9881650/1746962

Linux/etc/resolv.conf configuration DNS, after restarting the NIC disappears the problem

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.