A domain name configuration information setting method, query method and device

A technology of configuration information and query method, which is applied in the Internet field, can solve the problems of affecting execution efficiency, unfavorable demand changes of global setting configuration items, cumbersome and complicated configuration process, etc., achieving high efficiency, convenient and fast query, and fast configuration Effect

Active Publication Date: 2022-03-18
GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 3. Limit the speed to how many bytes can only be transmitted per second (limit_rate_second)
[0019] When the business volume is large, the configuration process using the ACL method is cumbersome and complicated, which affects execution efficiency, and setting configuration items globally is not conducive to flexible demand changes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A domain name configuration information setting method, query method and device
  • A domain name configuration information setting method, query method and device
  • A domain name configuration information setting method, query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Such as figure 1 As shown, the domain name configuration information setting methods include:

[0077] Step 101, setting the configuration item vector configuration rule, the configuration item vector configuration rule includes the order setting rules of each configuration item in the configuration item vector; the configuration item vector includes N configuration item elements, where N is an integer greater than 1;

[0078] Step 102, save the information of all domain names in the domain name set;

[0079] Step 103, perform the following for each domain name in the domain name set: determine the configuration items of the domain name and the specific values ​​of each configuration item, determine the position of each configuration item of the domain name in the configuration item vector of the domain name according to the configuration item vector configuration rules, Write the specific value of the corresponding configuration item in the corresponding position of t...

example 1

[0086] domain name www.qq.com For example, the specific execution process is as follows:

[0087] DOMAIN www.qq.com

[0088] logformat%host%timestamp%url%status%resp_size%upstream_addr%upstream_status; the content of this command line is to set the log format as: domain name, request timestamp, requested url, response status code, response size, upstream address, upstream The status code of the response.

[0089] http_access allow all; the content of this command line is: allow all requests to access.

[0090] DOMAIN END

[0091] DOMAIN www.baidu.com

[0092] acl hhh url.*\.mp4\? .* The content of this command line is: define an acl named hhh, this acl matches the request of type mp4.

[0093] logformat%host%timestamp%url%status%resp_size The content of this command line is to set the log format as: domain name, request timestamp, requested url, response status code, and response size.

[0094] http_access allow hhh The content of this command line is: It means tha...

example 2

[0108] first domain name www.qq.com and the second domain name www.baidu.com The corresponding configuration item vector includes 8 configuration items, which are: the first parent node configuration information, whether the first parent node can be accessed, the second parent node configuration information, whether the second parent node can be accessed, and the third parent node configuration information , whether the third parent node can be accessed, the configuration information of the fourth parent node, and whether the fourth parent node can be accessed.

[0109] Configuration methods using existing methods include:

[0110] DOMAIN www.qq.com

[0111] cache_peer parent 192.168.100.1 80name=beijing hash

[0112] This configuration indicates that the type of cache_peer is the parent node, the name is beijing, the ip is 192.168.100.1, the port is 80, and the usage method is hash.

[0113] cache_peer_access beijing allow all

[0114] This configuration means that all...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

This article discloses a domain name configuration information setting method, query method and device. The domain name configuration information setting method includes: setting configuration item vector configuration rules, saving information of all domain names in the domain name collection; executing the following content for each domain name in the domain name collection : Determine the configuration items of the domain name and the specific values ​​of each configuration item, determine the position of each configuration item of the above domain name in the configuration item vector of the above domain name according to the configuration rule of the configuration item vector, and write in the corresponding position of the configuration item vector of the above domain name Enter the specific value of the corresponding configuration item. In the embodiment of the present invention, configuration item vectors with the same length and the same configuration items are set for different domain names, so that different domain names can be configured with high configuration speed and high efficiency. When it is necessary to query the configuration items of domain names, the query is convenient and fast .

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a domain name configuration information setting method, query method and device. Background technique [0002] In services such as HTTP proxy or HTTP cache, it is necessary to provide services for various domain names at the same time, such as setting specific values ​​for domain name configuration items. Examples of configuration items are as follows: [0003] One, access log format (logformat), [0004] Second, delete the parameters in the url and use it as a storage url (store_cut_args) [0005] 3. Limit the speed to how many bytes can only be transmitted per second (limit_rate_second) [0006] Fourth, restrict access (http_access). [0007] In practical applications, it is often necessary to configure the same configuration item for different domain names, but the specific values ​​of the configurations are different, such as setting different access log formats for ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L61/4511H04L61/30
CPCH04L61/30H04L61/4511
Inventor 陈小钟苗辉
Owner GUIZHOU BAISHANCLOUD TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products