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
nginx server nginx is an excellent web server tha...
1. I downloaded QT5.13 version before, but after ...
Unzip the Maven package tar xf apache-maven-3.5.4...
The <base> tag specifies the default addres...
Table of contents 1. Install the required environ...
MySQL v5.7.19 official version (32/64 bit install...
Preface This article mainly shares with you an ex...
1Basic steps of echarts Four Steps 1 Find the DOM...
I recently stumbled upon the Audiovisual Linux Pr...
In web page production, input and img are often pl...
In this article we assume you already know the ba...
TypeScript Bundling webpack integration Usually, ...
Use HTML color blocks to dynamically display data...
Table of contents 1. What is Function Anti-shake?...
If you use docker for large-scale development but...