CN109104506A - The determination method, apparatus and computer readable storage medium of domain name mapping rule - Google Patents

The determination method, apparatus and computer readable storage medium of domain name mapping rule Download PDF

Info

Publication number
CN109104506A
CN109104506A CN201710477711.1A CN201710477711A CN109104506A CN 109104506 A CN109104506 A CN 109104506A CN 201710477711 A CN201710477711 A CN 201710477711A CN 109104506 A CN109104506 A CN 109104506A
Authority
CN
China
Prior art keywords
network node
region
domain name
matching
target domain
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.)
Granted
Application number
CN201710477711.1A
Other languages
Chinese (zh)
Other versions
CN109104506B (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

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

Abstract

The invention discloses the determination method, apparatus and computer readable storage medium of a kind of domain name mapping rule, belong to Internet technical field.The described method includes: determining the corresponding multiple regions of target domain name and multiple network nodes;Obtain the characteristic information in the multiple region and the multiple network node;Based on the characteristic information, the multiple region is matched with the multiple network node, obtains matching result;The matching result is determined as to the resolution rules of the target domain name.It participates in quickly determining the resolution rules of target domain name without technical staff in the present invention, to enormously simplify the determination process of resolution rules, improves the determination efficiency of resolution rules.In addition, the matching in multiple region Yu multiple network node is carried out by the characteristic information for being then based on multiple region and multiple network node, it is thus possible to improve the accuracy of obtained matching result, and then improve the accuracy of determining resolution rules.

Description

The determination method, apparatus and computer readable storage medium of domain name mapping rule
Technical field
The present invention relates to Internet technical field, in particular to a kind of the determination method, apparatus and meter of domain name mapping rule Calculation machine readable storage medium storing program for executing.
Background technique
In internet, remember for convenience, generallys use domain name instead of IP (Internet Protocol, internet protocol View) address identifies network node.When client needs to access network node, it can send and be directed to domain name resolution server The access request of the domain name of the network node.It, can be based on the domain name when domain name resolution server receives the access request Resolution rules parse the domain name, obtain the IP address of the network node, and the IP address is sent to client.Client When termination receives the IP address, the access to the network node can be realized based on the IP address.
Currently, one business can be by multiple network nodes with same domain name in order to meet the business demand of user It provides.Since the region where multiple network nodes is often different, for certain domain name, which can correspond to more A region and multiple network nodes.In the case, technical staff can be in advance manually to multiple region and multiple network section Point is matched, and using matching result as the resolution rules of the domain name, the resolution rules of the domain name can be indicated some at this time IP address of the domain name mapping in region for the matched network node in the region.
However, since the corresponding region of domain name and network node are often more numerous and more jumbled, technical staff is manually to region It is relatively complicated that matched process is carried out with network node.In addition, due to technical staff be typically only capable to empirically to come to region with Network node is matched, and therefore, matching accuracy is lower, so as to cause the accuracy of the resolution rules of subsequent obtained domain name It is lower.
Summary of the invention
In order to solve the problems, such as that matching process is cumbersome in the related technology and matching accuracy is lower, the embodiment of the present invention is provided A kind of the determination method, apparatus and computer readable storage medium of domain name mapping rule.The technical solution is as follows:
In a first aspect, providing a kind of determination method of domain name mapping rule, which comprises
Determine the corresponding multiple regions of target domain name and multiple network nodes;
Obtain the characteristic information in the multiple region and the multiple network node;
Based on the characteristic information, the multiple region is matched with the multiple network node, obtains matching knot Fruit;
The matching result is determined as to the resolution rules of the target domain name.
Second aspect, provides a kind of determining device of domain name mapping rule, and described device includes:
First determining module, for determining the corresponding multiple regions of target domain name and multiple network nodes;
Module is obtained, for obtaining the characteristic information in the multiple region and the multiple network node;
Matching module, for being based on the characteristic information, to the multiple region and the progress of the multiple network node Match, obtains matching result;
Second determining module, for the matching result to be determined as to the resolution rules of the target domain name.
The third aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or Described instruction collection is loaded by processor and is executed the determination method to realize domain name mapping rule as described in relation to the first aspect.
Technical solution provided in an embodiment of the present invention has the benefit that in embodiments of the present invention, can first really The corresponding multiple regions of the domain name that sets the goal and multiple network nodes, then obtain the feature in multiple region and multiple network node Information.Later, it is based on this feature information, the matching to multiple region and multiple network node is automatically performed, is matched As a result, and the matching result to be determined as to the resolution rules of target domain name.Technology people is not necessarily in this resolution rules determination process Member participates in, it is possible to which the determination process for greatly simplifying resolution rules improves the determination efficiency of resolution rules.In addition, due to being Multiple region and multiple network node are carried out based on the characteristic information of multiple region and the multiple network node Matching, it is thus possible to improve the accuracy of obtained matching result, and then improve the target domain name determined based on the matching result Resolution rules accuracy.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Figure 1A is a kind of flow chart of the determination method of domain name mapping rule provided in an embodiment of the present invention;
Figure 1B is a kind of schematic diagram for issuing process of the resolution rules of target domain name provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the determining device of domain name mapping rule provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the determining device of domain name mapping rule provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Before to the embodiment of the present invention carrying out that explanation is explained in detail, first the application scenarios of the embodiment of the present invention are given Explanation.Since a business is usually provided by multiple network nodes with same domain name, and the area where multiple network nodes Domain is often different, so the domain name can correspond to multiple regions and multiple network nodes for certain domain name.Currently, technology Personnel would generally in advance manually match the corresponding multiple regions of the domain name and multiple network nodes, and matching result is made For the resolution rules of the domain name, so as to it is subsequent can the resolution rules based on the domain name by the client in multiple region for should The access request of domain name is distributed to multiple network node.
However, technical staff needs to carry out a large amount of works when manually matching in multiple region with multiple network node Make.For example, technical staff will first inquire the corresponding multiple regions of the domain name and multiple network nodes, then inquire multiple region and The relevant information of multiple network node, finally could be more with this by multiple region according to these relevant informations and experience A network node is matched.Since the corresponding region of domain name and network node are often more numerous and more jumbled, thus the matching process compared with It is cumbersome and easily malfunction.For this purpose, the embodiment of the invention provides a kind of determination method of domain name mapping rule, it can automatically really The corresponding multiple regions of the domain name that sets the goal and multiple network nodes, and multiple region is matched with the network node automatically It obtains the resolution rules of target domain name, so as to simplify matching process and improve matching accuracy, and then simplifies parsing rule The accuracy of the determining resolution rules of determination process and raising then.
It should be noted that the determination method of domain name mapping rule provided in an embodiment of the present invention can be applied to domain name solution The determining device of rule is analysed, the determining device of domain name mapping rule can be server, which can be a service Device is also possible to the server cluster etc. being made of multiple servers, and the embodiment of the present invention is not construed as limiting this.
Figure 1A is a kind of flow chart of the determination method of domain name mapping rule provided in an embodiment of the present invention.Referring to Figure 1A, This method comprises:
Step 101: determining the corresponding multiple regions of target domain name and multiple network nodes.
It should be noted that the entitled domain name for needing to be determined resolution rules of aiming field, the resolution rules of target domain name are used In the IP address that the target domain name of instruction different zones should be resolved to.
In addition, multiple region is that can send for the region where the client of the access request of target domain name.It should Multiple regions can divide to obtain according to operator and/or geographical location, and such as multiple region can be " China-Guangdong-electricity Letter " and " China-Wuhan-movement ", certainly, multiple region can also divide to obtain according to other standards, such as multiple region It self-defining can obtain according to actual needs, present invention implementation is not construed as limiting this.
Furthermore multiple network node can be IDC (Internet Data Center, Internet data center).When So, multiple network node may be other network equipments for the business that can provide, and the embodiment of the present invention is not construed as limiting this.
Specifically, step 101 can be realized by the following two kinds mode.
First way: being based on target domain name, from corresponding between the domain name of storage, area identification and network node mark In relationship, corresponding multiple regions mark and multiple network nodes mark are obtained;Region each in multiple area identification is marked Know identified region and be determined as the corresponding region of target domain name, and by each network node mark in multiple network node mark Know identified network node and is determined as the corresponding network node of target domain name.
It should be noted that area identification is used for unique identification region, and the area identification can be the title in the region Deng.Network node mark be used for the unique identification network node, and the network node mark can for the network node title, Number etc..
For example, the entitled fortest.xxx.com of aiming field, then can be based on fortest.xxx.com, from such as the following table 1 institute In corresponding relationship between the domain name shown, area identification and network node mark, obtain corresponding multiple regions be identified as " in State-Guangdong-telecommunications " and " China-Wuhan-movement ", corresponding multiple network nodes are identified as " IDC1 " and " IDC2 ".At this time may be used It is determined as the corresponding region fortest.xxx.com so that the region that " China-Guangdong-telecommunications " is identified will be somebody's turn to do, it will " China-force The region that the Chinese-movement " is identified is determined as the corresponding region fortest.xxx.com, the network node that " IDC1 " is identified It is determined as the corresponding network node of fortest.xxx.com, " IDC2 " network node identified is determined as The corresponding network node of fortest.xxx.com.
Table 1
Domain name Area identification Network node mark
fortest.xxx.com China-Guangdong-telecommunications, China-Wuhan-movement IDC1、IDC2
…… …… ……
In the embodiment of the present invention, only domain name, area identification shown in the above table 1 and network node mark between it is corresponding close It is illustrated for system, upper table 1 does not constitute the embodiment of the present invention and limits.
Further, it is being based on target domain name, from corresponding between the domain name of storage, area identification and network node mark In relationship, before obtaining corresponding multiple regions mark and multiple network nodes mark, it can also refer to receiving the first storage When enabling, by the target domain name carried in the first store instruction, multiple regions mark and multiple network nodes mark storage to domain name, In corresponding relationship between area identification and network node mark.
It should be noted that the first store instruction is used to indicate target domain name, multiple regions mark and multiple network sections Point identification carries out corresponding storage, and the first store instruction can be triggered by technical staff, and technical staff can pass through specified operation Triggering, specified operation can be single-click operation, double click operation, voice operating etc., and the embodiment of the present invention is not construed as limiting this.
For example, the entitled fortest.xxx.com of aiming field carried in the first store instruction received, carrying it is multiple Area identification be " China-Guangdong-telecommunications " and " China-Wuhan-movement ", multiple network nodes of carrying be identified as " IDC1 " and " IDC2 ", then can by fortest.xxx.com, " China-Guangdong-telecommunications " and " China-Wuhan-movement ", " IDC1 " and " IDC2 " storage is into the corresponding relationship between domain name as listed in Table 1, area identification and network node mark.
The second way: configuration-direct is received, carries multiple IP address in the configuration-direct;For in multiple IP address Each IP address, determine the corresponding region of the IP address and network node;By the corresponding region of the IP address and network node It is determined as the corresponding region of target domain name and network node.
The resolution rules of target domain name are configured it should be noted that configuration-direct is used to indicate, so at this time may be used It is determined as target domain name with the corresponding region of IP address each in multiple IP address for carrying the configuration-direct and network node Corresponding region and network node.In addition, the configuration-direct can be triggered by technical staff, and technical staff can pass through Specified operation is triggered.
Wherein, for each IP address in multiple IP address, the corresponding region of the IP address and network node are determined When, it can be first based on the IP address, from the corresponding relationship between the IP address of storage, area identification and network node mark, Corresponding area identification and network node mark are obtained, then the region that the area identification is identified is determined as the IP address and is corresponded to Region, which is identified into identified network node and is determined as the corresponding network node of the IP address.
For example, some IP address in multiple IP address is 1.1.1.1, then it can be based on 1.1.1.1, from such as the following table 2 Shown in IP address, area identification and network node mark between corresponding relationship in, obtain corresponding area identification be " in State-Guangdong-telecommunications ", corresponding network node is identified as " IDC1 ".The area that " China-Guangdong-telecommunications " can be identified at this time Domain is determined as the corresponding region 1.1.1.1, and " IDC1 " network node identified is determined as the corresponding network section of 1.1.1.1 Point.
Table 2
IP address Area identification Network node mark
1.1.1.1 China-Guangdong-telecommunications IDC1
2.2.2.2 China-Wuhan-movement IDC2
…… …… ……
It is only corresponding between IP address, area identification shown in the above table 2 and network node mark in the embodiment of the present invention It is illustrated for relationship, upper table 2 does not constitute the embodiment of the present invention and limits.
In practical application, the corresponding relationship between IP address, area identification and network node mark be can store in CMDB It, at this time can be by calling API, using in (Configuration Management Database, configuration management database) The inquiry modes such as SQL (structured query language, Structured Query Language) with obtaining multiple IP from CMDB The corresponding area identification of each IP address and network node mark in location.
Further, it is based on the IP address, from corresponding between the IP address of storage, area identification and network node mark It, can also be when receiving the second store instruction, by the before obtaining corresponding area identification and network node mark in relationship IP address, area identification and network section are arrived in IP address, area identification and the network node mark storage carried in two store instructions In corresponding relationship between point identification.
It should be noted that the second store instruction is corresponding for carrying out IP address, area identification with network node mark Storage, and the second store instruction can be triggered by technical staff, technical staff can pass through specified operation triggering.
For example, the IP address carried in the second store instruction received is 1.1.1.1, the area identification of carrying be " in State-Guangdong-telecommunications ", the network node of carrying is identified as " IDC1 ", then can by 1.1.1.1, " China-Guangdong-telecommunications ", " IDC1 " storage is into the corresponding relationship between IP address shown in table 2 as above, area identification and network node mark.
Step 102: obtaining the characteristic information in multiple region and multiple network node.
It should be noted that the characteristic information of multiple region and multiple network node may include in multiple region Each area in network transmission attribute value, multiple region in each region and multiple network node between each network node At least one of relevant informations such as the amount of access that each network node is supported in the amount of access in domain, multiple network node, this Inventive embodiments are not construed as limiting this.
In addition, network transmission attribute value can influence network for data transmission delay, data transmission cost, physical distance etc. The weighted value of at least one of the attribute value of transmission.
Specifically, when the corresponding multiple regions of target domain name and multiple network nodes be through the above steps in 101 A kind of mode determines when obtaining, and step 102 can pass through following first way or the second way is realized.When target domain name pair The multiple regions and multiple network nodes answered are that the second way in 101 determines that step 102 can when obtaining through the above steps It is realized in a manner of the third by by following.
First way: characteristic information required when realizing preset matching strategy is obtained.
It should be noted that preset matching strategy can be configured in advance, which is used to indicate aiming field Matching relationship between the corresponding multiple region of name and multiple network node, therefore, available realization matching at this time Required characteristic information when tactful, so as to it is subsequent can based on this feature information and the matching strategy come to multiple region with should Multiple network nodes are matched.
In addition, the matching strategy can be the characteristic information based on multiple region and multiple network node to multiple Region and multiple network node are matched.For example, the matching strategy can for for each region in multiple region, The smallest network node of network transmission attribute value in multiple network node between the region is matched with the region. Or for the amount of access in multiple region is averagely allocated to multiple network node, for each area in multiple region Domain matches the network node that the amount of access in the region is assigned to the region.It or is the visit based on multiple region The amount of asking is the amount of access of the default value times for the amount of access that each network node in multiple network node distributes its support, right Each region in multiple region matches the network node that the amount of access in the region is distributed with the region.Or For on the basis of the amount of access in multiple region is averagely allocated to multiple network node, for every in multiple region A region, the network transmission category in the network node of at least one that the amount of access in the region can be assigned between the region The property the smallest network node of value is matched with the region.
It should be noted that default value can be configured in advance, and default value can be for greater than 0 and less than 1 Numerical value, such as can be 0.4,0.5.
Wherein, realize characteristic information required when the matching strategy be according to the matching strategy to multiple region with should When multiple network nodes are matched, the relevant information in the multiple region and multiple network node that need to use.This feature Information can store in CMDB, this feature can be obtained from CMDB by calling API, using inquiry modes such as SQL at this time Information.It is of course also possible to this feature information be obtained otherwise, for example, when this feature information is every in multiple region It, can be by multiple region when data transmission delay in a region and multiple network node between each network node The operation of testing the speed of the client executing in each region each network node into multiple network node, come obtain each region with Data transmission delay between each network node;Alternatively, can be reversed by each network node in multiple network node The IP address of gateway used in the client in each region in the multiple region ping, to obtain each network node and each Data transmission delay between region.
The second way: the corresponding matching strategy of target domain name is obtained;Obtain feature required when realizing the matching strategy Information.
It should be noted that the corresponding matching strategy of target domain name be used to indicate the corresponding multiple region of target domain name with Matching relationship between multiple network node, it is therefore, available at this time to realize characteristic information required when the matching strategy, Multiple region can be matched with multiple network node based on this feature information and the matching strategy so as to subsequent.
Wherein, when obtaining the corresponding matching strategy of target domain name, it can be based on target domain name, from the domain name and matching of storage In corresponding relationship between strategy, corresponding matching strategy is obtained.
For example, the entitled fortest.xxx.com of aiming field, then can be based on fortest.xxx.com, from such as the following table 3 institute In corresponding relationship between the domain name shown and matching strategy, obtaining corresponding matching strategy is matching strategy 1.
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 said for the corresponding relationship shown in the above table 3 between domain name and matching strategy Bright, upper table 3 does not constitute the embodiment of the present invention and limits.
Further, it is based on target domain name, from the corresponding relationship between the domain name and matching strategy of storage, obtains and corresponds to Matching strategy before, can also when receiving third store instruction, by the target domain name carried in third store instruction and Matching strategy is stored into the corresponding relationship between domain name and matching strategy.
It should be noted that third store instruction is for carrying out corresponding storage, and third with matching strategy to target domain name Store instruction can be triggered by technical staff, and technical staff can pass through specified operation triggering.
For example, the entitled fortest.xxx.com of aiming field carried in the third store instruction received, the matching of carrying Strategy is matching strategy 1, then can by fortest.xxx.com and the storage of configuration strategy 1 to domain name shown in table 3 as above with With in the corresponding relationship between strategy.
The third mode: when carrying matching strategy in the configuration-direct, spy required when realizing the matching strategy is obtained Reference breath.
It should be noted that the resolution rules of target domain name are configured since the configuration-direct is used to indicate, so Matching strategy is carried in the configuration-direct to be used to indicate between the corresponding multiple region of target domain name and multiple network node Matching relationship, therefore, required characteristic information when realizing the matching strategy available at this time, so as to it is subsequent can be based on should Characteristic information and the matching strategy match multiple region with multiple network node.
Step 103: being based on this feature information, multiple region is matched with multiple network node, is matched As a result.
Specifically, when this feature information is that formula acquires either in three kinds of modes in 102 through the above steps When, this feature information can be based on, by this way in matching strategy multiple region and multiple network node are carried out Matching, obtains matching result.
For example, multiple region is region 1 and region 2, multiple network node is network node 1 and network node 2, is somebody's turn to do Network transmission category of the characteristic information between each network node in each region in multiple region and multiple network node Property value, and this feature information can be as shown in table 4 below.Assuming that matching strategy is that each region in multiple region is incited somebody to action The smallest network node of network transmission attribute value in multiple network node between the region is matched with the region, then Region 1 can be matched with network node 2, region 2 is matched with network node 1.
Table 4
In the embodiment of the present invention, only it is illustrated for characteristic information shown in the above table 4, upper table 4 is not to the present invention Embodiment, which is constituted, to be limited.
Step 104: the matching result is determined as to the resolution rules of target domain name.
It specifically, can be by target domain name, area identification and this in the region for each region in multiple region Region the IP address of matched network node carry out corresponding storage, obtain the resolution rules of target domain name.
For example, the entitled fortest.xxx.com of aiming field, the area identification in multiple region is " China-Guangdong-telecommunications " " China-Wuhan-movement ", the IP address of multiple network node are 1.1.1.1 and 2.2.2.2, and " China-Guangdong-electricity The matched network node of region institute that letter " is identified is the corresponding network node of 2.2.2.2, and " China-Wuhan-movement " is identified The matched network node of region institute be the corresponding network node of 1.1.1.1.It, will then for each region in multiple region Target domain name, the region area identification and the region the IP address of matched network node carry out corresponding storage, obtain mesh The resolution rules for marking domain name can be as shown in table 5 below.
Table 5
Target domain name Area identification IP address
fortest.xxx.com China-Wuhan-movement 1.1.1.1
fortest.xxx.com China-Guangdong-telecommunications 2.2.2.2
In the embodiment of the present invention, only it is illustrated for the resolution rules of target domain name shown in the above table 5, upper table 5 is simultaneously The embodiment of the present invention is not constituted and is limited.
Further, in order to allow resolution rules of each domain name resolution server based on target domain name to target domain name It is parsed, after step 104, the resolution rules of target domain name can also be issued in each domain name resolution server. For example, as shown in Figure 1B, it, can be by target domain name after the determining device of domain name mapping rule determines the resolution rules of target domain name Resolution rules be issued to domain name resolution server 1, domain name resolution server 2 and domain name resolution server 3.
After each domain name resolution server receives the resolution rules of target domain name, if received in multiple region Any region client send the access request for target domain name, then can be based on the resolution rules pair of target domain name Target domain name is parsed, obtain the region matched network node IP address, and the IP address is sent to the client End so that the client based on the IP address realize to the region matched network node access.
At this point for each region in multiple region, the client access target domain name in the region is that access should The matched network node of region institute.Since the matched network node of region institute is multiple network node and the region at this Aspect network node the most suitable with strategy instruction, therefore, the client access target domain name in the region in such cases Effect it is preferable.
In embodiments of the present invention, the corresponding multiple regions of target domain name and multiple network nodes can first be determined, then obtained Take the characteristic information in multiple region and multiple network node.Later, it is based on this feature information, is automatically performed to multiple area The matching in domain and multiple network node obtains matching result, and the matching result is determined as to the resolution rules of target domain name. It is participated in this resolution rules determination process without technical staff, it is possible to which the determination process for greatly simplifying resolution rules mentions The determination efficiency of high resolution rules.In addition, by the characteristic information that is then based on multiple region and multiple network node come into The matching in row multiple region and multiple network node, it is thus possible to improve the accuracy of obtained matching result, Jin Erti The accuracy of the resolution rules for the target domain name that height is determined based on the matching result.
Fig. 2 is that the embodiment of the invention provides a kind of structural schematic diagrams of the determining device of domain name mapping rule.Referring to figure 2, which includes the first determining module 201, obtains module 202, matching module 203 and the second determining module 204.
First determining module 201, for executing the step 101 in Figure 1A embodiment;
Module 202 is obtained, for executing the step 102 in Figure 1A embodiment;
Matching module 203, for executing the step 103 in Figure 1A embodiment;
Second determining module 204, for executing the step 104 in Figure 1A embodiment.
Optionally, the characteristic information of multiple regions and multiple network nodes includes each region and multiple nets in multiple regions The amount of access in each region and multiple networks in network transmission attribute value, multiple regions in network node between each network node At least one of the amount of access that each network node is supported in node.
Optionally, the first determining module 201 includes receiving unit, the first determination unit and the second determination unit.
Receiving unit, for receiving configuration-direct, configuration-direct, which is used to indicate, matches the resolution rules of target domain name It sets, and carries multiple internet protocol address in configuration-direct;
First determination unit, for for each IP address in multiple IP address, determine the corresponding region of IP address and Network node;
Second determination unit, for the corresponding region of IP address and network node to be determined as the corresponding region of target domain name And network node.
Optionally, obtaining module 202 includes first acquisition unit.
First acquisition unit, for executing the third mode in the step 102 in Figure 1A embodiment;
Correspondingly, matching module 203 includes the first matching unit.
First matching unit, for being based on characteristic information, according to matching strategy to multiple regions and multiple network nodes into Row matching, obtains matching result.
Optionally, obtaining module 202 includes second acquisition unit and third acquiring unit.
Second acquisition unit, for obtaining the corresponding matching strategy of target domain name, matching strategy is used to indicate multiple regions With the matching relationship between multiple network nodes;
Third acquiring unit realizes characteristic information required when matching strategy for obtaining;
Correspondingly, matching module 203 includes the second matching unit.
Second matching unit, for being based on characteristic information, according to matching strategy to multiple regions and multiple network nodes into Row matching, obtains matching result.
Optionally, which further includes issuing module.
Module is issued, for the resolution rules of target domain name to be issued in each domain name resolution server, so that each Domain name resolution server receives the access request for target domain name that the client of any region in multiple regions is sent When, the resolution rules return area based on target domain name matched network node IP address.
In embodiments of the present invention, the corresponding multiple regions of target domain name and multiple network nodes can first be determined, then obtained Take the characteristic information in multiple region and multiple network node.Later, it is based on this feature information, is automatically performed to multiple area The matching in domain and multiple network node obtains matching result, and the matching result is determined as to the resolution rules of target domain name. It is participated in this resolution rules determination process without technical staff, it is possible to which the determination process for greatly simplifying resolution rules mentions The determination efficiency of high resolution rules.In addition, by the characteristic information that is then based on multiple region and multiple network node come into The matching in row multiple region and multiple network node, it is thus possible to improve the accuracy of obtained matching result, Jin Erti The accuracy of the resolution rules for the target domain name that height is determined based on the matching result.
It should be understood that the determining device of domain name mapping rule provided by the above embodiment domain name mapping rule really Periodically, only the example of the division of the above functional modules, it in practical application, can according to need and by above-mentioned function Distribution is completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete above retouch The all or part of function of stating.In addition, the determining device of domain name mapping rule provided by the above embodiment and domain name mapping are advised Determination embodiment of the method then belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 3 is a kind of structural schematic diagram of the determining device of domain name mapping rule provided in an embodiment of the present invention, the device It can be server 300, server 300 can be the server in background server cluster.Specifically:
Server 300 includes central processing unit (CPU) 301 including random access memory (RAM) 302 and read-only deposits The system storage 304 of reservoir (ROM) 303, and the system bus of connection system storage 304 and central processing unit 301 305.Server 300 further includes the basic input/output (I/O that information is transmitted between each device helped in computer System) 306, and for the mass-memory unit of storage program area 313, application program 314 and other program modules 315 307。
Basic input/output 306 includes display 308 for showing information and inputs information for user The input equipment 309 of such as mouse, keyboard etc.Wherein display 308 and input equipment 309 are all by being connected to system bus 305 input and output controller 310 is connected to central processing unit 301.Basic input/output 306 can also include defeated Enter o controller 310 for receiving and handling from the defeated of multiple other equipment such as keyboard, mouse or electronic touch pen Enter.Similarly, input and output controller 310 also provides output to display screen, printer or other kinds of output equipment.
Mass-memory unit 307 is connected by being connected to the bulk memory controller (not shown) of system bus 305 To central processing unit 301.Mass-memory unit 307 and its associated computer-readable medium are that server 300 provides Non-volatile memories.That is, mass-memory unit 307 may include such as hard disk or CD-ROM drive etc Computer-readable medium (not shown).
Without loss of generality, computer-readable medium may include computer storage media and communication media.Computer storage Medium includes any of the information such as computer readable instructions, data structure, program module or other data for storage The volatile and non-volatile of method or technique realization, removable and irremovable medium.Computer storage medium include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, cassette, magnetic Band, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that computer storage medium is not limited to It states several.Above-mentioned system storage 304 and mass-memory unit 307 may be collectively referred to as memory.
According to various embodiments of the present invention, server 300 can also pass through the network connections such as internet to network On remote computer operation.Namely server 300 can be by the Network Interface Unit 311 that is connected on system bus 305 It is connected to network 312, in other words, Network Interface Unit 311 can be used also to be connected to other kinds of network or long-range meter Calculation machine system (not shown).
Above-mentioned memory further includes one, and perhaps more than one program one or more than one program are stored in storage In device, it is configured to be executed by CPU.The one or more programs include the domain name for carrying out Figure 1A embodiment offer The instruction of the determination method of resolution rules.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of determination method of domain name mapping rule, which is characterized in that the described method includes:
Determine the corresponding multiple regions of target domain name and multiple network nodes;
Obtain the characteristic information in the multiple region and the multiple network node;
Based on the characteristic information, the multiple region is matched with the multiple network node, obtains matching result;
The matching result is determined as to the resolution rules of the target domain name.
2. the method as described in claim 1, which is characterized in that the feature of the multiple region and the multiple network node letter Breath includes the network transmission category between each network node in each region in the multiple region and the multiple network node Property value, the access that each network node is supported in the amount of access in each region and the multiple network node in the multiple region At least one of amount.
3. method according to claim 1 or 2, which is characterized in that corresponding multiple regions of the determining target domain name and more A network node, comprising:
Configuration-direct is received, the configuration-direct, which is used to indicate, configures the resolution rules of the target domain name, and described Multiple internet protocol address are carried in configuration-direct;
For each IP address in the multiple IP address, the corresponding region of the IP address and network node are determined;
The corresponding region of the IP address and network node are determined as the corresponding region of the target domain name and network node.
4. method as claimed in claim 3, which is characterized in that the multiple region of the acquisition and the multiple network node Characteristic information, comprising:
When also carrying matching strategy in the configuration-direct, characteristic information required when realizing the matching strategy, institute are obtained State the matching relationship that matching strategy is used to indicate between the multiple region and the multiple network node;
Correspondingly, described to be based on the characteristic information, the multiple region is matched with the multiple network node, is obtained Matching result, comprising:
Based on the characteristic information, according to the matching strategy to the multiple region and the progress of the multiple network node Match, obtains matching result.
5. method according to claim 1 or 2, which is characterized in that the multiple region of the acquisition and the multiple network The characteristic information of node, comprising:
Obtain the corresponding matching strategy of the target domain name, the matching strategy be used to indicate the multiple region with it is the multiple Matching relationship between network node;
Obtain characteristic information required when realizing the matching strategy;
Correspondingly, described to be based on the characteristic information, the multiple region is matched with the multiple network node, is obtained Matching result, comprising:
Based on the characteristic information, according to the matching strategy to the multiple region and the progress of the multiple network node Match, obtains matching result.
6. the method as described in claim 1, which is characterized in that described that the matching result is determined as the target domain name After resolution rules, further includes:
The resolution rules of the target domain name are issued in each domain name resolution server, so that each domain name mapping clothes Business device receive any region in the multiple region client send for the target domain name access request when, Resolution rules based on the target domain name return the region matched network node IP address.
7. a kind of determining device of domain name mapping rule, which is characterized in that described device includes:
First determining module, for determining the corresponding multiple regions of target domain name and multiple network nodes;
Module is obtained, for obtaining the characteristic information in the multiple region and the multiple network node;
Matching module matches the multiple region with the multiple network node, obtains for being based on the characteristic information To matching result;
Second determining module, for the matching result to be determined as to the resolution rules of the target domain name.
8. device as claimed in claim 7, which is characterized in that the feature of the multiple region and the multiple network node letter Breath includes the network transmission category between each network node in each region in the multiple region and the multiple network node Property value, the access that each network node is supported in the amount of access in each region and the multiple network node in the multiple region At least one of amount.
9. device as claimed in claim 7 or 8, which is characterized in that first determining module includes:
Receiving unit, for receiving configuration-direct, the configuration-direct be used to indicate to the resolution rules of the target domain name into Row configuration, and multiple internet protocol address are carried in the configuration-direct;
First determination unit, for determining the corresponding area of the IP address for each IP address in the multiple IP address Domain and network node;
Second determination unit, it is corresponding for the corresponding region of the IP address and network node to be determined as the target domain name Region and network node.
10. device as claimed in claim 9, which is characterized in that the acquisition module includes:
First acquisition unit, when realizing the matching strategy for obtaining when also carrying matching strategy in the configuration-direct Required characteristic information, the matching strategy are used to indicate the pass of the matching between the multiple region and the multiple network node System;
Correspondingly, the matching module includes:
First matching unit, for being based on the characteristic information, according to the matching strategy to the multiple region and described more A network node is matched, and matching result is obtained.
11. device as claimed in claim 7 or 8, which is characterized in that the acquisition module includes:
Second acquisition unit, for obtaining the corresponding matching strategy of the target domain name, the matching strategy is used to indicate described Matching relationship between multiple regions and the multiple network node;
Third acquiring unit realizes characteristic information required when the matching strategy for obtaining;
Correspondingly, the matching module includes:
Second matching unit, for being based on the characteristic information, according to the matching strategy to the multiple region and described more A network node is matched, and matching result is obtained.
12. device as claimed in claim 7, which is characterized in that described device further include:
Module is issued, for the resolution rules of the target domain name to be issued in each domain name resolution server, so that described What the client that each domain name resolution server receives any region in the multiple region was sent is directed to the aiming field When the access request of name, the resolution rules based on the target domain name return the region the IP of matched network node Location.
13. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or described Instruction set is loaded by processor and is executed the determination method to realize the domain name mapping rule as described in claim 1-6 is any.
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 true CN109104506A (en) 2018-12-28
CN109104506B 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)

