Resolv. conf cleared after Ubuntu12.04 is restarted

Source: Internet
Author: User
Ubuntu12.04 resolv after restart. conf clearing Problem 1./etc/resolv. conf is actually a Link. it actually points to/run/resolvconf/resolv. conf2 and Ubuntu have a resolvconf service. if you restart it,/etc/resolv. conf... resolv after Ubuntu 12.04 is restarted. conf clearing Problem 1./etc/resolv. conf is actually a Link. it actually points to/run/resolvconf/resolv. conf 2. Ubuntu has a resolvconf service. if you restart it,/etc/resolv. the conf content will be changed to the default format, so you cannot directly modify/etc/resolv. conf 3. if you want to define your own nameserver, you can add the following two methods: A. in the NIC configuration file: iface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 gateway 192.168.3.1 dns-nameservers 192.168.3.45 192.168.8.10 dns-search foo.org bar.com B. modify the resolvconf service configuration file:/etc/resolvconf/resolv. conf. d/base
Related Article

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.