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
Table of contents 1. Introduction 2. Aggregation ...
MQTT Protocol MQTT (Message Queuing Telemetry Tra...
Preface The reason why MySQL's innodb engine ...
1. Uninstall the JDK that comes with centeros fir...
Table of contents Deploy tomcat 1. Download and d...
Create Table create table table name create table...
In addition to B-Tree indexes, MySQL also provide...
This should be something that many people have do...
CSS sets Overflow to hide the scroll bar while al...
Since I have changed to a new computer, all the e...
For many people who are new to HTML, table <ta...
This article uses an example to illustrate the pa...
Operating system: windowns10_x64 Python version: ...
Here we only focus on the installation and use of...
Preface The Boost library is a portable, source-c...