Cited By (2)

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

Citations (12)

* 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
CN101902442A (en) * 2009-05-25 2010-12-01 中国科学院计算机网络信息中心 Method, system and position information server for acquiring IP geographic position information
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
CN103973837A (en) * 2014-05-27 2014-08-06 北京瑞汛世纪科技有限公司 Method and device for determining physical location information
US20140304412A1 (en) * 2013-04-06 2014-10-09 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
CN104767839A (en) * 2015-03-25 2015-07-08 五八有限公司 IP positioning method and device
US20150215388A1 (en) * 2014-01-27 2015-07-30 Google Inc. Anycast based, wide area distributed mapping and load balancing system
CN104954507A (en) * 2015-06-23 2015-09-30 中国互联网络信息中心 Domain name resolution method and system adopting data optimization
CN105721629A (en) * 2016-03-24 2016-06-29 百度在线网络技术(北京)有限公司 User identifier matching method and device
CN105897822A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Content distribution network CDN node selection method and apparatus

Patent Citations (12)

* 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
CN101902442A (en) * 2009-05-25 2010-12-01 中国科学院计算机网络信息中心 Method, system and position information server for acquiring IP geographic position information
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
US20140304412A1 (en) * 2013-04-06 2014-10-09 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
US20150215388A1 (en) * 2014-01-27 2015-07-30 Google Inc. Anycast based, wide area distributed mapping and load balancing system
CN103973837A (en) * 2014-05-27 2014-08-06 北京瑞汛世纪科技有限公司 Method and device for determining physical location information
CN104767839A (en) * 2015-03-25 2015-07-08 五八有限公司 IP positioning method and device
CN104954507A (en) * 2015-06-23 2015-09-30 中国互联网络信息中心 Domain name resolution method and system adopting data optimization
CN105897822A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Content distribution network CDN node selection method and apparatus
CN105721629A (en) * 2016-03-24 2016-06-29 百度在线网络技术(北京)有限公司 User identifier matching method and device

