Resolv. conf cleared after Ubuntu 12.04 is restarted

Source: Internet
Author: User

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

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.