Linux->> UBuntu 14.04 LTE under host name and IP address resolution

Source: Internet
Author: User

UBuntu 14.04 LTE under host name and IP address resolution some related configuration files:

/etc/hosts: Host file. Manually configure the mapping between the IP address and the host name. The format is one map bar item per line: <machine_name> <ip_address>.

/etc/network/interfaces: Host network interface configuration file, both Ifup and Ifdown commands depend on it.

/ETC/RESOLV.CONF: Name Server (DNS) configuration file, and actually /etc/resolv.conf is a linked file that points to/run/resolvconf/resolv.conf. you specify the dns-nameservers in/etc/network/interfaces, each time you restart the network interface, this file will be overwritten.

/etc/nsswitch.conf: This file can be configured with the sequence of paths used for name resolution, with the default order of files Mdns4_minimal [Notfound=return] DNS mdns4.

Files representative first find the/etc/hosts file, mdns4_minimal for multicast Dns,[notfound=return] means that the previous multicast DNS if the reply NOTFOUND the system will no longer look for, DNS is the DNS server first to find, MDNS4 is a multicast DNS query (I don't know what the difference is with the previous one)


Linux->> UBuntu 14.04 LTE under host name and IP address resolution

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.