CN108933843A - A kind of DNS dispatching method and device - Google Patents
A kind of DNS dispatching method and device Download PDFInfo
- Publication number
- CN108933843A CN108933843A CN201710386026.8A CN201710386026A CN108933843A CN 108933843 A CN108933843 A CN 108933843A CN 201710386026 A CN201710386026 A CN 201710386026A CN 108933843 A CN108933843 A CN 108933843A
- Authority
- CN
- China
- Prior art keywords
- outlet
- dns
- view
- library
- target
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
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 kind of DNS dispatching methods and device, the method to include:Step 1, for the destination client IP of access target domain name, the IP that web server log obtains the IP of network server on the line of client ip access target domain name and obtains the backup network server of client ip access target domain name is inquired;Inquiry DNS scheduling configuration file obtains on the line view corresponding to the IP of network server as the corresponding view of the destination client IP;The library IP is exported according to the DNS that view obtains the destination client IP;Step 2, the outlet IP for the LDNS that the destination client IP in the corresponding each view of the destination client IP is used is determined;Step 3, using the intersection of the outlet IP of the LDNS used of the destination client IP in each view as the outlet IP list of the destination client IP determined the LDNS used.The present invention can accurately determine the mapping relations of client ip and the outlet LDNS IP, improve the scheduling accuracy of LDNS, improve the service quality of whole system.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of determining client ips and home domain name resolution system
(Local Domain Name System, LDNS) exports the method and device of the mapping relations of IP.
Background technique
With reference to Fig. 1, the content distributing network based on domain name analysis system (Domain Name System, DNS) scheduling
(Content Delivery Network, CDN) access process is as follows:
1, Beijing user client (IP IP_A) requests access to domain name www.a.com, and the resolver of client asks this
It asks and is converted to analysis request, initiate analysis request, the corresponding IP of request domain name www.a.com to the LDNS that IP is IP_B.
2, LDNS requests the corresponding IP of domain name www.a.com to the authoritative server of a.com.
3, the corresponding IP of authoritative server nslookup www.a.com of a.com feeds back www.a.com CNAME
The parsing response of www.a.cdn.com, by the content feed of CNAME to LDNS.
4, LDNS carries the outlet LDNS IP (i.e. IP_C), requests domain name to CDN manufacturer dispatching platform (IP IP_D)
The corresponding IP of www.a.cdn.com.
5, CDN manufacturer dispatching platform is matched according to request source IP (IP_C) and request target domain name www.a.cdn.com
System mapping table provides the mapping table of the IP list including network server:
view bj{IP_C www.a.cdn.com IP_E}
view sh{IP_C www.a.cdn.com 9.9.9.9}
6, the corresponding IP, that is, IP_E of domain name is fed back to Beijing user client by LDNS.
7, Beijing user client carries IP_A, is to the web server requests domain name that IP is IP_E
The content of www.a.com.
8, the network server that IP is IP_E returns to web page contents and gives Beijing user, and process terminates.
It is had the following problems in existing procedure:
1, CDN dispatching platform carries out intelligent scheduling by receiving IP_C and target domain name, rather than practical client ip _ A,
Once the network area of IP_A and IP_C has differences, it will lead to scheduling inaccuracy, influence service quality.
2, the request source IP of client access network server is client itself IP (i.e. IP_A), at this time network service
Device can only record the service quality of client ip and its access, and actually determine IP_A out of which network server acquisition
Hold, and is that dispatching platform is determined according to the outlet LDNS IP (i.e. IP_C), it at this time can not be by the service quality on network server
Intelligent scheduling ocular connection with dispatching platform carrys out very burden to tuning work belt to together.
3, by exporting IP_C based on LDNS, the adjustment of progress is difficult to correspond to the access to actual user dispatching platform
It influences, dispatching effect is difficult to assess.
4, the relationship of IP_A and IP_B is fixed against operator's distribution and user configuration, and the relational dependence of IP_B and IP_C are in fortune
The maintenance for seeking quotient, designs multiple links, is difficult simply that the relationship combing of IP_A and IP_C is clear.
5, if using user oriented help system, verification request is submitted by user, client is obtained by help system
End IP, LDNS IP, LDNS export the corresponding relationship of IP and determine triadic relation, and such scheme mentions report dependent on client, such as
Fruit does not have the cooperation of client user, can not carry out information collection work.
6, it using the mode of HTTPDNS, is directly scheduled by http protocol, the visitor of the available user of dispatching platform
Family end IP, avoids the influence of LDNS link.Such mode is only applicable to big text because more than once HTTPDNS is requested
Part business and making entirely dispatches duration growth.
So needing a kind of DNS dispatching method of the relationship of outlet IP for considering destination client IP and LDNS.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of DNS dispatching method and devices.
The present invention provides a kind of DNS dispatching methods, including:
Step 1, it for the destination client IP of access target domain name, inquires web server log and obtains client ip visit
It asks the IP of network server on the line of the target domain name and obtains the backup network clothes that client ip accesses the target domain name
The IP of business device;Inquiry DNS scheduling configuration file obtains on the line view corresponding to the IP of network server as the mesh
Mark the corresponding view of client ip;The library IP is exported according to the DNS that the view obtains the destination client IP;
Step 2, determine the LDNS's that the destination client IP in the corresponding each view of the destination client IP is used
Export IP;
Step 3, using the intersection of the outlet IP of the LDNS used of the destination client IP in each view as determining
The outlet IP list for the LDNS that destination client IP is used.
The above method also has the characteristics that:
Wherein, step 2 includes:
Step 201, step 202 is executed using the corresponding view of destination client IP as target view,
Step 202, the IP in the outlet the DNS library IP in target view is divided at least one grouping, increases newly and is grouped
The alternate views of the identical quantity of number include the IP of a grouping and a backup network server in each alternate views, will
Alternate views are set into DNS scheduling configuration file and load, and pass through the network in alternate views in inquiry web server log
The request whether server ip received the destination client IP access target domain name determines the outlet the DNS IP in alternate views
In the outlet IP of LDNS that whether uses comprising destination client IP;
Step 203, the spare view for not including the outlet IP for the LDNS that destination client IP is used in the outlet DNS IP is deleted
Figure, the outlet for choosing the LDNS used in the outlet DNS IP comprising destination client IP IP's and are exported including more than one DNS
The backup view of IP deletes the outlet IP's in the outlet DNS IP comprising the destination client IP LDNS used as target view
And the backup view for only including the outlet DNS IP, is determined as what destination client IP was used for the IP in this backup view
The outlet IP of LDNS;Step 202 is executed,
Circulation executes step 202 and step 203 until finding the target in the outlet all DNS library IP in each view
The outlet IP for the LDNS that client ip uses.
The above method also has the characteristics that:
The IP in the outlet the DNS library IP in target view, which is divided at least one grouping, in step 202 includes:By target
The IP in the outlet the DNS library IP in view is divided into two groups, first group including one in the outlet the DNS library IP in target view
A IP includes other IP in the outlet the DNS library in target view in second group.
The above method also has the characteristics that:
The IP in the outlet the DNS library IP in target view, which is divided at least one grouping, in step 202 includes:Judge mesh
When the IP sum in the outlet the DNS library IP in mark view is the integral multiple of N, by the IP in the outlet the DNS library IP in target view
It is averagely divided into N group, N is the integer greater than 1, judges that the IP sum in the outlet the DNS library IP in target view is not the integer of N
Times when, the IP in the outlet the DNS library IP in target view is divided into N group and keeps the variance of the IP quantity in N group minimum.
The above method also has the characteristics that:
Step 2 is identified including packet mode, and the initial value of packet mode mark is the value for indicating respectively mode, in step
After rapid 202 execute M times, M is the integer greater than 1, and the value that the packet mode identifies is provided for indicate independent division side
The value of formula;
It further include the value for judging packet mode in step 202, in the value for judging packet identification for for indicating to divide equally mode
Value when, the IP in the outlet the DNS library IP in target view is divided at least one grouping and includes:Judge in target view
When IP sum in the outlet the DNS library IP is the integral multiple of N, the IP in the outlet the DNS library IP in target view is averagely divided into N
Group, N are integer greater than 1, when the IP sum for judging in the outlet the DNS library IP in target view is not the integral multiple of N, by target
The IP in the outlet the DNS library IP in view is divided into N group and keeps the variance of the IP quantity in N group minimum;Judging packet identification
Value when being the value for indicating independent division mode, the IP in the outlet the DNS library IP in target view is divided at least one
A grouping includes:It includes in target view that IP in the outlet the DNS library IP in target view, which is divided into two groups, first group,
DNS exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
The above method also has the characteristics that:
The step 1 further includes:Determine that LDNS exports IP list;
In the step 202, the IP in the outlet the DNS library IP in target view, which is divided at least one grouping, includes:
It exports IP list according to the LDNS outlet IP for belonging to identical DNS is placed in same grouping.
The present invention also provides a kind of DNS dispatching devices, including:Receiving module, analysis module, web server log mould
Block, DNS scheduler module, computing module;
Receiving module, for receiving the destination client IP for access target domain name and being sent to the analysis module;
Analysis module is also used to inquire web server log module and obtains client for receiving destination client IP
IP accesses the IP of network server on the line of the target domain name and obtains the backup net that client ip accesses the target domain name
The IP of network server;It is also used to inquire DNS scheduler module and obtains DNS scheduling configuration file, configuration file is dispatched according to DNS and is obtained
View corresponding to the IP of network server is as the corresponding view of the destination client IP on the line;By the target visitor
Family end IP and the view are sent to computing module;
The computing module, the DNS for obtaining the destination client IP according to the view export the library IP;Determine institute
State the outlet IP for the LDNS that the destination client IP in the corresponding each view of destination client IP is used;
The computing module is also used to the intersection of the outlet IP of the LDNS used of the destination client IP in each view
Outlet IP list as the destination client IP determined the LDNS used.
Above-mentioned apparatus also has the characteristics that:
The computing module is used to determine the mesh in the corresponding each view of the destination client IP according to following methods
The outlet IP for the LDNS that mark client ip uses:
Step 202 is executed using the corresponding view of destination client IP as target view for each view, step 202,
IP in the outlet the DNS library IP in target view is divided at least one grouping, increases the standby of quantity identical as grouping number newly
Include the IP of a grouping and a backup network server with view, in each alternate views, alternate views are set into DNS
Scheduling configuration file is simultaneously sent to DNS scheduler module, passes through the network service in alternate views in inquiry web server log
The request whether device IP received the destination client IP access target domain name determines in the outlet the DNS IP in alternate views
The outlet IP of the no LDNS used comprising destination client IP;Step 203, it deletes in the outlet DNS IP and does not include destination client
The alternate views of the outlet IP for the LDNS that IP is used choose going out comprising the destination client IP LDNS used in the outlet DNS IP
Mouthful IP's and the backup view including the outlet more than one DNS IP be used as target view, delete in the outlet DNS IP comprising target
The backup view for exporting IP's and only include the outlet DNS IP for the LDNS that client ip uses, will be in this backup view
IP is determined as the outlet IP for the LDNS that destination client IP is used;Execute step 202;Circulation executes step 202 and step 203 is straight
The outlet IP for the LDNS that destination client IP into the outlet all DNS library IP found in each view is used.
Above-mentioned apparatus also has the characteristics that:
The computing module, being also used in step 202 will be in the outlet the DNS library IP in target view using following methods
IP be divided at least one grouping:IP in the outlet the DNS library IP in target view is divided into two groups, includes in first group
DNS in target view exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
Above-mentioned apparatus also has the characteristics that:
The computing module, being also used in step 202 will be in the outlet the DNS library IP in target view using following methods
IP be divided at least one grouping:Judge that the IP sum in the outlet the DNS library IP in target view, will when being the integral multiple of N
The IP in the outlet the DNS library IP in target view is averagely divided into N group, and N is the integer greater than 1, judges the DNS in target view
When IP sum in the outlet library IP is not the integral multiple of N, the IP in the outlet the DNS library IP in target view is divided into N group simultaneously
Keep the variance of the IP quantity in N group minimum.
Above-mentioned apparatus also has the characteristics that:
Step 2 is identified including packet mode, and the initial value of packet mode mark is the value for indicating respectively mode, in step
After rapid 202 execute M times, M is the integer greater than 1, and the value that the packet mode identifies is provided for indicate independent division side
The value of formula;
The computing module is also used to judge in step 202 the value of packet mode, in the value for judging packet identification for use
When indicating to divide equally the value of mode, the IP in the outlet the DNS library IP in target view, which is divided at least one grouping, includes:Sentence
It, will be in the outlet the DNS library IP in target view when the IP sum in the outlet the DNS library IP in disconnected target view is the integral multiple of N
IP be averagely divided into N group, N is the integer greater than 1, judges that the IP sum in the outlet the DNS library IP in target view is not N
When integral multiple, the IP in the outlet the DNS library IP in target view is divided into N group and keeps the variance of the IP quantity in N group minimum;
It, will be in the outlet the DNS library IP in target view when the value for judging packet identification is for indicating the value of independent division mode
IP is divided at least one grouping:IP in the outlet the DNS library IP in target view is divided into two groups, is wrapped in first group
An IP in the outlet the DNS library IP in target view is included, includes other in the outlet the DNS library in target view in second group
IP。
Above-mentioned apparatus also has the characteristics that:
Described device further includes LDNS detection module for determining that LDNS exports IP list;
The computing module is also used to the IP in the outlet the DNS library IP in target view being divided at least one grouping
When, IP list is exported according to the LDNS, the outlet IP for belonging to identical DNS is placed in same grouping.
The present invention can accurately determine the mapping relations of client ip and the outlet LDNS IP, and the scheduling for improving LDNS is accurate
Degree, improves the service quality of whole system.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the CDN access process in the prior art based on DNS scheduling;
Fig. 2 is the flow chart of DNS dispatching method in embodiment;
Fig. 3 is the structure chart of DNS dispatching device in embodiment.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs
Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application can mutual any combination.
After the view for determining the destination client IP of access target domain name in the present invention, increases new view, newly increasing
View in be arranged different destination client IP DNS outlet IP, by the view newly increased be set into DNS scheduling configuration file
And load, determine whether the IP in newly-increased view includes LDNS that destination client IP is used by inquiry web server log
Outlet IP.The IP in the view newly increased is constantly split, is verified by the above method, the institute in each view is finally found
The outlet IP for the LDNS for thering is the destination client IP in the outlet the DNS library IP to use.
Fig. 2 is the flow chart of DNS dispatching method in embodiment, and the method includes:
Step 1, it for the destination client IP of access target domain name, inquires web server log and obtains client ip visit
It asks the IP of network server on the line of the target domain name and obtains the backup network clothes that client ip accesses the target domain name
The IP of business device;Inquiry DNS scheduling configuration file obtains on the line view corresponding to the IP of network server as the mesh
Mark the corresponding view of client ip;The library IP is exported according to the DNS that the view obtains the destination client IP;
Step 2, determine the LDNS's that the destination client IP in the corresponding each view of the destination client IP is used
Export IP;
Step 3, using the intersection of the outlet IP of the LDNS used of the destination client IP in each view as determining
The outlet IP list for the LDNS that destination client IP is used;
Wherein, step 2 includes:
Step 201, step 202 is executed using the corresponding view of destination client IP as target view,
Step 202, the IP in the outlet the DNS library IP in target view is divided at least one grouping, increases newly and is grouped
The alternate views of the identical quantity of number include the IP of a grouping and a backup network server in each alternate views, will
Alternate views are set into DNS scheduling configuration file and load, and pass through the network in alternate views in inquiry web server log
The request whether server ip received the destination client IP access target domain name determines the outlet the DNS IP in alternate views
In the outlet IP of LDNS that whether uses comprising destination client IP;
Step 203, the spare view for not including the outlet IP for the LDNS that destination client IP is used in the outlet DNS IP is deleted
Figure, the alternate views for choosing the outlet IP comprising the destination client IP LDNS used in the outlet DNS IP are held as target view
Row step 202;
Circulation executes step 202 and step 203 until finding the target in the outlet all DNS library IP in each view
The outlet IP for the LDNS that client ip uses.
When realizing in this method, it can realize one of in the following ways:
Mode one:Single IP judgment mode
The IP in the outlet the DNS library IP in target view, which is divided at least one grouping, in step 202 includes:By target
The IP in the outlet the DNS library IP in view is divided into two groups, first group including one in the outlet the DNS library IP in target view
A IP includes other IP in the outlet the DNS library in target view in second group.
Mode two:IP of packet judgment mode
The IP in the outlet the DNS library IP in target view, which is divided at least one grouping, in step 202 includes:Judge mesh
When the IP sum in the outlet the DNS library IP in mark view is the integral multiple of N, by the IP in the outlet the DNS library IP in target view
It is averagely divided into N group, N is the integer greater than 1, judges that the IP sum in the outlet the DNS library IP in target view is not the integer of N
Times when, the IP in the outlet the DNS library IP in target view is divided into N group and keeps the variance of the IP quantity in N group minimum.
Mode three:Single IP judgement is carried out again after first carrying out IP of packet judgement
Step 2 is identified including packet mode, and the initial value of packet mode mark is the value for indicating respectively mode, in step
After rapid 202 execute M times, M is the integer greater than 1, and the value that the packet mode identifies is provided for indicate independent division side
The value of formula;
It further include the value for judging packet mode in step 202, in the value for judging packet identification for for indicating to divide equally mode
Value when, the IP in the outlet the DNS library IP in target view is divided at least one grouping and includes:Judge in target view
When IP sum in the outlet the DNS library IP is the integral multiple of N, the IP in the outlet the DNS library IP in target view is averagely divided into N
Group, N are integer greater than 1, when the IP sum for judging in the outlet the DNS library IP in target view is not the integral multiple of N, by target
The IP in the outlet the DNS library IP in view is divided into N group and keeps the variance of the IP quantity in N group minimum;Judging packet identification
Value when being the value for indicating independent division mode, the IP in the outlet the DNS library IP in target view is divided at least one
A grouping includes:It includes in target view that IP in the outlet the DNS library IP in target view, which is divided into two groups, first group,
DNS exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
Aforesaid way one is suitable for view the case where IP negligible amounts, in the view in the biggish situation of IP quantity, side
The mode of formula two and mode three it is more efficient.
The step 1 further includes:Determine that LDNS exports IP list.In the step 202, the DNS in target view is gone out
IP in the library mouth IP is divided at least one grouping and includes:The outlet that IP list will belong to identical DNS is exported according to the LDNS
IP is placed in same grouping.
Fig. 2 is DNS dispatching device, this device includes:Receiving module, analysis module, web server log module, DNS
Scheduler module and computing module.
Receiving module is used to receive the destination client IP for access target domain name and is sent to the analysis module;
Analysis module is also used to inquire web server log module and obtains client ip for receiving destination client IP
It accesses the IP of network server on the line of the target domain name and obtains the backup network that client ip accesses the target domain name
The IP of server;It is also used to inquire DNS scheduler module and obtains DNS scheduling configuration file, configuration file is dispatched according to DNS and obtains institute
View corresponding to the IP of network server is stated on line as the corresponding view of the destination client IP;By the target customer
End IP and the view are sent to computing module;
The DNS that computing module is used to obtain the destination client IP according to the view exports the library IP;Determine the mesh
The outlet IP for the LDNS that destination client IP in the corresponding each view of mark client ip is used;
Computing module be also used to using the LDNS used of the destination client IP in each view outlet IP intersection as
The outlet IP list for the LDNS that the destination client IP determined is used.For each view by the corresponding view of destination client IP
Figure executes step 202 as target view, step 202, the IP in the outlet the DNS library IP in target view is divided at least one
A grouping increases the alternate views of quantity identical as grouping number newly, includes a grouping and a backup in each alternate views
Alternate views are set into DNS scheduling configuration file and are sent to DNS scheduler module, by inquiring net by the IP of network server
Whether the network server IP in network server log in alternate views received the destination client IP access target domain name
Request determine the outlet IP of the LDNS whether used comprising destination client IP in the outlet the DNS IP in alternate views;Step
203, the alternate views for not including the outlet IP for the LDNS that destination client IP is used in the outlet DNS IP are deleted, the outlet DNS is chosen
The outlet of the LDNS used in IP comprising destination client IP IP's and the backup view including the outlet more than one DNS IP make
For target view, deletes in the outlet DNS IP the outlet comprising the destination client IP LDNS used and IP's and only include a DNS
IP in this backup view, is determined as the outlet IP for the LDNS that destination client IP is used by the backup view for exporting IP;It executes
Step 202;Circulation executes step 202 and step 203 until finding the target in the outlet all DNS library IP in each view
The outlet IP for the LDNS that client ip uses.
For each mode in method:
Computing module is also used to that the DNS in target view is exported to using following methods the IP in the library IP in step 202
It is divided at least one grouping:It includes target in two groups, first group that IP in the outlet the DNS library IP in target view, which is divided into,
DNS in view exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
Computing module is also used to that the DNS in target view is exported to using following methods the IP in the library IP in step 202
It is divided at least one grouping:The IP sum in the outlet the DNS library IP in target view is judged when being the integral multiple of N, by target
The IP in the outlet the DNS library IP in view is averagely divided into N group, and N is the integer greater than 1, judges the outlet DNS in target view
When IP sum in the library IP is not the integral multiple of N, the IP in the outlet the DNS library IP in target view is divided into N group and makes N group
In IP quantity variance it is minimum.
Step 2 is identified including packet mode, and the initial value of packet mode mark is the value for indicating respectively mode, in step
After rapid 202 execute M times, M is the integer greater than 1, and the value that the packet mode identifies is provided for indicate independent division side
The value of formula.Computing module is also used to judge in step 202 the value of packet mode, in the value for judging packet identification for for indicating
Respectively when the value of mode, the IP in the outlet the DNS library IP in target view, which is divided at least one grouping, includes:Judge target
When the IP sum in the outlet the DNS library IP in view is the integral multiple of N, the IP in the outlet the DNS library IP in target view is put down
It is divided into N group, N is the integer greater than 1, judges that the IP sum in the outlet the DNS library IP in target view is not the integral multiple of N
When, the IP in the outlet the DNS library IP in target view is divided into N group and keeps the variance of the IP quantity in N group minimum;Judging
When the value of packet identification is the value for indicating independent division mode, the IP in the outlet the DNS library IP in target view is divided
Include at least one grouping:It includes target in two groups, first group that IP in the outlet the DNS library IP in target view, which is divided into,
DNS in view exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
This device further includes LDNS detection module for determining that LDNS exports IP list;Computing module is also used to regard target
When the IP in the outlet the DNS library IP in figure is divided at least one grouping, it will be belonged to according to LDNS outlet IP list identical
The outlet IP of DNS is placed in same grouping.
Below by multiple specific embodiments, the present invention will be described in detail.
Specific embodiment one
The client ip for accessing www.a.com includes 1.1.1.1 and 1.1.1.2.
Processing for 1.1.1.1 includes:
Inquiry knows that network server ip is on the line of 1.1.1.1 access www.a.com in the log of network server
2.2.2.2.And also know 1.1.1.1 access www.a.com backup network server ip include 2.2.2.3,2.2.2.4,
2.2.2.5、2.2.2.6、2.2.2.7、2.2.2.8。
Inquiry DNS scheduling configuration file knows that network server ip is view view_bj corresponding to 2.2.2.2 on line,
Using this view view_bj as the corresponding view of 1.1.1.1.
View view_bj is:View_bj { DNS exports the library IP, www.a.com, 2.2.2.2 }
Wherein, the outlet the DNS library IP includes:
3.3.3.1、3.3.3.2、3.3.3.3、3.3.3.4、3.3.3.5、3.3.3.6、3.3.3.7、3.3.3.8。
Increase two views view_bj_new1, view_bj_new2 newly.To distribute former view in first newly-increased view
An IP in the middle outlet the DNS library IP is to distribute DNS in former view in second newly-increased view to export other IP in the library IP.It is new
The different backup network server ip of the view configuration of increasing.
View_bj_new1 { 3.3.3.1, www.a.com, 2.2.2.3 }
View_bj_new2 3.3.3.2,3.3.3.3,3.3.3.4,3.3.3.5,3.3.3.6,3.3.3.7,3.3.3.8,
www.a.com,2.2.2.4}
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.3 and 2.2.2.4 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.3 did not received 1.1.1.1
The request of www.a.com is accessed, then does not include going out for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new1
Mouth IP, deletes view_bj_new1.Judging result be 2.2.2.4 received 1.1.1.1 access www.a.com request, then this
It include the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of view_bj_new2, using view_bj_new2 as target
View continues with.
For view_bj_new2, two views, view_bj_new2_1, view_bj_new2_2 are created.It is first
DNS in former view is distributed in newly-increased view and exports an IP in the library IP, is that DNS in former view is distributed in second newly-increased view
Export other IP in the library IP.
View_bj_new2_1 { 3.3.3.2, www.a.com, 2.2.2.5 }
View_bj_new2_2 3.3.3.3,3.3.3.4,3.3.3.5,3.3.3.6,3.3.3.7,3.3.3.8,
www.a.com,2.2.2.6}
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.5 and 2.2.2.6 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.5 received 1.1.1.1 visit
It asks the request of www.a.com, then includes the outlet for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_1
IP and an IP is only included, determines that 3.3.3.2 is the outlet IP for the LDNS that 1.1.1.1 is used.Judging result is 2.2.2.6 reception
The request of 1.1.1.1 access www.a.com is crossed, then includes what 1.1.1.1 was used in the outlet the DNS IP of this view_bj_new2_2
The outlet IP of LDNS, continues with view_bj_new2 as target view.
For view_bj_new2_2, two views are created, are executed according to the above method, until finding view_bj's
The outlet IP for the LDNS that client ip 1.1.1.1 in all outlets DNS library IP is used, such as finally determining DNS export IP
The outlet IP for the LDNS that destination client IP in library is used includes:3.3.3.2,3.3.3.4,3.3.3.8.
For handling with the processing for 1.1.1.1 similarly for 1.1.1.2, by what is obtained in the processing for being directed to 1.1.1.1
The intersection of the outlet IP for the LDNS that the outlet IP and destination client IP for the LDNS that destination client IP is used are used is as final
Determining IP collection.
Specific embodiment two
The client ip for accessing www.a.com includes 1.1.1.1 and 1.1.1.2.
Processing for 1.1.1.1 includes:
Inquiry knows that network server ip is on the line of 1.1.1.1 access www.a.com in the log of network server
2.2.2.2.And also know 1.1.1.1 access www.a.com backup network server ip include 2.2.2.3,2.2.2.4,
2.2.2.5、2.2.2.6、2.2.2.7、2.2.2.8。
Inquiry DNS scheduling configuration file knows that network server ip is view view_bj corresponding to 2.2.2.2 on line,
Using this view view_bj as the corresponding view of 1.1.1.1.
View view_bj is:View_bj { DNS exports the library IP, www.a.com, 2.2.2.2 }
Wherein, the outlet the DNS library IP includes:
3.3.3.1、3.3.3.2、3.3.3.3、3.3.3.4、3.3.3.5、3.3.3.6、3.3.3.7、3.3.3.8。
Increase two views view_bj_new1, view_bj_new2 newly.IP in the outlet the DNS library IP of former view is divided into
Two groups, keep two groups of IP quantitative difference minimum.For the different backup network server ip of newly-increased view configuration.
View_bj_new1 { 3.3.3.1,3.3.3.2,3.3.3.3,3.3.3.4, www.a.com, 2.2.2.3 }
View_bj_new2 { 3.3.3.5,3.3.3.6,3.3.3.7,3.3.3.8, www.a.com, 2.2.2.4 }
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.3 and 2.2.2.4 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.3 did not received 1.1.1.1
The request of www.a.com is accessed, then does not include going out for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new1
Mouth IP, deletes view_bj_new1.Judging result be 2.2.2.4 received 1.1.1.1 access www.a.com request, then this
It include the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of view_bj_new2, using view_bj_new2 as target
View continues with.
For view_bj_new2, two views, view_bj_new2_1, view_bj_new2_2 are created.By former view
The outlet the DNS library IP in IP be divided into two groups, keep two groups of IP quantitative difference minimum.For different spare of newly-increased view configuration
Network server IP.
View_bj_new2_1 { 3.3.3.5,3.3.3.6, www.a.com, 2.2.2.5 }
View_bj_new2_2 { 3.3.3.7,3.3.3.8, www.a.com, 2.2.2.6 }
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.5 and 2.2.2.6 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.5 did not received 1.1.1.1
The request of www.a.com is accessed, then does not include the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_1
IP is exported, view_bj_new2_1 is deleted.Judging result is the request that 2.2.2.6 received that 1.1.1.1 accessed www.a.com,
It then include the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_2, by view_bj_new2_2
It is continued with as target view.
For view_bj_new2_2, two views, view_bj_new2_2_1, view_bj_new2_2_2 are created.It will
IP in the outlet the DNS library IP of former view is divided into two groups, keeps two groups of IP quantitative difference minimum.It is different for newly-increased view configuration
Backup network server ip.
View_bj_new2_2_1 { 3.3.3.7, www.a.com, 2.2.2.7 }
View_bj_new2_2_2 { 3.3.3.8, www.a.com, 2.2.2.8 }
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.7 and 2.2.2.8 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.7 did not received 1.1.1.1
The request of www.a.com is accessed, then does not include the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_2_1
Outlet IP, delete view_bj_new2_2_1.Judging result is that 2.2.2.8 received asking for 1.1.1.1 access www.a.com
It asks, then includes in the outlet IP and this view for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_2_2
An IP is only included, this IP 3.3.3.8 is determined as to the outlet IP for the LDNS that destination client IP is used.Finally determining DNS
The outlet IP of LDNS that destination client IP in the outlet library IP is used includes:3.3.3.8.
It is executed according to the above method, until finding the client in the outlet all DNS library IP of view_bj
What the destination client IP in the outlet IP for the LDNS that IP1.1.1.1 is used, such as the finally determining outlet the DNS library IP was used
The outlet IP of LDNS includes:3.3.3.2,3.3.3.4,3.3.3.8.
For handling with the processing for 1.1.1.1 similarly for 1.1.1.2, by what is obtained in the processing for being directed to 1.1.1.1
The intersection of the outlet IP for the LDNS that the outlet IP and destination client IP for the LDNS that destination client IP is used are used is as final
Determining IP collection.
Specific embodiment three
The client ip for accessing www.a.com includes 1.1.1.1 and 1.1.1.2.
Processing for 1.1.1.1 includes:
Inquiry knows that network server ip is on the line of 1.1.1.1 access www.a.com in the log of network server
2.2.2.2.And also know 1.1.1.1 access www.a.com backup network server ip include 2.2.2.3,2.2.2.4,
2.2.2.5、2.2.2.6、2.2.2.7、2.2.2.8。
Inquiry DNS scheduling configuration file knows that network server ip is view view_bj corresponding to 2.2.2.2 on line,
Using this view view_bj as the corresponding view of 1.1.1.1.
View view_bj is:View_bj { DNS exports the library IP, www.a.com, 2.2.2.2 }
Wherein, the outlet the DNS library IP includes:
3.3.3.1,3.3.3.2,3.3.3.3,3.3.3.4,3.3.3.5,3.3.3.6,3.3.3.7,3.3.3.8,
3.3.3.9、3.3.3.10、3.3.3.11、3.3.3.12、3.3.3.13、3.3.3.14、3.3.3.14、
3.3.3.15。
Increase two views view_bj_new1, view_bj_new2 newly.IP in the outlet the DNS library IP of former view is divided into
Two groups, keep two groups of IP quantitative difference minimum.For the different backup network server ip of newly-increased view configuration.
View_bj_new1 3.3.3.1,3.3.3.2,3.3.3.3,3.3.3.4,3.3.3.5,3.3.3.6,3.3.3.7,
3.3.3.8 www.a.com, 2.2.2.3 }
view_bj_new2{3.3.3.9、3.3.3.10、3.3.3.11、3.3.3.12、3.3.3.13、3.3.3.14、
3.3.3.14,3.3.3.15, www.a.com, 2.2.2.4 }
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.3 and 2.2.2.4 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.3 received 1.1.1.1 visit
It asks the request of www.a.com, then includes the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new1,
It is continued with view_bj_new1 as target view.Judging result is that 2.2.2.4 did not received 1.1.1.1 access
The request of www.a.com does not then include the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2,
Delete view_bj_new2.
For view_bj_new1, two views, view_bj_new1_1, view_bj_new1_2 are created.By former view
The outlet the DNS library IP in IP be divided into two groups, keep two groups of IP quantitative difference minimum.For different spare of newly-increased view configuration
Network server IP.
View_bj_new1_1 { 3.3.3.1,3.3.3.2,3.3.3.3,3.3.3.4, www.a.com, 2.2.2.5 }
View_bj_new1_2 { 3.3.3.5,3.3.3.6,3.3.3.7,3.3.3.8, www.a.com, 2.2.2.6 }
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.5 and 2.2.2.6 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.5 did not received 1.1.1.1
The request of www.a.com is accessed, then does not include the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_1
IP is exported, view_bj_new2_1 is deleted.Judging result is the request that 2.2.2.6 received that 1.1.1.1 accessed www.a.com,
It then include the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new2_2, by view_bj_new2_2
It is continued with as target view.
Judgement had executed 2 times and has divided equally logical process mode, then independent division mode is used in subsequent step.
For view_bj_new1_2, two views, view_bj_new1_2_1, view_bj_new1_2_2 are created.For
An IP in the library IP in a former view is arranged in first view, is other in the library IP in second former view of view setting
IP。
View_bj_new1_2_1 { 3.3.3.5, www.a.com, 2.2.2.7 }
View_bj_new1_2_2 { 3.3.3.6,3.3.3.7,3.3.3.8, www.a.com, 2.2.2.8 }
Two new views of formation are set into DNS scheduling configuration file and are loaded.By inquiring network server day
The request that whether 2.2.2.7 and 2.2.2.8 received 1.1.1.1 access www.a.com in will determines in this two new views
DNS outlet IP whether include the LDNS that 1.1.1.1 is used outlet IP.Judging result is that 2.2.2.7 did not received 1.1.1.1
The request of www.a.com is accessed, then does not include the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new1_2_1
Outlet IP, delete view_bj_new1_2_1.Judging result is that 2.2.2.8 received asking for 1.1.1.1 access www.a.com
It asks, then includes the outlet IP for the LDNS that 1.1.1.1 is used in the outlet the DNS IP of this view_bj_new1_2_2, this view is made
It is continued with for target view.It is executed according to the above method, until finding the visitor in the outlet all DNS library IP of view_bj
Destination client IP in the outlet IP for the LDNS that family end IP1.1.1.1 is used, such as the finally determining outlet the DNS library IP is used
The outlet IP of LDNS include:3.3.3.7,3.3.3.8.
For handling with the processing for 1.1.1.1 similarly for 1.1.1.2, by what is obtained in the processing for being directed to 1.1.1.1
The intersection of the outlet IP for the LDNS that the outlet IP and destination client IP for the LDNS that destination client IP is used are used is as final
Determining IP collection.
The present invention can accurately determine the mapping relations of client ip and the outlet LDNS IP, and the scheduling for improving LDNS is accurate
Degree, improves the service quality of whole system.
Descriptions above can combine implementation individually or in various ways, and these variants all exist
Within protection scope of the present invention.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, one or more integrated circuits also can be used to realize, accordingly in all or part of the steps of above-described embodiment
Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module
Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that including the article of a series of elements or equipment not only includes those elements, but also including not having
There is the other element being expressly recited, or further includes for this article or the intrinsic element of equipment.Do not limiting more
In the case where system, the element that is limited by sentence " including ... ", it is not excluded that in the article or equipment for including the element
There is also other identical elements.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, reference only to preferred embodiment to this hair
It is bright to be described in detail.Those skilled in the art should understand that can modify to technical solution of the present invention
Or equivalent replacement should all cover in claim model of the invention without departing from the spirit and scope of the technical solution of the present invention
In enclosing.
Claims (12)
1. a kind of DNS dispatching method, which is characterized in that including:
Step 1, it for the destination client IP of access target domain name, inquires web server log and obtains client ip access institute
It states the IP of network server on the line of target domain name and obtains the backup network server that client ip accesses the target domain name
IP;It is objective as the target that inquiry DNS scheduling configuration file obtains view corresponding to the IP of network server on the line
The corresponding view of family end IP;The library IP is exported according to the DNS that the view obtains the destination client IP;
Step 2, the outlet for the LDNS that the destination client IP in the corresponding each view of the destination client IP is used is determined
IP;
Step 3, using the intersection of the outlet IP of the LDNS used of the destination client IP in each view as the target determined
The outlet IP list for the LDNS that client ip uses.
2. DNS dispatching method as described in claim 1, which is characterized in that
Wherein, step 2 includes:
Step 201, step 202 is executed using the corresponding view of destination client IP as target view,
Step 202, the IP in the outlet the DNS library IP in target view is divided at least one grouping, increased newly and grouping number
The alternate views of identical quantity include the IP of a grouping and a backup network server in each alternate views, will be spare
View is set into DNS scheduling configuration file and loads, and passes through the network service in alternate views in inquiry web server log
The request whether device IP received the destination client IP access target domain name determines in the outlet the DNS IP in alternate views
The outlet IP of the no LDNS used comprising destination client IP;
Step 203, the alternate views for not including the outlet IP for the LDNS that destination client IP is used in the outlet DNS IP, choosing are deleted
Take the LDNS used in the outlet DNS IP comprising destination client IP outlet IP's and including the outlet more than one DNS IP's
Backup view as target view, delete in the outlet DNS IP the outlet comprising the destination client IP LDNS used IP's and
The backup view for only including the outlet DNS IP, is determined as the LDNS's that destination client IP is used for the IP in this backup view
Export IP;Step 202 is executed,
Circulation executes step 202 and step 203 until finding the target customer in the outlet all DNS library IP in each view
The outlet IP for the LDNS that end IP is used.
3. DNS dispatching method as claimed in claim 2, which is characterized in that
The IP in the outlet the DNS library IP in target view, which is divided at least one grouping, in step 202 includes:By target view
In DNS outlet the library IP in IP be divided into two groups, first group include target view in DNS outlet the library IP in one
IP includes other IP in the outlet the DNS library in target view in second group.
4. DNS dispatching method as claimed in claim 2, which is characterized in that
The IP in the outlet the DNS library IP in target view, which is divided at least one grouping, in step 202 includes:Judge that target regards
When the IP sum in the outlet the DNS library IP in figure is the integral multiple of N, the IP in the outlet the DNS library IP in target view is averaged
It is divided into N group, N is the integer greater than 1, judges that the IP sum in the outlet the DNS library IP in target view is not the integral multiple of N
When, the IP in the outlet the DNS library IP in target view is divided into N group and keeps the variance of the IP quantity in N group minimum.
5. DNS dispatching method as claimed in claim 2, which is characterized in that
Step 2 is identified including packet mode, and the initial value of packet mode mark is the value for indicating respectively mode, in step
After 202 execute M times, M is the integer greater than 1, and the value that the packet mode identifies is provided for indicate independent division mode
Value;
It further include the value for judging packet mode in step 202, in the value for judging packet identification for for indicating the value of respectively mode
When, the IP in the outlet the DNS library IP in target view, which is divided at least one grouping, includes:Judge the DNS in target view
When IP sum in the outlet library IP is the integral multiple of N, the IP in the outlet the DNS library IP in target view is averagely divided into N group,
N is integer greater than 1, and when the IP sum for judging in the outlet the DNS library IP in target view is not the integral multiple of N, target is regarded
The IP in the outlet the DNS library IP in figure is divided into N group and keeps the variance of the IP quantity in N group minimum;Judging packet identification
When value is the value for indicating independent division mode, the IP in the outlet the DNS library IP in target view is divided at least one
Grouping includes:It includes in target view that IP in the outlet the DNS library IP in target view, which is divided into two groups, first group,
DNS exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
6. DNS dispatching method as described in claim 1, which is characterized in that
The step 1 further includes:Determine that LDNS exports IP list;
In the step 202, the IP in the outlet the DNS library IP in target view, which is divided at least one grouping, includes:According to
The outlet IP for belonging to identical DNS is placed in same grouping by the LDNS outlet IP list.
7. a kind of DNS dispatching device, which is characterized in that including:Receiving module, analysis module, web server log module,
DNS scheduler module, computing module;
Receiving module, for receiving the destination client IP for access target domain name and being sent to the analysis module;
Analysis module is also used to inquire web server log module and obtains client ip visit for receiving destination client IP
It asks the IP of network server on the line of the target domain name and obtains the backup network clothes that client ip accesses the target domain name
The IP of business device;It is also used to inquire DNS scheduler module and obtains DNS scheduling configuration file, according to DNS scheduling configuration file acquisition
View corresponding to the IP of network server is as the corresponding view of the destination client IP on line;By the destination client
IP and the view are sent to computing module;
The computing module, the DNS for obtaining the destination client IP according to the view export the library IP;Determine the mesh
The outlet IP for the LDNS that destination client IP in the corresponding each view of mark client ip is used;
The computing module, be also used to using the LDNS used of the destination client IP in each view outlet IP intersection as
The outlet IP list for the LDNS that the destination client IP determined is used.
8. DNS dispatching device as claimed in claim 7, which is characterized in that
The computing module is used to determine the visitor of the target in the corresponding each view of the destination client IP according to following methods
The outlet IP for the LDNS that family end IP is used:
Step 202 is executed using the corresponding view of destination client IP as target view for each view, step 202, by mesh
The IP in the outlet the DNS library IP in mark view is divided at least one grouping, increases the spare view of quantity identical as grouping number newly
Scheme, include the IP of a grouping and a backup network server in each alternate views, alternate views are set into DNS scheduling
Configuration file is simultaneously sent to DNS scheduler module, passes through the network server IP in alternate views in inquiry web server log
Whether received and whether was wrapped in the outlet the DNS IP in the determining alternate views of request of the destination client IP access target domain name
The outlet IP for the LDNS that IP containing destination client is used;Step 203, deleting makes in the outlet DNS IP not comprising destination client IP
The alternate views of the outlet IP of LDNS choose the outlet IP comprising the destination client IP LDNS used in the outlet DNS IP
And backup view including the outlet more than one DNS IP be used as target view, delete in the outlet DNS IP comprising target customer
The backup view for exporting IP's and only include the outlet DNS IP for the LDNS that end IP is used, the IP in this backup view is true
It is set to the outlet IP for the LDNS that destination client IP is used;Execute step 202;Circulation executes step 202 and step 203 until looking into
Find the outlet IP for the LDNS that the destination client IP in the outlet all DNS library IP in each view is used.
9. DNS dispatching device as claimed in claim 8, which is characterized in that
The computing module is also used to that the DNS in target view is exported to using following methods the IP in the library IP in step 202
It is divided at least one grouping:It includes target in two groups, first group that IP in the outlet the DNS library IP in target view, which is divided into,
DNS in view exports an IP in the library IP, includes other IP in the outlet the DNS library in target view in second group.
10. DNS dispatching device as claimed in claim 8, which is characterized in that
The computing module is also used to that the DNS in target view is exported to using following methods the IP in the library IP in step 202
It is divided at least one grouping:The IP sum in the outlet the DNS library IP in target view is judged when being the integral multiple of N, by target
The IP in the outlet the DNS library IP in view is averagely divided into N group, and N is the integer greater than 1, judges the outlet DNS in target view
When IP sum in the library IP is not the integral multiple of N, the IP in the outlet the DNS library IP in target view is divided into N group and makes N group
In IP quantity variance it is minimum.
11. DNS dispatching method as claimed in claim 8, which is characterized in that
Step 2 is identified including packet mode, and the initial value of packet mode mark is the value for indicating respectively mode, in step
After 202 execute M times, M is the integer greater than 1, and the value that the packet mode identifies is provided for indicate independent division mode
Value;
The computing module is also used to judge in step 202 the value of packet mode, in the value for judging packet identification for for table
When showing the respectively value of mode, the IP in the outlet the DNS library IP in target view, which is divided at least one grouping, includes:Judge mesh
When the IP sum in the outlet the DNS library IP in mark view is the integral multiple of N, by the IP in the outlet the DNS library IP in target view
It is averagely divided into N group, N is the integer greater than 1, judges that the IP sum in the outlet the DNS library IP in target view is not the integer of N
Times when, the IP in the outlet the DNS library IP in target view is divided into N group and keeps the variance of the IP quantity in N group minimum;Sentencing
When the value of disconnected packet identification is the value for indicating independent division mode, the IP in the outlet the DNS library IP in target view is drawn
Being divided at least one grouping includes:It includes mesh in two groups, first group that IP in the outlet the DNS library IP in target view, which is divided into,
An IP in the outlet the DNS library IP in view is marked, includes other IP in the outlet the DNS library in target view in second group.
12. DNS dispatching method as claimed in claim 7, which is characterized in that described device further includes that LDNS detection module is used for
Determine that LDNS exports IP list;
When the computing module is also used to the IP in the outlet the DNS library IP in target view being divided at least one grouping, root
The outlet IP for belonging to identical DNS is placed in same grouping according to LDNS outlet IP list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710386026.8A CN108933843B (en) | 2017-05-26 | 2017-05-26 | DNS (Domain name Server) scheduling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710386026.8A CN108933843B (en) | 2017-05-26 | 2017-05-26 | DNS (Domain name Server) scheduling method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108933843A true CN108933843A (en) | 2018-12-04 |
CN108933843B CN108933843B (en) | 2021-07-06 |
Family
ID=64451288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710386026.8A Active CN108933843B (en) | 2017-05-26 | 2017-05-26 | DNS (Domain name Server) scheduling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108933843B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327495A (en) * | 2020-02-25 | 2020-06-23 | 网宿科技股份有限公司 | Method and device for detecting IP service area of visitor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120066360A1 (en) * | 2010-09-14 | 2012-03-15 | Cdnetworks Co., Ltd. | Cname-based round-trip time measurement in a content delivery network |
CN103248715A (en) * | 2012-02-07 | 2013-08-14 | 北京百度网讯科技有限公司 | Position detection method and device for CDN |
CN103428302A (en) * | 2012-05-15 | 2013-12-04 | 阿里巴巴集团控股有限公司 | Domain name resolution method, server and system |
CN103929507A (en) * | 2014-04-28 | 2014-07-16 | 广东睿江科技有限公司 | Method and device capable of achieving off-line DNS services |
CN104468857A (en) * | 2014-11-03 | 2015-03-25 | 北京百度网讯科技有限公司 | Corresponding relation obtaining method and system |
CN106506729A (en) * | 2017-01-11 | 2017-03-15 | 中国互联网络信息中心 | A kind of DNS policy resolution method and devices based on DNS views |
-
2017
- 2017-05-26 CN CN201710386026.8A patent/CN108933843B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120066360A1 (en) * | 2010-09-14 | 2012-03-15 | Cdnetworks Co., Ltd. | Cname-based round-trip time measurement in a content delivery network |
CN103248715A (en) * | 2012-02-07 | 2013-08-14 | 北京百度网讯科技有限公司 | Position detection method and device for CDN |
CN103428302A (en) * | 2012-05-15 | 2013-12-04 | 阿里巴巴集团控股有限公司 | Domain name resolution method, server and system |
CN103929507A (en) * | 2014-04-28 | 2014-07-16 | 广东睿江科技有限公司 | Method and device capable of achieving off-line DNS services |
CN104468857A (en) * | 2014-11-03 | 2015-03-25 | 北京百度网讯科技有限公司 | Corresponding relation obtaining method and system |
CN106506729A (en) * | 2017-01-11 | 2017-03-15 | 中国互联网络信息中心 | A kind of DNS policy resolution method and devices based on DNS views |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327495A (en) * | 2020-02-25 | 2020-06-23 | 网宿科技股份有限公司 | Method and device for detecting IP service area of visitor |
Also Published As
Publication number | Publication date |
---|---|
CN108933843B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104320487B (en) | The HTTP scheduling system and method for content distributing network | |
US9716627B2 (en) | Dynamic HTTP load balancing | |
CN108829507B (en) | The resource isolation method, apparatus and server of distributed data base system | |
CN104363313B (en) | Use the resource utilization support method and system of the website of content distributing network | |
CN109416643A (en) | Application program migratory system | |
CN107092437B (en) | Data write-in, read method and device, cloud storage system | |
CN103607424B (en) | Server connection method and server system | |
CN106980678A (en) | Data analysing method and system based on zookeeper technologies | |
CN103391312B (en) | Resource offline method for down loading and device | |
CN108989430B (en) | Load balancing method, device and storage medium | |
CN108737473A (en) | A kind of data processing method, apparatus and system | |
CN107968818A (en) | Storage method, device and the server cluster of data | |
CN108737534A (en) | A kind of data transmission method, device, block catenary system based on block chain | |
CN103902548B (en) | A kind of system and method and registration, ticket booking, net purchase system for accessing database | |
CN105376309B (en) | Access gateway allocation method and device | |
CN105991699B (en) | A kind of distributed downloads system of internet crawler | |
CN106936877A (en) | A kind of content distribution method, apparatus and system | |
CN106254561A (en) | The real-time offline download method of a kind of Internet resources file and system | |
CN110300130A (en) | A kind of resource regulating method, device, electronic equipment and storage medium | |
CN106331172A (en) | Method and device for detecting resources for content distribution network | |
US20010027467A1 (en) | Massively distributed database system and associated method | |
CN102882738B (en) | The detection method and device of a kind of network access speed | |
CN116701330A (en) | Logistics information sharing method, device, equipment and storage medium | |
CN110401552A (en) | A kind of CDN business automated tuning method and device | |
CN108933843A (en) | A kind of DNS dispatching 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 | ||
CB02 | Change of applicant information |
Address after: 550003 Building No. 12 in the Southern Park of Gui'an High-end Equipment Industrial Park, Guizhou Province Applicant after: Guizhou Baishan cloud Polytron Technologies Inc Address before: 100015 5 floor, block E, 201 IT tower, electronic city, 10 Jiuxianqiao Road, Chaoyang District, Beijing. Applicant before: Guizhou white cloud Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |