CN109104506B - Method and device for determining domain name resolution rule and computer readable storage medium - Google Patents

Method and device for determining domain name resolution rule and computer readable storage medium Download PDF

Info

Publication number
CN109104506B
CN109104506B CN201710477711.1A CN201710477711A CN109104506B CN 109104506 B CN109104506 B CN 109104506B CN 201710477711 A CN201710477711 A CN 201710477711A CN 109104506 B CN109104506 B CN 109104506B
Authority
CN
China
Prior art keywords
domain name
matching
network nodes
target domain
determining
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
Application number
CN201710477711.1A
Other languages
Chinese (zh)
Other versions
CN109104506A (en
Inventor
廖伟健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710477711.1A priority Critical patent/CN109104506B/en
Publication of CN109104506A publication Critical patent/CN109104506A/en
Application granted granted Critical
Publication of CN109104506B publication Critical patent/CN109104506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for determining domain name resolution rules and a computer readable storage medium, and belongs to the technical field of internet. The method comprises the following steps: determining a plurality of areas and a plurality of network nodes corresponding to a target domain name; acquiring characteristic information of the plurality of areas and the plurality of network nodes; matching the plurality of areas with the plurality of network nodes based on the characteristic information to obtain a matching result; and determining the matching result as the resolution rule of the target domain name. According to the method and the device, the resolution rule of the target domain name can be rapidly determined without the participation of technicians, so that the determination process of the resolution rule is greatly simplified, and the determination efficiency of the resolution rule is improved. In addition, since the matching between the plurality of areas and the plurality of network nodes is performed based on the characteristic information of the plurality of areas and the plurality of network nodes, the accuracy of the obtained matching result can be improved, and the accuracy of the determined analysis rule can be improved.

Description

Method and device for determining domain name resolution rule and computer readable storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for determining a domain name resolution rule, and a computer-readable storage medium.
Background
In the Internet, for the convenience of memory, a domain name is generally used to identify a network node instead of an IP (Internet Protocol) address. When a client needs to access a network node, an access request for a domain name of the network node may be sent to a domain name resolution server. When receiving the access request, the domain name resolution server can resolve the domain name based on the resolution rule of the domain name to obtain the IP address of the network node, and send the IP address to the client. When the client receives the IP address, access to the network node may be achieved based on the IP address.
Currently, to meet the service requirements of users, one service may be provided by multiple network nodes having the same domain name. Since the areas where the plurality of network nodes are located are often different, for a certain domain name, the domain name corresponds to the plurality of areas and the plurality of network nodes. In this case, a technician may manually match the plurality of regions with the plurality of network nodes in advance, and use the matching result as the resolution rule of the domain name, where the resolution rule of the domain name indicates that the domain name of a certain region is resolved into the IP address of the network node matched with the region.
However, since the area and the network node corresponding to the domain name are often complicated, the process of manually matching the area and the network node by a technician is cumbersome. In addition, since technicians can only match the areas and the network nodes according to experience, matching accuracy is low, which results in low accuracy of the resolution rules of the domain names obtained subsequently.
Disclosure of Invention
In order to solve the problems of complex matching process and low matching accuracy in the related art, the embodiment of the invention provides a method and a device for determining a domain name resolution rule and a computer-readable storage medium. The technical scheme is as follows:
in a first aspect, a method for determining a domain name resolution rule is provided, where the method includes:
determining a plurality of areas and a plurality of network nodes corresponding to a target domain name;
acquiring characteristic information of the plurality of areas and the plurality of network nodes;
matching the plurality of areas with the plurality of network nodes based on the characteristic information to obtain a matching result;
and determining the matching result as the resolution rule of the target domain name.
In a second aspect, an apparatus for determining a domain name resolution rule is provided, the apparatus comprising:
the first determining module is used for determining a plurality of areas and a plurality of network nodes corresponding to the target domain name;
an obtaining module, configured to obtain feature information of the plurality of areas and the plurality of network nodes;
the matching module is used for matching the plurality of areas with the plurality of network nodes based on the characteristic information to obtain matching results;
and the second determining module is used for determining the matching result as the resolution rule of the target domain name.
In a third aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of determining domain name resolution rules according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the present invention, a plurality of regions and a plurality of network nodes corresponding to the target domain name may be determined first, and then feature information of the plurality of regions and the plurality of network nodes may be acquired. And then, automatically completing the matching of the plurality of areas and the plurality of network nodes based on the characteristic information to obtain a matching result, and determining the matching result as an analysis rule of the target domain name. In the process of determining the analysis rule, no technical personnel are required, so that the process of determining the analysis rule can be greatly simplified, and the efficiency of determining the analysis rule is improved. In addition, since the matching between the plurality of regions and the plurality of network nodes is performed based on the feature information of the plurality of regions and the plurality of network nodes, the accuracy of the obtained matching result can be improved, and the accuracy of the resolution rule of the target domain name determined based on the matching result can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a flowchart of a method for determining a domain name resolution rule according to an embodiment of the present invention;
fig. 1B is a schematic diagram of a process of issuing a resolution rule of a target domain name according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for determining a domain name resolution rule according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining a domain name resolution rule according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. Since one service is usually provided by a plurality of network nodes having the same domain name, and the areas where the plurality of network nodes are located are often different, for a domain name, the domain name corresponds to the plurality of areas and the plurality of network nodes. At present, technicians usually match a plurality of areas and a plurality of network nodes corresponding to the domain name manually in advance, and use the matching result as a resolution rule of the domain name, so that access requests of clients of the plurality of areas for the domain name can be dispersed to the plurality of network nodes based on the resolution rule of the domain name in the following.
However, a technician is required to perform a lot of work in manually matching the plurality of areas with the plurality of network nodes. For example, a technician needs to query a plurality of areas and a plurality of network nodes corresponding to the domain name, then query the relevant information of the areas and the network nodes, and finally match the areas and the network nodes according to the relevant information and self experience. Since the area and the network node corresponding to the domain name are often numerous and complicated, the matching process is complicated and error is easily caused. Therefore, the embodiment of the present invention provides a method for determining a domain name resolution rule, which can automatically determine a plurality of regions and a plurality of network nodes corresponding to a target domain name, and automatically match the plurality of regions with the network nodes to obtain the resolution rule of the target domain name, thereby simplifying a matching process and improving matching accuracy, and further simplifying a determination process of the resolution rule and improving accuracy of the determined resolution rule.
It should be noted that the method for determining a domain name resolution rule provided in the embodiment of the present invention may be applied to a device for determining a domain name resolution rule, where the device for determining a domain name resolution rule may be a server, and the server may be one server or a server cluster composed of multiple servers.
Fig. 1A is a flowchart of a method for determining a domain name resolution rule according to an embodiment of the present invention. Referring to fig. 1A, the method includes:
step 101: and determining a plurality of areas and a plurality of network nodes corresponding to the target domain name.
It should be noted that the target domain name is a domain name for which a resolution rule needs to be determined, and the resolution rule of the target domain name is used to indicate an IP address to which the target domain name of a different region should be resolved.
In addition, the plurality of areas are areas where clients capable of sending access requests for the target domain name are located. The plurality of regions may be obtained by dividing according to an operator and/or a geographical location, and for example, the plurality of regions may be "china-guangdong-telecommunications" and "china-wuhan-mobile", and of course, the plurality of regions may also be obtained by dividing according to other standards, for example, the plurality of regions may be obtained by self-defining according to actual needs, and the implementation of the present invention is not limited thereto.
Further, the plurality of network nodes may be IDCs (Internet Data centers). Of course, the multiple network nodes may also be other network devices that can provide services, which is not limited in this embodiment of the present invention.
Specifically, step 101 can be implemented in the following two ways.
The first mode is as follows: based on the target domain name, acquiring a plurality of corresponding area identifications and a plurality of corresponding network node identifications from the stored corresponding relation among the domain name, the area identifications and the network node identifications; and determining the area identified by each of the plurality of area identifications as the area corresponding to the target domain name, and determining the network node identified by each of the plurality of network node identifications as the network node corresponding to the target domain name.
It should be noted that the area identifier is used to uniquely identify the area, and the area identifier may be a name of the area. The network node identifier is used to uniquely identify the network node, and the network node identifier may be a name, a number, or the like of the network node.
For example, if the target domain name is fortest.xxx.com, then, based on fortest.xxx.com, from the correspondence among the domain name, the area identifier, and the network node identifier shown in table 1 below, a plurality of corresponding area identifiers, which are "china-guangdong-telecommunications" and "china-wuhan-mobile", may be obtained, and a plurality of corresponding network node identifiers, which are "IDC 1" and "IDC 2". At this time, the area identified by the "china-guangdong-telecommunications" may be determined as an area corresponding to fortest.xxx.com, the area identified by the "china-wuhan-mobile" may be determined as an area corresponding to fortest.xxx.com, the network node identified by the "IDC 1" may be determined as a network node corresponding to fortest.xxx.com, and the network node identified by the "IDC 2" may be determined as a network node corresponding to fortest.xxx.com.
TABLE 1
Domain name Region identification Network node identification
fortest.xxx.com China-Guangdong-telecom, China-Wuhan-Mobile IDC1、IDC2
…… …… ……
In the embodiment of the present invention, only the correspondence between the domain name, the area identifier, and the network node identifier shown in table 1 is used as an example for description, and table 1 does not limit the embodiment of the present invention.
Further, before acquiring the corresponding multiple area identifiers and the multiple network node identifiers from the corresponding relationship among the stored domain name, the area identifier and the network node identifier based on the target domain name, the multiple area identifiers and the multiple network node identifiers carried in the first storage instruction may be stored in the corresponding relationship among the domain name, the area identifier and the network node identifier when the first storage instruction is received.
It should be noted that the first storage instruction is used to instruct to correspondingly store the target domain name, the multiple area identifiers, and the multiple network node identifiers, and the first storage instruction may be triggered by a technician, and the technician may trigger the first storage instruction by a specified operation, where the specified operation may be a single-click operation, a double-click operation, a voice operation, and the like, which is not limited in this embodiment of the present invention.
For example, if the target domain name carried in the received first storage instruction is fortest.xxx.com, the plurality of carried region identifiers are "china-guangdong-telecommunications" and "china-wuhan-mobile", and the plurality of carried network nodes are "IDC 1" and "IDC 2", fortest.xxx.com, "china-guangdong-telecommunications" and "china-wuhan-mobile", "IDC 1" and "IDC 2" may be stored in the correspondence between the domain name, the region identifier, and the network node identifier as shown in table 1 above.
The second mode is as follows: receiving a configuration instruction, wherein the configuration instruction carries a plurality of IP addresses; for each IP address in the plurality of IP addresses, determining a region and a network node corresponding to the IP address; and determining the area and the network node corresponding to the IP address as the area and the network node corresponding to the target domain name.
It should be noted that the configuration instruction is used to instruct to configure the resolution rule of the target domain name, so that at this time, the area and the network node corresponding to each IP address in the multiple IP addresses carried by the configuration instruction may be determined as the area and the network node corresponding to the target domain name. In addition, the configuration instruction may be triggered by a technician, and the technician may trigger by a specified operation.
When determining the area and the network node corresponding to each IP address in the plurality of IP addresses, the corresponding area identifier and network node identifier may be obtained from the correspondence among the stored IP addresses, area identifiers, and network node identifiers based on the IP address, and then the area identified by the area identifier is determined as the area corresponding to the IP address, and the network node identified by the network node identifier is determined as the network node corresponding to the IP address.
For example, if one of the IP addresses is 1.1.1.1, the corresponding area identifier is "china-guangdong-telecommunications" and the corresponding network node identifier is "IDC 1", based on 1.1.1.1, obtained from the correspondence among the IP address, the area identifier, and the network node identifier shown in table 2 below. At this time, the area identified by "china-guangdong-telecommunications" may be determined as the area corresponding to 1.1.1.1, and the network node identified by "IDC 1" may be determined as the network node corresponding to 1.1.1.1.
TABLE 2
IP address Region identification Network node identification
1.1.1.1 China-Guangdong-telecommunication system IDC1
2.2.2.2 China-Wuhan-Mobile IDC2
…… …… ……
In the embodiment of the present invention, only the correspondence between the IP address, the area identifier, and the network node identifier shown in table 2 is used as an example for description, and table 2 does not limit the embodiment of the present invention.
In practical applications, the correspondence between the IP address, the area identifier, and the network node identifier may be stored in a CMDB (Configuration Management Database), and at this time, the area identifier and the network node identifier corresponding to each of the multiple IP addresses may be obtained from the CMDB by calling an API and using an SQL (Structured Query Language) or other Query manner.
Further, based on the IP address, before the corresponding area identifier and network node identifier are obtained from the corresponding relationship among the stored IP address, area identifier and network node identifier, the IP address, area identifier and network node identifier carried in the second storage instruction may be stored in the corresponding relationship among the IP address, area identifier and network node identifier when the second storage instruction is received.
It should be noted that the second storage instruction is used to store the IP address, the area identifier, and the network node identifier correspondingly, and the second storage instruction may be triggered by a technician, and the technician may trigger through a specified operation.
For example, if the received second storage instruction carries an IP address of 1.1.1.1, an area identifier of "china-guangdong-telecommunications", and a network node identifier of "IDC 1", then 1.1.1.1, "china-guangdong-telecommunications", and "IDC 1" may be stored in the correspondence between the IP address, the area identifier, and the network node identifier as shown in table 2 above.
Step 102: characteristic information of the plurality of areas and the plurality of network nodes is obtained.
It should be noted that the characteristic information of the plurality of areas and the plurality of network nodes may include at least one of a network transmission attribute value between each of the plurality of areas and each of the plurality of network nodes, an access amount of each of the plurality of areas, an access amount supported by each of the plurality of network nodes, and other related information, which is not limited in this embodiment of the present invention.
In addition, the network transmission attribute value may be a weighted value of at least one of attribute values that affect network transmission, such as data transmission delay, data transmission cost, and physical distance.
Specifically, when the plurality of areas and the plurality of network nodes corresponding to the target domain name are determined by the first manner in step 101, step 102 may be implemented by the following first manner or second manner. When the plurality of areas and the plurality of network nodes corresponding to the target domain name are determined by the second method in step 101, step 102 may be implemented by the following third method.
The first mode is as follows: and acquiring characteristic information required when the preset matching strategy is realized.
It should be noted that a preset matching policy may be preset, where the matching policy is used to indicate a matching relationship between the multiple regions corresponding to the target domain name and the multiple network nodes, so that feature information required when the matching policy is implemented may be obtained at this time, so that the multiple regions and the multiple network nodes may be matched based on the feature information and the matching policy in the following.
In addition, the matching policy may be to match the plurality of areas and the plurality of network nodes based on characteristic information of the plurality of areas and the plurality of network nodes. For example, the matching policy may be to match, for each of the plurality of areas, a network node, of the plurality of network nodes, having a smallest network transmission attribute value with the area. Or in order to averagely distribute the access volumes of the plurality of areas to the plurality of network nodes, for each area in the plurality of areas, the network node to which the access volume of the area is distributed is matched with the area. Or allocating the access quantity which is multiple of the preset value of the supported access quantity for each network node in the plurality of network nodes based on the access quantities of the plurality of areas, and matching the network node allocated by the access quantity of the area with the area for each area in the plurality of areas. Or on the basis of averagely distributing the access volumes of the plurality of areas to the plurality of network nodes, for each area in the plurality of areas, matching the network node with the smallest network transmission attribute value between the area and at least one of the network nodes to which the access volume of the area can be distributed with the area.
It should be noted that the preset value may be preset, and the preset value may be a value greater than 0 and smaller than 1, such as 0.4, 0.5, and the like.
The characteristic information required for realizing the matching strategy is the relevant information of the plurality of areas and the plurality of network nodes required when the plurality of areas and the plurality of network nodes are matched according to the matching strategy. The feature information may be stored in the CMDB, and at this time, the feature information may be obtained from the CMDB by calling an API, using SQL, or the like. Of course, the characteristic information may also be obtained in other manners, for example, when the characteristic information is data transmission delay between each of the plurality of areas and each of the plurality of network nodes, the client in each of the plurality of areas may perform a speed measurement operation to each of the plurality of network nodes to obtain the data transmission delay between each of the plurality of areas and each of the plurality of network nodes; alternatively, the data transmission delay between each network node and each area may be obtained by each of the plurality of network nodes ping back the IP address of the gateway used by the client in each of the plurality of areas.
The second mode is as follows: acquiring a matching strategy corresponding to a target domain name; and acquiring characteristic information required for realizing the matching strategy.
It should be noted that the matching policy corresponding to the target domain name is used to indicate the matching relationship between the plurality of regions corresponding to the target domain name and the plurality of network nodes, so that feature information required for implementing the matching policy can be obtained at this time, so that the plurality of regions and the plurality of network nodes can be subsequently matched based on the feature information and the matching policy.
When the matching policy corresponding to the target domain name is obtained, the corresponding matching policy may be obtained from the correspondence between the stored domain name and the matching policy based on the target domain name.
For example, if the target domain name is fortest.xxx.com, the corresponding matching policy may be obtained as matching policy 1 from the correspondence between the domain name and the matching policy shown in table 3 below based on fortest.xxx.com.
TABLE 3
Domain name Matching strategy
fortest.xxx.com Matching strategy 1
www.xxx.com Matching strategy 2
…… ……
In the embodiment of the present invention, only the correspondence between the domain name and the matching policy shown in table 3 above is used as an example for description, and table 3 above does not limit the embodiment of the present invention.
Further, based on the target domain name, before the corresponding matching policy is obtained from the corresponding relationship between the stored domain name and the matching policy, the target domain name and the matching policy carried in the third storage instruction may be stored in the corresponding relationship between the domain name and the matching policy when the third storage instruction is received.
It should be noted that the third storage instruction is used to store the target domain name and the matching policy correspondingly, and the third storage instruction may be triggered by a technician, and the technician may trigger the third storage instruction by a specified operation.
For example, if the target domain name carried in the received third storage instruction is fortest.xxx.com and the carried matching policy is matching policy 1, fortest.xxx.com and configuration policy 1 may be stored in the corresponding relationship between the domain name and the matching policy shown in table 3 above.
The third mode is as follows: and when the configuration instruction carries the matching strategy, acquiring the characteristic information required for realizing the matching strategy.
It should be noted that, since the configuration instruction is used to instruct to configure the resolution rule of the target domain name, the configuration instruction carries a matching policy for instructing the matching relationship between the plurality of regions corresponding to the target domain name and the plurality of network nodes, so that feature information required for implementing the matching policy can be obtained at this time, so that the plurality of regions and the plurality of network nodes can be subsequently matched based on the feature information and the matching policy.
Step 103: and matching the plurality of areas with the plurality of network nodes based on the characteristic information to obtain a matching result.
Specifically, when the feature information is obtained through any one of the three manners in step 102, the matching policy in the manner may be used to match the plurality of areas with the plurality of network nodes based on the feature information, so as to obtain a matching result.
For example, the plurality of areas are area 1 and area 2, the plurality of network nodes are network node 1 and network node 2, the characteristic information is a network transmission attribute value between each of the plurality of areas and each of the plurality of network nodes, and the characteristic information may be as shown in table 4 below. Assuming that the matching policy is to match, for each of the plurality of areas, a network node with a minimum network transmission attribute value between the plurality of network nodes and the area with the area, then area 1 may be matched with network node 2, and area 2 may be matched with network node 1.
TABLE 4
Figure BDA0001327002790000091
Figure BDA0001327002790000101
In the embodiment of the present invention, only the characteristic information shown in table 4 above is taken as an example for explanation, and table 4 above does not limit the embodiment of the present invention.
Step 104: and determining the matching result as a resolution rule of the target domain name.
Specifically, for each of the multiple regions, the target domain name, the region identifier of the region, and the IP address of the network node matched with the region may be stored correspondingly, so as to obtain the resolution rule of the target domain name.
For example, the target domain name is fortest.xxx.com, the areas of the multiple areas are identified as "china-guangdong-telecommunications" and "china-wuhan-mobile", the IP addresses of the multiple network nodes are 1.1.1.1.1 and 2.2.2.2, the network node matched with the area identified by "china-guangdong-telecommunications" is the network node corresponding to 2.2.2.2, and the network node matched with the area identified by "china-wuhan-mobile" is the network node corresponding to 1.1.1.1. For each of the multiple regions, the target domain name, the region identifier of the region, and the IP address of the network node matched with the region are stored correspondingly, and the resolution rule of the target domain name is obtained as shown in table 5 below.
TABLE 5
Target domain name Region identification IP address
fortest.xxx.com China-Wuhan-Mobile 1.1.1.1
fortest.xxx.com China-Guangdong-telecommunication system 2.2.2.2
In the embodiment of the present invention, only the resolution rule of the target domain name shown in table 5 above is taken as an example for description, and table 5 above does not limit the embodiment of the present invention.
Further, in order to enable each domain name resolution server to resolve the target domain name based on the resolution rule of the target domain name, after step 104, the resolution rule of the target domain name may also be issued to each domain name resolution server. For example, as shown in fig. 1B, after the determining device of the domain name resolution rule determines the resolution rule of the target domain name, the determining device of the domain name resolution rule may issue the resolution rule of the target domain name to the domain name resolution server 1, the domain name resolution server 2, and the domain name resolution server 3.
After receiving the resolution rule of the target domain name, each domain name resolution server may, if receiving an access request for the target domain name sent by a client in any one of the plurality of regions, resolve the target domain name based on the resolution rule of the target domain name to obtain an IP address of a network node matched to the region, and send the IP address to the client, so that the client can access the network node matched to the region based on the IP address.
At this time, for each of the multiple regions, the client access target domain name in the region is the network node matched for accessing the region. Since the network node matched with the area is the most suitable network node for the plurality of network nodes and the area in terms of the matching policy indication, the client in the area in this case has a better effect of accessing the target domain name.
In the embodiment of the present invention, a plurality of regions and a plurality of network nodes corresponding to the target domain name may be determined first, and then feature information of the plurality of regions and the plurality of network nodes may be acquired. And then, automatically completing the matching of the plurality of areas and the plurality of network nodes based on the characteristic information to obtain a matching result, and determining the matching result as an analysis rule of the target domain name. In the process of determining the analysis rule, no technical personnel are required, so that the process of determining the analysis rule can be greatly simplified, and the efficiency of determining the analysis rule is improved. In addition, since the matching between the plurality of regions and the plurality of network nodes is performed based on the feature information of the plurality of regions and the plurality of network nodes, the accuracy of the obtained matching result can be improved, and the accuracy of the resolution rule of the target domain name determined based on the matching result can be improved.
Fig. 2 is a schematic structural diagram of a device for determining a domain name resolution rule according to an embodiment of the present invention. Referring to fig. 2, the apparatus includes a first determining module 201, an obtaining module 202, a matching module 203, and a second determining module 204.
A first determining module 201, configured to perform step 101 in the embodiment of fig. 1A;
an obtaining module 202, configured to perform step 102 in the embodiment of fig. 1A;
a matching module 203 for executing step 103 in the embodiment of fig. 1A;
a second determining module 204, configured to perform step 104 in the embodiment of fig. 1A.
Optionally, the characteristic information of the plurality of areas and the plurality of network nodes includes at least one of a network transmission attribute value between each of the plurality of areas and each of the plurality of network nodes, an access amount of each of the plurality of areas, and an access amount supported by each of the plurality of network nodes.
Optionally, the first determining module 201 includes a receiving unit, a first determining unit and a second determining unit.
The receiving unit is used for receiving a configuration instruction, the configuration instruction is used for indicating the configuration of the resolution rule of the target domain name, and the configuration instruction carries a plurality of Internet Protocol (IP) addresses;
a first determining unit, configured to determine, for each of a plurality of IP addresses, an area and a network node corresponding to the IP address;
and the second determining unit is used for determining the area and the network node corresponding to the IP address as the area and the network node corresponding to the target domain name.
Optionally, the obtaining module 202 includes a first obtaining unit.
A first obtaining unit, configured to perform a third manner in step 102 in the embodiment of fig. 1A;
accordingly, the matching module 203 comprises a first matching unit.
And the first matching unit is used for matching the plurality of areas with the plurality of network nodes according to the matching strategy based on the characteristic information to obtain a matching result.
Optionally, the obtaining module 202 includes a second obtaining unit and a third obtaining unit.
The second obtaining unit is used for obtaining a matching strategy corresponding to the target domain name, and the matching strategy is used for indicating the matching relation between the plurality of areas and the plurality of network nodes;
a third obtaining unit, configured to obtain feature information required for implementing the matching policy;
accordingly, the matching module 203 comprises a second matching unit.
And the second matching unit is used for matching the plurality of areas with the plurality of network nodes according to the matching strategy based on the characteristic information to obtain a matching result.
Optionally, the apparatus further includes a sending module.
And the issuing module is used for issuing the resolution rule of the target domain name to each domain name resolution server so that each domain name resolution server returns the IP address of the network node matched with the region based on the resolution rule of the target domain name when receiving the access request aiming at the target domain name sent by the client side of any one of the regions.
In the embodiment of the present invention, a plurality of regions and a plurality of network nodes corresponding to the target domain name may be determined first, and then feature information of the plurality of regions and the plurality of network nodes may be acquired. And then, automatically completing the matching of the plurality of areas and the plurality of network nodes based on the characteristic information to obtain a matching result, and determining the matching result as an analysis rule of the target domain name. In the process of determining the analysis rule, no technical personnel are required, so that the process of determining the analysis rule can be greatly simplified, and the efficiency of determining the analysis rule is improved. In addition, since the matching between the plurality of regions and the plurality of network nodes is performed based on the feature information of the plurality of regions and the plurality of network nodes, the accuracy of the obtained matching result can be improved, and the accuracy of the resolution rule of the target domain name determined based on the matching result can be improved.
It should be noted that: the apparatus for determining a domain name resolution rule provided in the foregoing embodiment is only illustrated by the division of the functional modules when determining the domain name resolution rule, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for determining a domain name resolution rule and the method for determining a domain name resolution rule provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 3 is a schematic structural diagram of an apparatus for determining a domain name resolution rule according to an embodiment of the present invention, where the apparatus may be a server 300, and the server 300 may be a server in a background server cluster. Specifically, the method comprises the following steps:
the server 300 includes a Central Processing Unit (CPU)301, a system memory 304 including a Random Access Memory (RAM)302 and a Read Only Memory (ROM)303, and a system bus 305 connecting the system memory 304 and the central processing unit 301. The server 300 also includes a basic input/output system (I/O system) 306, which facilitates the transfer of information between devices within the computer, and a mass storage device 307, which stores an operating system 313, application programs 314, and other program modules 315.
The basic input/output system 306 comprises a display 308 for displaying information and an input device 309, such as a mouse, keyboard, etc., for a user to input information. Wherein a display 308 and an input device 309 are connected to the central processing unit 301 through an input output controller 310 connected to the system bus 305. The basic input/output system 306 may also include an input/output controller 310 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, an input-output controller 310 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 307 is connected to the central processing unit 301 through a mass storage controller (not shown) connected to the system bus 305. The mass storage device 307 and its associated computer-readable media provide non-volatile storage for the server 300. That is, the mass storage device 307 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 304 and mass storage device 307 described above may be collectively referred to as memory.
According to various embodiments of the invention, the server 300 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 300 may be connected to the network 312 through the network interface unit 311 connected to the system bus 305, or the network interface unit 311 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU. The one or more programs include instructions for performing the method of determining domain name resolution rules provided by the fig. 1A embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (13)

1. A method for determining a domain name resolution rule, the method comprising:
determining a plurality of areas and a plurality of network nodes corresponding to a target domain name, wherein the target domain name is a domain name of which an analysis rule needs to be determined;
acquiring feature information of the plurality of areas and the plurality of network nodes, wherein the feature information is required for realizing a matching strategy, and the matching strategy is used for indicating matching relations between the plurality of areas and the plurality of network nodes;
matching the plurality of areas with the plurality of network nodes according to the matching strategy based on the characteristic information to obtain a matching result;
and determining the matching result as the resolution rule of the target domain name.
2. The method of claim 1, wherein the characteristic information of the plurality of regions and the plurality of network nodes comprises at least one of network transmission attribute values between each of the plurality of regions and each of the plurality of network nodes, an amount of access for each of the plurality of regions, and an amount of access supported by each of the plurality of network nodes.
3. The method according to claim 1 or 2, wherein the determining the plurality of regions and the plurality of network nodes corresponding to the target domain name comprises:
receiving a configuration instruction, wherein the configuration instruction is used for indicating the configuration of the resolution rule of the target domain name, and the configuration instruction carries a plurality of Internet Protocol (IP) addresses;
for each IP address in the plurality of IP addresses, determining a region and a network node corresponding to the IP address;
and determining the area and the network node corresponding to the IP address as the area and the network node corresponding to the target domain name.
4. The method of claim 3, wherein the matching policy is carried in the configuration instruction.
5. The method of claim 1 or 2, wherein prior to said obtaining the characteristic information of the plurality of regions and the plurality of network nodes, the method further comprises:
and acquiring a matching strategy corresponding to the target domain name.
6. The method of claim 1, wherein the determining the matching result as the resolution rule for the target domain name further comprises:
and issuing the resolution rule of the target domain name to each domain name resolution server so that when each domain name resolution server receives an access request aiming at the target domain name sent by a client side of any one of the plurality of regions, the IP address of the network node matched with the region is returned based on the resolution rule of the target domain name.
7. An apparatus for determining a domain name resolution rule, the apparatus comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a plurality of areas and a plurality of network nodes corresponding to a target domain name, and the target domain name is a domain name of which an analysis rule needs to be determined;
an obtaining module, configured to obtain feature information of the multiple regions and the multiple network nodes, where the feature information is feature information required for implementing a matching policy, and the matching policy is used to indicate matching relationships between the multiple regions and the multiple network nodes;
the matching module is used for matching the plurality of areas with the plurality of network nodes according to a matching strategy based on the characteristic information to obtain a matching result;
and the second determining module is used for determining the matching result as the resolution rule of the target domain name.
8. The apparatus of claim 7, wherein the characteristic information of the plurality of regions and the plurality of network nodes comprises at least one of network transmission attribute values between each of the plurality of regions and each of the plurality of network nodes, an amount of access for each of the plurality of regions, and an amount of access supported by each of the plurality of network nodes.
9. The apparatus of claim 7 or 8, wherein the first determining module comprises:
a receiving unit, configured to receive a configuration instruction, where the configuration instruction is used to instruct to configure a resolution rule of the target domain name, and the configuration instruction carries multiple internet protocol IP addresses;
a first determining unit, configured to determine, for each IP address of the multiple IP addresses, an area and a network node corresponding to the IP address;
a second determining unit, configured to determine the area and the network node corresponding to the IP address as the area and the network node corresponding to the target domain name.
10. The apparatus of claim 9, wherein the matching policy is carried in the configuration instruction.
11. The apparatus of claim 7 or 8, wherein the apparatus further comprises a module for obtaining a matching policy corresponding to the target domain name.
12. The apparatus of claim 7, wherein the apparatus further comprises:
and the issuing module is used for issuing the resolution rule of the target domain name to each domain name resolution server so that when each domain name resolution server receives an access request aiming at the target domain name and sent by a client side of any one of the plurality of regions, the IP address of the network node matched with the region is returned based on the resolution rule of the target domain name.
13. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of determining domain name resolution rules according to any one of claims 1-6.
CN201710477711.1A 2017-06-20 2017-06-20 Method and device for determining domain name resolution rule and computer readable storage medium Active CN109104506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710477711.1A CN109104506B (en) 2017-06-20 2017-06-20 Method and device for determining domain name resolution rule and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710477711.1A CN109104506B (en) 2017-06-20 2017-06-20 Method and device for determining domain name resolution rule and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109104506A CN109104506A (en) 2018-12-28
CN109104506B true CN109104506B (en) 2021-05-14

Family

ID=64796268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710477711.1A Active CN109104506B (en) 2017-06-20 2017-06-20 Method and device for determining domain name resolution rule and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109104506B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244805B (en) * 2021-11-08 2023-10-03 网宿科技股份有限公司 Domain name configuration method and device
CN114430408B (en) * 2021-12-22 2024-01-02 天翼云科技有限公司 Domain name resolution scheduling method, device, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902442A (en) * 2009-05-25 2010-12-01 中国科学院计算机网络信息中心 Method, system and position information server for acquiring IP geographic position information
CN103973837A (en) * 2014-05-27 2014-08-06 北京瑞汛世纪科技有限公司 Method and device for determining physical location information
CN105897822A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Content distribution network CDN node selection method and apparatus

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295391A (en) * 2007-04-27 2008-10-29 阿里巴巴集团控股有限公司 On-line transaction method and on-line transaction system
CN102006234A (en) * 2010-12-09 2011-04-06 工业和信息化部电信传输研究所 Method and device for optimizing P2P (Peer-to-Peer) network flow
CN102611763A (en) * 2011-01-25 2012-07-25 中国移动通信集团公司 DNS (Domain Name Server) inquiring method and equipment
US9219781B2 (en) * 2013-04-06 2015-12-22 Citrix Systems, Inc. Systems and methods for GSLB preferred backup list
CN104104610A (en) * 2013-04-09 2014-10-15 江苏天联信息科技发展有限公司 Flow scheduling method and apparatus based on domain name system, and domain name system
US9467506B2 (en) * 2014-01-27 2016-10-11 Google Inc. Anycast based, wide area distributed mapping and load balancing system
CN104767839A (en) * 2015-03-25 2015-07-08 五八有限公司 IP positioning method and device
CN104954507B (en) * 2015-06-23 2018-09-18 中国互联网络信息中心 The preferred domain name analytic method of data and system
CN105721629B (en) * 2016-03-24 2019-04-26 百度在线网络技术(北京)有限公司 User identifier matching process and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902442A (en) * 2009-05-25 2010-12-01 中国科学院计算机网络信息中心 Method, system and position information server for acquiring IP geographic position information
CN103973837A (en) * 2014-05-27 2014-08-06 北京瑞汛世纪科技有限公司 Method and device for determining physical location information
CN105897822A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Content distribution network CDN node selection method and apparatus

Also Published As

Publication number Publication date
CN109104506A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN110677405B (en) Data processing method and device, electronic equipment and storage medium
CN111885216B (en) DNS query method, device, equipment and storage medium
CN110677493B (en) Service state determination method and device, computer device and storage medium
CN105354255A (en) Data query method and apparatus
CN109246078B (en) Data interaction method and server
CN111163186B (en) ID generation method, device, equipment and storage medium
CN111385370B (en) ID allocation method, device, storage medium and ID allocation system
CN108629050B (en) Service data adjustment method, device, computer equipment and storage medium
CN111064786B (en) Account identifier management method and device
CN109104506B (en) Method and device for determining domain name resolution rule and computer readable storage medium
CN108154024B (en) Data retrieval method and device and electronic equipment
CN112087401A (en) Method and device for realizing service quality in distributed storage
CN109560940B (en) Charging method and device for content delivery network CDN service
CN108733545A (en) A kind of method for testing pressure and device
CN110336752A (en) A kind of method and system improving locally broadcast pushing efficiency
CN104579753B (en) User data statistical method, access stratum server and statistical server
CN105978744A (en) Resource allocation method, device and system
CN109862134B (en) Lease time configuration method and system of IP address and DHCP client
CN111343240A (en) Service request processing method and device, electronic equipment and storage medium
WO2017000540A1 (en) Data query method and device
CN107172129B (en) Server configuration method and device
CN112035760B (en) Task allocation method and computer equipment
CN115098270A (en) Memory space allocation method, system, device and readable storage medium
CN114338279A (en) Terminal access method and device and server
CN111221847B (en) Monitoring data storage method, device and computer readable 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