How the domain name parser works

Source: Internet
Author: User

The domain name parser works to find the IP address corresponding to a domain name. Most common domain name Resolvers are the functions provided by resovler In gnu c Library (3 )). The other is the FireDNS resolver provided by the libfiredns software package. There are others. The DNS of gnu libc is determined by the hosts configuration in/etc/nsswitch. conf. This row lists the services used for domain name resolution, such as dns, files, nis, and nisplus. Even when files is used, the domain name parser is also controlled by the/etc/hosts configuration file. The above files are static and can be modified in your favorite editor. When the dns service is used, the behavior of the domain name interpreter is also controlled by the/etc/resolv. conf configuration file. An important feature of resolv. conf is to provide a list of IP addresses of a Domain Name Server and query these servers to obtain domain name resolution. This list is often dependent on the network environment, and the network environment changes frequently when your machine is running. Both pppd and dhclient can add or delete information in resolv. conf. However, these functions do not work normally every time and there is a conflict between the two. The resolvconf package uses a better method to solve this problem and provides a standard framework to update resolv. conf.

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.