Cited By (4)

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

Also Published As

Publication number Publication date
CN109104506B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
JP5965511B2 (en) Determining connections within a community
JP6626211B2 (en) Method and apparatus for processing short link and short link server
CN104333567B (en) It is the web cachings serviced using safety
CN103780715B (en) Domain name mapping implementation method, client and Cloud Server
CN106797410A (en) Domain name analytic method and device
US10194001B1 (en) Automatic discovery of API information
CN106982377B (en) Barrage management method and device
US9544331B2 (en) Method and system for controlling access to shared devices
CN110191428A (en) A kind of data distributing method based on intelligent cloud platform
CN103957282B (en) Terminal user's domain name mapping acceleration system and its method in a kind of domain
CN112954089B (en) Method, device, equipment and storage medium for analyzing data
CN109922030A (en) Global network access control system and method based on Android device
CN109063077A (en) A kind of data access method and device based on elasticity search
CN109327535A (en) A kind of data bank access method, system, middleware equipment and medium
CN105871919A (en) Network application firewall system and realization method thereof
CN108093026A (en) The processing method and processing device of multi-tenant request
CN108845877A (en) The methods, devices and systems of managing internal memory
CN106060097B (en) A kind of management system and management method of information security contest
CN106685951A (en) Network flow filtering system and method based on domain name rules
CN106899621B (en) A kind of scheduling system and method
CN108154024B (en) Data retrieval method and device and electronic equipment
CN114124490A (en) Method and device for releasing new media content, storage medium and electronic equipment
CN104639546A (en) Multi-biometric feature comprehensive authentication method, device and system
CN109104506A (en) The determination method, apparatus and computer readable storage medium of domain name mapping rule
CN106028311A (en) Terminal register method and device

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