CN112804161B - Domain name processing method - Google Patents
Domain name processing method Download PDFInfo
- Publication number
- CN112804161B CN112804161B CN202011613373.8A CN202011613373A CN112804161B CN 112804161 B CN112804161 B CN 112804161B CN 202011613373 A CN202011613373 A CN 202011613373A CN 112804161 B CN112804161 B CN 112804161B
- Authority
- CN
- China
- Prior art keywords
- servers
- domain name
- user terminal
- server
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000013139 quantization Methods 0.000 claims description 3
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 238000013475 authorization Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a domain name processing method, which comprises the following steps: when a user terminal uses the internet, a registration request is sent to a processor, and the processor acquires network environment information of the user terminal according to the registration request from the user terminal; acquiring a plurality of system servers corresponding to the network environment information of the user terminal from a preset domain name system server list according to the network environment information of the user terminal, and taking the system servers as servers to be selected; carrying out weight sorting on a plurality of servers to be selected to generate a weight arrangement list of the servers to be selected; generating a new domain name system server list according to the weight arrangement list of the servers to be selected; and selecting a corresponding domain name system server from the new domain name system server list for resolution according to the server domain name resolution request from the user terminal. According to the invention, the network speed, the network stability and the security of the user terminal can be improved.
Description
Technical Field
The invention relates to a network communication technology, in particular to a domain name processing method for analyzing a network domain name.
Background
With the continuous development of communication networks, the network bandwidth is rapidly increased. However, in the course of network usage, the network is sometimes slowed down, and the slow resolution speed of the domain name system server is one of the factors that cause the network to be slowed down.
Currently, most user terminals use an authorization server provided by an Internet Service Provider (ISP) by default for domain name resolution. Due to the large service request amount provided by the internet service provider, the untimely updating of the old device, the hijacking and tampering of the authorization server and the like, the domain name resolution speed of the authorization server is often slowed down. For the above problem of the default authoritative server, the current processing method is to customize the dns server by the end user, usually configure several dns servers to use in turn, and only use the next server when one server has a request timeout or a resolution failure, and the above polling mechanism and the time interval of the request timeout will also increase the network delay.
Disclosure of Invention
The invention provides a domain name processing method which can improve the network speed, the network stability and the security of a user terminal.
In order to achieve the above object, the present invention provides a domain name processing method, which comprises the following steps: when a user terminal uses the Internet, a registration request is sent to a processor, and the processor acquires network environment information of the user terminal according to the registration request from the user terminal; acquiring a plurality of system servers corresponding to the network environment information of the user terminal from a preset domain name system server list according to the network environment information of the user terminal, and taking the system servers as servers to be selected; carrying out weight sorting on a plurality of servers to be selected to generate a weight arrangement list of the servers to be selected; generating a new domain name system server list according to the weight arrangement list of the servers to be selected; and selecting a corresponding domain name system server from the new domain name system server list for resolution according to the server domain name resolution request from the user terminal.
In addition, preferably, the network environment information of the user terminal includes a location area, an operator, a longitude and latitude of the location, and a network quality; the attribute information of each server in the preset domain name system server list comprises the area, the operator, the longitude and latitude of the position and the network quality.
In addition, preferably, the step of performing weight ranking on the multiple candidate servers and generating the weight arrangement table of the candidate servers further includes the following steps: calculating the network flow intercommunication quality between the servers to be selected and the user terminal to obtain a quantitative value of the network flow intercommunication quality between each server to be selected and the user terminal; according to the magnitude of the quantization value, performing weight sorting on the servers to be selected; and generating a weight arrangement list of the server to be selected according to the sequencing result of the server to be selected.
According to the invention, the network speed, the network stability and the security of the user terminal can be improved.
Drawings
Fig. 1 is a flowchart of a domain name processing method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
Hereinafter, a specific embodiment of the domain name processing method according to the present invention will be described in detail with reference to the drawings.
Fig. 1 is a flowchart of a domain name processing method according to the present invention.
When the user terminal uses the internet, a registration request is sent to the processor, and the processor acquires the network environment information of the user terminal according to the registration request sent by the user terminal. Here, the user terminal may be a smart phone, a tablet computer, a notebook computer, a mobile digital terminal, or the like capable of accessing the internet through a domain name (step S100).
Next, the processor selects a system server having attribute information corresponding to the network environment information of the user terminal from a preset domain name system server list according to the network environment information of the user terminal as a candidate server (step S200). The network environment information of the user terminal includes information such as a located area, an operator, longitude and latitude of a located position, network quality, and the like, and the attribute information of the system server may include information such as a located area, an operator, longitude and latitude of a located position, network quality, and the like.
For example, each server in the preset domain name system server list includes at least the following attributes: the located area, the operator, the longitude and latitude of the located location, and the network quality, which are not limited to these, may also include: network time consumption, parsing time consumption, server quality, etc. These attribute information are mainly used for comparison with the current network environment information of the user terminal, so the network environment information of the user terminal at least needs to include: the information of the area, the operator, the longitude and latitude of the position, the network quality and the like can also comprise: the geographic position of the terminal, the network type of the terminal (4G, wifi, etc.), and the like.
And selecting a plurality of servers which are optimal to the network environment information of the user terminal from a preset domain name system server list as the servers to be selected by comparing the attribute information of each system server with the network environment information of the user terminal. The compared attribute information includes, for example, a located area, an operator, a longitude and latitude of a located location, and a network quality in sequence. For example, there are 10 system servers in the preset domain name system server list, and the 10 system servers are ranked by comparison, so that the system server ranked as top 5 may be selected as the candidate server.
Then, in order to select the most suitable system server for the user terminal, the top 5 selected servers to be selected need to be subjected to weight sorting and generate a weight arrangement table (step S300). For example, the specific operation of generating the weight arrangement table is as follows. For example, the network traffic interworking quality between the server to be selected and the user terminal is calculated to obtain a quantized value of the network traffic interworking quality between each server to be selected and the user terminal; according to the magnitude of the quantization value, performing weight sorting on the servers to be selected; and generating a weight arrangement list of the server to be selected according to the sequencing result of the server to be selected.
Specifically, when detecting the reachability and packet loss rate of a server in the weight arrangement table of a server to be selected, the user terminal is pre-installed with a system, for example: common systems are Windows, android, IOS, linux, etc. Through IP address identification, according to the IP address of the server in the obtained weight arrangement list, and through the form of code, the network diagnosis tool is utilized, such as: and the Ping command is used for counting the number of times of network timeout connection between the server and the user terminal in the weight arrangement list, and then calculating the accessibility and the packet loss rate of the server in the weight arrangement list through the counted number of times of timeout.
Then, the processor loads the addresses of the system servers in the weight arrangement table of the candidate server to the local domain name system server list in sequence, wholly or partially, according to the order of the weights, thereby generating a new domain name system server list (step S400). For example, the specific process may be that, from the weight arrangement table of the candidate servers, a preset number of the candidate servers are sequentially selected from the weight arrangement table according to the order of the weights from large to small, and are used as the best matching servers; and sending the address of the best matching server to the user terminal, loading the address of the best matching server to a local domain name system server list, and generating a new domain name system server list.
Then, when the user terminal receives the information for generating the new domain name system server list, the user terminal sends a server domain name resolution request to the processor, and the processor selects a corresponding domain name system server from the new domain name system server list for domain name resolution according to the server domain name resolution request.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (3)
1. A domain name processing method is characterized by comprising the following steps:
when a user terminal uses the Internet, a registration request is sent to a processor, and the processor acquires network environment information of the user terminal according to the registration request from the user terminal;
acquiring a plurality of system servers corresponding to the network environment information of the user terminal from a preset domain name system server list according to the network environment information of the user terminal, and taking the system servers as servers to be selected;
carrying out weight sorting on a plurality of servers to be selected to generate a weight arrangement list of the servers to be selected;
according to the weight arrangement table of the servers to be selected, sequentially selecting a preset number of servers to be selected as optimal matching servers according to the sequence of weights from large to small; loading the address of the best matching server to a local domain name system server list to generate a new domain name system server list;
and selecting a corresponding domain name system server from the new domain name system server list for resolution according to the server domain name resolution request from the user terminal.
2. The domain name processing method according to claim 1,
the network environment information of the user terminal comprises the area, the operator, the longitude and latitude of the position and the network quality;
the attribute information of each server in the preset domain name system server list comprises the area, the operator, the longitude and latitude of the position and the network quality.
3. The domain name processing method according to claim 1,
the step of performing weight sorting on the plurality of servers to be selected and generating the weight arrangement list of the servers to be selected further comprises the following steps:
calculating the network flow intercommunication quality between the servers to be selected and the user terminal to obtain a quantitative value of the network flow intercommunication quality between each server to be selected and the user terminal;
according to the magnitude of the quantization value, performing weight sorting on the servers to be selected;
and generating a weight arrangement list of the server to be selected according to the sequencing result of the server to be selected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011613373.8A CN112804161B (en) | 2020-12-30 | 2020-12-30 | Domain name processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011613373.8A CN112804161B (en) | 2020-12-30 | 2020-12-30 | Domain name processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112804161A CN112804161A (en) | 2021-05-14 |
CN112804161B true CN112804161B (en) | 2023-04-18 |
Family
ID=75805864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011613373.8A Active CN112804161B (en) | 2020-12-30 | 2020-12-30 | Domain name processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112804161B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002069A (en) * | 2012-12-25 | 2013-03-27 | 北京小米科技有限责任公司 | Domain name resolution method, device and system |
CN105072119A (en) * | 2015-08-14 | 2015-11-18 | 中国传媒大学 | Domain name resolution conversation mode analysis-based method and device for detecting malicious domain name |
CN107635015A (en) * | 2017-10-25 | 2018-01-26 | 深圳市和讯华谷信息技术有限公司 | The optimal route selection system and method that mobile terminal links with server end |
CN109756584A (en) * | 2017-11-07 | 2019-05-14 | 中国电信股份有限公司 | Domain name analytic method, domain name mapping device and computer readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905500B (en) * | 2012-12-27 | 2018-01-09 | 腾讯数码(天津)有限公司 | A kind of method and apparatus for accessing application server |
-
2020
- 2020-12-30 CN CN202011613373.8A patent/CN112804161B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002069A (en) * | 2012-12-25 | 2013-03-27 | 北京小米科技有限责任公司 | Domain name resolution method, device and system |
CN105072119A (en) * | 2015-08-14 | 2015-11-18 | 中国传媒大学 | Domain name resolution conversation mode analysis-based method and device for detecting malicious domain name |
CN107635015A (en) * | 2017-10-25 | 2018-01-26 | 深圳市和讯华谷信息技术有限公司 | The optimal route selection system and method that mobile terminal links with server end |
CN109756584A (en) * | 2017-11-07 | 2019-05-14 | 中国电信股份有限公司 | Domain name analytic method, domain name mapping device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112804161A (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110677405B (en) | Data processing method and device, electronic equipment and storage medium | |
CN111193815B (en) | Domain name resolution method, domain name resolution device, computer readable storage medium and computer equipment | |
CN113366815B (en) | Network resource request method, apparatus, electronic device, and storage medium | |
CN114301990B (en) | Node scheduling method, device and storage medium based on content distribution network | |
CN110740191B (en) | Resource access method, device, electronic equipment and storage medium | |
US9075660B2 (en) | Apparatus and method for providing service availability to a user via selection of data centers for the user | |
CN107786621B (en) | User information management method, access processing method, device and system | |
CN110519810B (en) | Service relay switching method, terminal equipment, storage medium and device | |
CN112954089B (en) | Method, device, equipment and storage medium for analyzing data | |
CN111130902B (en) | Switch management method, device and storage medium | |
CN108712428A (en) | A kind of method and device carrying out device type identification to terminal | |
CN113726607A (en) | Network detection method and device, electronic equipment and storage medium | |
CN109981795B (en) | Resource request scheduling method and device | |
CN111556135A (en) | Request scheduling method, system and device and electronic equipment | |
CN113423120A (en) | Data distribution processing method and device based on private network terminal and electronic equipment | |
CN112532764A (en) | Data acquisition method and device | |
CN114205902B (en) | Method, device, electronic device and medium for responding to discovery request in 5G network | |
CN107222365B (en) | Data processing method and device and server | |
CN112804161B (en) | Domain name processing method | |
CN114513487A (en) | Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium | |
CN115277506B (en) | Load balancing equipment testing method and system | |
CN104734914A (en) | A method, device and system for network monitoring | |
CN110769462B (en) | Network access control method and device | |
CN113301556B (en) | User internet access record storage method, system and server | |
CN110838967A (en) | Virtual private network connection method, server, client and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |