Solve the problem of missing domain and search configuration in resolve. conf in ubuntu

Source: Internet
Author: User
Solve the problem of missing domain in resolve. conf in ubuntu. search configures ubuntu with version 10.04TLS and the NIC uses DHCP to obtain IP addresses. Resolve in ubuntu. conf: nameserver128.224.160.11nameserver147.11.57.128names. solve resolve in ubuntu. conf loses the domain. search configures ubuntu to use TLS 10.04, and the NIC uses DHCP to obtain the IP address. Previously configured resolve. conf in ubuntu: nameserver defaults 147.11.57.128nameserver 147.11.57.133domain wrs. comsearch wrs.com windriver.com. However, after each computer restart, domain and search configurations will be lost. Google's related situation, ubuntu12.04 because netwok-manager will automatically generate and overwrite resolve. conf, and there will be similar problems, but it is not a problem that should exist in my current ubuntu10.04. Based on some Google results, I read the man documents of dhclient and dhcp-options. The conclusion is that the dhcp protocol itself has the options 'domain ', 'search' configuration to overwrite the original configuration. The solution is to add the corresponding configuration in the dhcp-client configuration document so that the configuration will not be lost; $ vim/etc/dhcp3/dhclient. add configuration to conf: supersede domain-name "wrs.com"; prepend domain-search "wrs.com", "windriver.com"; then restart the computer and find/etc/resolve. conf has added a new entry: domain wrs. comsearch wrs.com windriver.com

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.