1. Introduction resolv.conf is the configuration file of the Domain Name System Resolver (DNS Resolver) of various operating systems. Whenever a program needs to access other hosts on the Internet through a domain name, it needs to use the Resolver library function to convert the domain name into the corresponding IP before it can access it. Note that the Domain Name System Resolver (DNS Resolver) is not an executable program, but a series of library functions in C language that are used to parse resolv.conf to obtain the IP corresponding to the domain name. For an explanation of Resolver, you can use 2. Configuration details The configuration of resolv.conf mainly includes the following items: #ping news PING news.baidu.com (74.125.128.101) 56(84) bytes of data. 64 bytes from hg-in-f101.1e100.net (74.125.128.101): icmp_req=1 ttl=47 time=78.9 ms 64 bytes from hg-in-f101.1e100.net (74.125.128.101): icmp_req=2 ttl=47 time=63.6 ms (3) domain mydomain.com. Used to define the local domain name. If search is not set, search defaults to the value of domain. sortlist 130.155.160.0/255.255.240.0 130.155.0.0 (5) options. Built-in variables used to configure the resolver, not commonly found in resolv.conf. The syntax format is as follows: options [option] ... The value of option is as follows:
3. Notes (1) search and domain cannot coexist. If they exist at the same time, the one that appears last will prevail. 4. Examples Below is the content of resolv.conf. nameserver 202.102.192.68 nameserver 202.102.192.69 search qq.com baidu.com options no-check-names options attempts:1 options timeout:1 The above is a brief analysis of the details of Linux resolv.conf. For more information about Linux resolv.conf, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Native JS to implement image carousel JS to implement small advertising plug-in
>>: MySQL data duplicate checking and deduplication implementation statements
Detailed explanation of the solution to garbled c...
The specific code for using jQuery to implement t...
Generally speaking, the background color of a web ...
1. Interconnection between Docker containers Dock...
What? What star coat? Well, let’s look at the pic...
In the previous article, we introduced the MySQL ...
The GROUP BY statement is used in conjunction wit...
Table of contents 1. Background 2. Operation step...
1. Clear floating method 1 Set the height of the ...
Table of contents DML statements 1. Insert record...
MySql Download 1. Open the official website and f...
First, let me explain that what we want to do is ...
Table of contents 1. Environmental Preparation 2....
Table of contents Separation effect Command line ...
I use the simultaneous interpretation voice recog...