CN106067890B - A kind of domain name analytic method, apparatus and system - Google Patents
A kind of domain name analytic method, apparatus and system Download PDFInfo
- Publication number
- CN106067890B CN106067890B CN201610187729.3A CN201610187729A CN106067890B CN 106067890 B CN106067890 B CN 106067890B CN 201610187729 A CN201610187729 A CN 201610187729A CN 106067890 B CN106067890 B CN 106067890B
- Authority
- CN
- China
- Prior art keywords
- isp
- domain name
- dns server
- address
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1036—Load balancing of requests to servers for services different from user content provisioning, e.g. load balancing across domain name servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A kind of domain name analytic method, apparatus and system are provided in the embodiment of the present application, this method includes:Home domain name parsing dns server receives domain name mapping request, and domain name mapping request includes the domain name that request accesses;When not preserving address corresponding to the domain name, the domain name mapping is asked to be respectively sent to dns server corresponding to each ISP ISP through corresponding ISP links;And each parsing address that dns server corresponding to each ISP returns is received and preserves, and using each parsing address as address corresponding to the domain name;When preserving address corresponding to the domain name, corresponding analysis result is determined according to predetermined policy, and return to the analysis result.Using the scheme in the application, the load balancing of multiple ISP links can be realized according to predetermined policy by load balancing to multiple ISP links.
Description
Technical field
The application is related to domain name mapping technology, more particularly to a kind of domain name analytic method, apparatus and system.
Background technology
Under the working environment in modern times, network is one of essential infrastructure of modern handle official bussiness.Many merchant
Structure builds more complicated office network, and disposes the software service of commercial undertaking's internal proprietary, wherein just including local dns
(Domain Name System, domain name system) services, referred to as Local DNS.
To ensure the high availability of service quality and network, some enterprises, for example, financial institution, institution of higher learning, high quality wine
Shop etc. is usually deployed the access of more ISP (Internet Service Provider, ISP) link.
To realize the load balancing of more ISP links, scheme commonly used in the prior art is, in gateway device or fire wall
Middle setting static routing table, store in the table local device multiple IP scopes and the plurality of IP scopes respectively corresponding to ISP
Link, when gateway device or fire wall receive domain name mapping request, according to the source device for sending domain name analysis request
IP scopes belonging to IP, it is determined that corresponding ISP links, and translate domain names into request and route to corresponding ISP's through the ISP links
Dns server.
During the application is realized, inventor has found, numerous website domain names all employ CDN (Content
Delivery Network, content distributing network) service, i.e. when parsing domain name, for different ISP, return to different solutions
Analyse address, i.e. the parsing IP of dns server distributes aiming at the link for the ISP for sending analysis request;Using existing skill
Domain name analytic method in art, when a certain source device sends a large amount of domain name analysis requests, an ISP link load will be caused
It is higher, the relatively low situation of remaining link load, cause the load imbalances of more ISP links.
The content of the invention
A kind of domain name analytic method, apparatus and system are provided in the embodiment of the present application, it is of the prior art for solving
More unbalanced problems of ISP link loads.
One side in the embodiment of the present application, there is provided a kind of domain name analytic method, including:Home domain name parses
Dns server receives domain name mapping request, and domain name mapping request includes the domain name that request accesses;It is corresponding not preserving the domain name
Address when, the domain name mapping is asked to be respectively sent to corresponding to each ISP ISP through corresponding ISP links
Dns server;And receive and preserve each parsing address that dns server corresponding to each ISP returns, and using each parsing address as
Address corresponding to the domain name;When preserving address corresponding to the domain name, corresponding analysis result is determined according to predetermined policy, and return
Return the analysis result.
Other side in the embodiment of the present application, a kind of domain name mapping device is additionally provided, including:First receives
Module, for receiving domain name mapping request, domain name mapping request includes the domain name that request accesses;First sending module, is used for
When not preserving address corresponding to the domain name, by corresponding to domain name mapping request transmission to each ISP ISP
Dns server;Reception and preserving module, each parsing address returned for receiving and preserving dns server corresponding to each ISP,
And using each parsing address as address corresponding to the domain name;Determining module, for preserve the domain name corresponding to address when, according to
Predetermined policy determines corresponding analysis result, and returns to the analysis result.
Other side in the embodiment of the present application, a kind of domain name analysis system is additionally provided, including:Local dns
Server, for receiving domain name mapping request, domain name mapping request includes the domain name that request accesses;The domain name pair is not being preserved
During the address answered, domain name mapping request is respectively sent to each ISP ISP through corresponding ISP links and corresponded to
Dns server;And each parsing address that dns server corresponding to each ISP returns is received and preserves, and each parsing address is made
For address corresponding to the domain name;When preserving address corresponding to the domain name, corresponding analysis result is determined according to predetermined policy, and
Return to the analysis result;Gateway device or fire wall, for the domain name solution of dns server corresponding to each ISP will to be corresponded respectively to
Analysis request, routes to corresponding ISP links, so that corresponding corresponding to the domain name mapping request warp of dns server corresponding to each ISP
ISP links send to dns server corresponding to each ISP;Dns server corresponding to each ISP, for being taken from local dns
The domain name mapping request of business device carries out domain name mapping, and returns to corresponding analysis result.
Using the domain name analytic method in the embodiment of the present application, apparatus and system, request is translated domain names into through corresponding ISP
Link is respectively sent to dns server corresponding to multiple ISP, and the dns server according to corresponding to predetermined policy from the plurality of ISP
Determine analysis result in the address of return, so as to according to predetermined policy by load balancing to multiple ISP links, realize multiple
The load balancing of ISP links.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen
Schematic description and description please is used to explain the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the structural representation of the domain name analysis system shown in the embodiment of the present application one;
Fig. 2 is the flow chart of the domain name analytic method shown in the embodiment of the present application two;
Fig. 3 is the structural representation of domain name mapping device shown in the embodiment of the present application three.
Embodiment
During the application is realized, inventor has found, using domain name analytic method of the prior art, in a certain source
When equipment sends a large amount of domain name analysis requests, it is higher to cause an ISP link load, the relatively low feelings of remaining link load
Condition, cause the load imbalance of more ISP links.
In view of the above-mentioned problems, a kind of domain name analytic method, apparatus and system are provided in the embodiment of the present application, by domain name solution
Analysis request is respectively sent to dns server corresponding to multiple ISP through corresponding ISP links, and according to predetermined policy from the plurality of
Corresponding to ISP dns server return address in determine analysis result, so as to according to predetermined policy by load balancing at most
Individual ISP links, realize the load balancing of multiple ISP links.
In order that the technical scheme and advantage in the embodiment of the present application are more clearly understood, below in conjunction with accompanying drawing to the application
Exemplary embodiment be described in more detail, it is clear that described embodiment be only the application a part implementation
Example, rather than the exhaustion of all embodiments.It should be noted that in the case where not conflicting, embodiment and reality in the application
Applying the feature in example can be mutually combined.
Embodiment one
Domain name analytic method shown in the embodiment of the present application one can apply in domain name analysis system as shown in Figure 1.
As shown in figure 1, include multiple devices 101a, 101b within the system;One local dns server 102, gateway device or fire wall
103, correspond respectively to each ISP more dns servers 104a, 104b;One private server 105;One root server 106.
In the specific implementation, equipment 101a, 101b can be the plurality of devices for having function of surfing the Net, for example, computer,
Mobile phone, PAD, robot etc. or a certain service server, for example, mail server, Office Service device etc.;The application
This is not restricted.
In the specific implementation, local dns server 102 can provide two functions, i.e. domain name mapping function and DNS generations
Manage function.
Specifically, domain name mapping function is used for the domain name mapping request for receiving source device, and inquire about in local cache whether
In the presence of corresponding analysis result, if it does, with regard to according to the predetermined policy pre-set, selecting one of domain name mapping result
Return to source device.If corresponding analysis result is not present in caching, domain name mapping request is just forwarded to arrive DNS proxy function,
And the analysis result of DNS proxy function is received, and select one according to predetermined policy and return to source device.Specifically, this is advance
The predetermined policy of setting can be pre-set by network management personnel, and the predetermined policy can include:The company of each ISP links
Connect access price of quantity, the access bandwidth ratio of each ISP links or each ISP links etc.;It can also be for each domain name
The performance of each ISP links or be other balance policies etc. that network management personnel is set;The application is not restricted to this.
For example, the predetermined policy can choose dns server return corresponding to the ISP links of current connection minimum number
Analysis result, can be the parsing knot that dns server corresponding to selection is currently accessed the minimum ISP links of bandwidth accounting returns
Fruit or selection access analysis result that dns server corresponding to cheapest ISP links returns etc..
Specifically, DNS proxy function is used for the domain name mapping request for receiving the forwarding of domain name mapping function, and asynchronous generation point
Not Dui Yingyu different ISP links multiple domain name mappings request, and send to multiple dns servers set in advance to parse domain
Name, and the analysis result that multiple dns servers return is received, and analysis result is returned into domain name mapping function;And by domain name
Analysis result is updated into the caching of domain name mapping function.
It should be appreciated that to realize the application, local dns server can be further equipped with obtaining corresponding in predetermined policy
Parameter function.For example, when predetermined policy is the connection quantity of each ISP links, the local dns server can be with real-time
Or the connection quantity of each ISP links is obtained with predetermined period;, should when predetermined policy is the access bandwidth ratio of each ISP links
Local dns server can obtain the access bandwidth ratio of each ISP links in real time or with predetermined period;Or work as predetermined policy
For each ISP links access price when, local dns server can obtain the access of each ISP links in real time or with predetermined period
Price.
Specifically, when the connection quantity that predetermined policy is each ISP links or be each ISP links access bandwidth ratio
When, the work(of the connection quantity that each ISP links are gathered in real time or with predetermined period can be increased in gateway device or fire wall
The function of the access bandwidth ratio of energy or each ISP links, and gateway device or fire wall are adopted in real time or with predetermined period
The function of the connection quantity of each ISP links collected or the access bandwidth ratio of each ISP links are sent to local dns service
Device.When predetermined policy is the access price of each ISP links, connecing for each ISP links can also be set in local dns server
Enter price.
In the specific implementation, gateway device or fire wall 103 can will correspond respectively to dns server corresponding to each ISP
Domain name mapping request, route to corresponding ISP links so that corresponding to dns server corresponding to each ISP domain name mapping please
Ask and sent through corresponding ISP links to dns server corresponding to each ISP.
In the specific implementation, gateway device or fire wall 103 can close with local dns server sets, and can also set up separately;Should
Work as understanding, although illustrate only the scene closed and set in Fig. 1, those skilled in the art can be provided separately when implementing,
The application is not restricted to this.
In the specific implementation, dns server 104a, 104b corresponding to each ISP can be the dns servers of each ISP deployment;
To avoid Domain Hijacking, operator or network ownership can also in each ISP network self-built recurrence dns server, and will
The recurrence dns server is as dns server corresponding to each ISP.Specifically, the recurrence dns server is receiving domain name solution
During analysis request, recurrence dns server carries out recursion resolution from root server;And analysis result is returned into local dns server.
In the specific implementation, dns server 104a, 104b corresponding to each ISP, which can also have, judges that domain name parses
Whether the IP address of root server corresponding to request meets the function of predetermined condition;And when meeting, please by domain name parsing
The dedicated tunnel through pre-setting is asked to send to the root server, wherein, the predetermined condition includes the root server
IP address is located in predetermined IP address range.Specifically, can increase in dns server 104a, 104b an IP address with
The corresponding relation list of predetermined condition, and when receiving corresponding domain name mapping request, judged according to the corresponding relation list
Whether the IP address of root server meets predetermined condition corresponding to domain name mapping request.
For example, a certain IP address range is corresponded into " overseas IP " in dns server 104a, 104b;Receiving mesh
Mark address for the IP address in the range of this domain name mapping request when, by corresponding domain name mapping request through dedicated tunnel send to
Private server.
The private server 105 dns server corresponding with each ISP is connected by dedicated tunnel, is come for receiving
Asked from the domain name mapping of dns server corresponding to each ISP, and be forwarded to corresponding root server, in the specific implementation, can be with
The server commonly used using those skilled in the art;The application is not restricted to this.
Although it should be appreciated that be illustrated that the situation of two ISP links in the embodiment of the present application, in the specific implementation,
Scheme in the application can also be applied to an ISP link or two situations with uplink, and these application scenarios exist
Within the protection domain of the application, the application is not restricted to this.
The structural representation of the domain name analysis system according to the embodiment of the present application one is shown in above-described embodiment.Below will
With reference to above-mentioned domain name analysis system, the domain name analytic method shown in the embodiment of the present application two is described in detail.
Embodiment two
Fig. 2 is the flow chart of the domain name analytic method shown in the embodiment of the present application two.It is as shown in Fig. 2 real according to the application
The domain name analytic method shown in example two is applied to comprise the following steps:
S201, equipment send domain name analysis request to local dns server, and domain name mapping request includes what request accessed
Domain name;
In the specific implementation, the equipment can be computer 101a or 101b as shown in Figure 1 or other can
The equipment for accessing network, the application are not restricted to this.
S202, local dns server judge to whether there is address corresponding to domain name in local cache;If it does,
Then perform S203;If it does not exist, then perform S204-S207;
In the specific implementation, the corresponding relation of each domain name and IP address can be cached in local dns server.Specifically,
It can in the form of a list store, can also store otherwise, the application is not restricted to this.
For example, the corresponding relation list of each domain name and IP address cached in local dns server can be as follows:
In upper table, IP address corresponding to domain name www.sina.com is 223.121.23.2, and www.baidu.com is corresponding
IP address be 220.181.18.155 and 220.181.18.145.
More specifically, when the corresponding relation of each domain name and IP address can be cached in local dns server, can be further
Cache each domain name and IP address, the corresponding relation of ISP links.
For example, local dns server caches each domain name and the mapping table of IP address, ISP links can be as follows:
In upper table, the IP address of telecommunication link corresponding to domain name www.sina.com is 223.121.23.2,
The IP address of telecommunication link corresponding to www.baidu.com is 220.181.18.155, and the IP address of corresponding Netcom's link is
220.181.18.145。
In the specific implementation, local dns server exists first when receiving the domain name mapping request of local device transmission
Inquiry and the domain name carried in domain name mapping request in local cache;If inquired, judge institute in local cache be present
Address corresponding to domain name is stated, if do not inquired, judges address corresponding to domain name is not present in local cache.
S203, corresponding analysis result is determined according to predetermined policy, and return to analysis result.
When address corresponding to domain name in local dns server be present, local dns server can further basis
Predetermined policy determines corresponding analysis result.Specifically, the predetermined policy can include a variety of strategies, for example, the predetermined policy
It can be the analysis result of dns server return corresponding to the ISP links of the current connection minimum number of selection, can be that selection ought
The analysis result or selection access price that dns server corresponding to the minimum ISP links of preceding access bandwidth accounting returns
Analysis result that dns server corresponding to minimum ISP links returns etc..
It should be appreciated that before S203, it can further include and receive the step of user sets predetermined policy.Specific
During implementation, the setting interface for users selection of predetermined policy can be provided a user, user can also be received and pass through script file
The predetermined policy of setting.
It should be appreciated that before S203, it can further include collection in real time or to gather this with predetermined period predetermined
The step of policy-related (noun) parameter.For example, when predetermined policy is the connection quantity of each ISP links, the local dns server can
With with the connection quantity in real time or with each ISP links of predetermined period acquisition;When the access bandwidth ratio that predetermined policy is each ISP links
During example, the local dns server can obtain the access bandwidth ratio of each ISP links in real time or with predetermined period;Or when pre-
When fixed strategy is the access price of each ISP links, local dns server can obtain each ISP links in real time or with predetermined period
Access price.
In the specific implementation, local dns server can with multiple destination addresses corresponding to nslookup, wherein, multiple mesh
Mark address corresponds to multiple ISP links;Then the first ISP links are determined in multiple ISP links according to predetermined policy;And by institute
Destination address corresponding to the first ISP links is stated, as corresponding analysis result.
For example, when local dns server receives user's transmission, carryingwww.baidu.comDomain name mapping request
When, inquiring about to local cache has corresponding IP address, and according to the strategy pre-set, judges Netcom's link connection quantity most
It is few, then return to IP address 220.181.18.145 corresponding to corresponding Netcom's link to user.
So far, the process of analysis that domain name to be resolved in local dns server be present is over.
S204, translate domain names into request and be respectively sent to recurrence dns server corresponding to each ISP through corresponding ISP links;
, can be respectively by corresponding to the domain name of dns server corresponding to each ISP in a kind of S204 embodiment
Analysis request is sent to gateway device;Triggering gateway device will correspond respectively to the domain name mapping of dns server corresponding to each ISP
Request, routes to corresponding ISP links, so that corresponding corresponding to the domain name mapping request warp of dns server corresponding to each ISP
ISP links are sent to resolution server corresponding to each ISP.
In the specific implementation, local dns server can generate corresponding domain name mapping request respectively for each ISP, and
Asynchronous transmission is to gateway device;DNS service corresponding to these domain name mappings request is routed into each ISP respectively as gateway device again
Device.Specifically, dns server corresponding to each ISP can be respectively arranged in each ISP links, further, gateway device
These domain name mappings can be asked to route to dns server corresponding to each ISP through corresponding ISP links respectively.
, can be respectively by corresponding to the domain of dns server corresponding to each ISP in S204 another embodiment
Name analysis request is sent to fire wall;Triggering fire wall please by the domain name mapping for corresponding respectively to dns server corresponding to each ISP
Ask, route to corresponding ISP links, so that corresponding corresponding to the domain name mapping request warp of dns server corresponding to each ISP
ISP links are sent to dns server corresponding to each ISP.
In the specific implementation, local dns server can generate corresponding domain name mapping request respectively for each ISP, and
Asynchronous transmission is to fire wall;Dns server corresponding to these domain name mappings request is routed into each ISP respectively as fire wall again.
Specifically, dns server corresponding to each ISP can be respectively arranged in each ISP links, and further, fire wall can be with
These domain name mappings request is routed into dns server corresponding to each ISP through corresponding ISP links respectively.
In the specific implementation, dns server corresponding to each ISP can be the special dns server of each ISP deployment.But
Inventor has found, if the special dns server disposed using each ISP, it is possible that domain name access is held as a hostage to ISP advertisements
The situation of the page, at this point it is possible to set recurrence dns server corresponding to each ISP to solve domain name in each ISP links
Analysis.Specifically, one or more recurrence dns server can be set in each ISP links respectively.For example, in Netcom's link
Recurrence dns server 103a is set, recursion server 103b etc. is set in telecommunication link.
S205, each recurrence dns server send domain name analysis request to corresponding root server, until obtaining parsing knot
Fruit;
In the specific implementation, each recurrence dns server can use conventional domain name mapping technology of the prior art to root
IP address corresponding to server recursive query domain name, the application will not be described here.
In the specific implementation, recurrence dns server 103a, 103b can also have the function of shunting, i.e. receive domain
During name analysis request, it can be determined that whether the IP address of root server meets predetermined condition corresponding to domain name mapping request, for example,
Whether the IP address of root server is positioned at overseas corresponding to domain name mapping request;And please by the domain name mapping that Target IP is overseas IP
Ask and private server 104 is sent to by dedicated tunnel, target root server is forwarded to by private server 104;By Target IP
Root server is sent to by local network interface card for domestic IP domain name mapping request.In the specific implementation, private server 104 can
To be to be located at overseas server.
In the specific implementation, when recurrence dns server receives domain name mapping request, domain name can be determined whether
Whether the IP address of root server corresponding to analysis request meets predetermined condition;If it is satisfied, then by domain name analysis request
Dedicated tunnel through pre-setting is sent to the root server;Specifically, the predetermined condition includes the root server
IP address is located in predetermined IP address range.If be unsatisfactory for, the domain name mapping is asked to send to this through local network interface card
Root server.
Specifically, recurrence dns server dedicated tunnel of the domain name analysis request through pre-setting can be sent to
The private server pre-set;Wherein, the IP address of the private server is located in the predetermined IP address range;Touch
Send out private server described according to the IP address of the root server, domain name analysis request is sent to described service
Device.In the specific implementation, the private server can be used for domain name mapping request being forwarded to root server.
Analysis result is returned to local dns server by S206, each recurrence dns server;
S207, local dns server is after the analysis result that each recurrence dns server returns is received, according to predetermined plan
Corresponding analysis result is slightly determined, and analysis result is returned to equipment.
After the analysis result that each recurrence dns server returns is received, local dns server can be further according to pre-
Fixed strategy determines corresponding analysis result.Specifically, the predetermined policy can include a variety of strategies, for example, the predetermined policy can
To be the analysis result of dns server return corresponding to the ISP links of the current connection minimum number of selection, can be selection currently
The analysis result or selection access price that dns server corresponding to the minimum ISP links of access bandwidth accounting returns are most
Analysis result that dns server corresponding to low ISP links returns etc..
It should be appreciated that before S207, it can further include and receive the step of user sets predetermined policy.Specific
During implementation, the setting interface for users selection of predetermined policy can be provided a user, user can also be received and pass through script file
The predetermined policy of setting.
It should be appreciated that before S207, it can further include collection in real time or to gather this with predetermined period predetermined
The step of policy-related (noun) parameter.For example, when predetermined policy is the connection quantity of each ISP links, the local dns server can
With with the connection quantity in real time or with each ISP links of predetermined period acquisition;When the access bandwidth ratio that predetermined policy is each ISP links
During example, the local dns server can obtain the access bandwidth ratio of each ISP links in real time or with predetermined period;Or when pre-
When fixed strategy is the access price of each ISP links, local dns server can obtain each ISP links in real time or with predetermined period
Access price.
For example, when local dns server receives user's transmission, carryingwww.baidu.comDomain name mapping request
When, the recurrence dns server into telecommunication link and Netcom's link sends domain name analysis request respectively, and is respectively received and comes from
The analysis result 220.181.18.155 that the recurrence dns server of telecommunication link returns, and the recurrence DNS service in Netcom's link
The analysis result 220.181.18.145 that device returns;Then and according to the strategy pre-set, Netcom's link connection number is judged
Amount is minimum, then returns to IP address 220.181.18.145 corresponding to corresponding Netcom's link to user.
In the specific implementation, local dns server can further preserve this analysis result.Specifically, can incite somebody to action
The domain name increases to each domain name and IP address, the corresponding relation of ISP links with the analysis result of corresponding each bar ISP links.
So far, the process of analysis in local dns server in the absence of domain name to be resolved is over.
Using the domain name analytic method in the embodiment of the present application, translate domain names into request and sent out respectively through corresponding ISP links
Deliver to dns server corresponding to multiple ISP, and the address that the dns server according to corresponding to predetermined policy from the plurality of ISP returns
Middle determination analysis result, so as to by load balancing to multiple ISP links, realize multiple ISP links according to predetermined policy
Load balancing.
Based on same inventive concept, a kind of domain name mapping device is additionally provided in the embodiment of the present application, due to the device solution
Certainly the principle of problem is similar to the method that the embodiment of the present application two is provided, therefore the implementation of the device may refer to the reality of method
Apply, repeat part and repeat no more.
Embodiment three
Fig. 3 is the structural representation of domain name mapping device shown in the embodiment of the present application three.
As shown in figure 3, the domain name mapping device 300 according to the embodiment of the present application three, including:First receiving module 301,
For receiving domain name mapping request, domain name mapping request includes the domain name that request accesses;First sending module 302, for
When not preserving address corresponding to the domain name, domain name mapping request is sent to DNS corresponding to each ISP ISP
Server;Receive with preserving module 303, each parsing address returned for receiving and preserving dns server corresponding to each ISP,
And using each parsing address as address corresponding to the domain name;Determining module 304, for preserve the domain name corresponding to address when,
Corresponding analysis result is determined according to predetermined policy, and returns to the analysis result.
In the specific implementation, first receiving module 301, reception and preserving module 303 and determining module 304 can correspond to
In the domain name mapping function of local dns server, the first sending module 302 can correspond to the DNS proxy of local dns server
Function.
Alternatively, the first sending module specifically can be used for corresponding to the domain name of dns server corresponding to each ISP respectively
Analysis request is sent to gateway device;Triggering gateway device will correspond respectively to the domain name mapping of dns server corresponding to each ISP
Request, routes to corresponding ISP links, so that corresponding corresponding to the domain name mapping request warp of dns server corresponding to each ISP
ISP links are sent to dns server corresponding to each ISP.
Alternatively, the first sending module is specifically used for:Respectively by corresponding to the domain name solution of dns server corresponding to each ISP
Analysis request is sent to fire wall;Triggering fire wall asks the domain name mapping for corresponding respectively to dns server corresponding to each ISP,
Corresponding ISP links are routed to, so that the domain name mapping corresponding to dns server corresponding to each ISP is asked through corresponding ISP chains
Road is sent to dns server corresponding to each ISP.
Alternatively, dns server corresponding to each ISP includes the dns server of each ISP deployment, or, it is corresponding with each ISP
Recurrence dns server.
Alternatively, when dns server corresponding to each ISP includes recurrence dns server corresponding with each ISP, according to this Shen
Please the device of embodiment also include:Judge module, positioned at recurrence dns server, for when receiving domain name mapping request, sentencing
The IP address of root server meets predetermined condition corresponding to disconnected domain name mapping request;Second sending module, positioned at recurrence DNS service
Device, sent for translating domain names into dedicated tunnel of the request through pre-setting to root server, wherein, predetermined condition includes described
The IP address of root server is located in predetermined IP address range.
In the specific implementation, second sending module can specifically include:Sending submodule, for translating domain names into request
Dedicated tunnel through pre-setting is sent to the private server pre-set;Wherein, the IP address of private server is positioned at pre-
In fixed IP address range;Submodule is triggered, for triggering IP address of the private server according to root server, is translated domain names into
Request is sent to root server.
Optionally it is determined that module, is specifically included:Submodule is inquired about, for inquiring about multiple destination addresses corresponding to the domain name,
Wherein, the plurality of destination address corresponds to multiple ISP links;Link determination sub-module, for according to predetermined policy the plurality of
The first ISP links are determined in ISP links;Determination sub-module, for by destination address corresponding to the first ISP links, being defined as
Corresponding analysis result.
Alternatively, the predetermined policy includes:The connection quantity of each ISP links, the access bandwidth ratio of each ISP links or
The access price of each ISP links of person.
Using the domain name mapping device in the embodiment of the present application, translate domain names into request and sent out respectively through corresponding ISP links
Deliver to dns server corresponding to multiple ISP, and the address that the dns server according to corresponding to predetermined policy from the plurality of ISP returns
Middle determination analysis result, so as to by load balancing to multiple ISP links, realize multiple ISP links according to predetermined policy
Load balancing.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application
God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising including these changes and modification.
Claims (17)
1. a kind of domain name analytic method, it is characterised in that the domain name analytic method includes:
Local dns server receives domain name mapping request, and domain name analysis request includes the domain name that request accesses;
When not preserving address corresponding to domain name, domain name analysis request is respectively sent to phase through multiple ISP links
Dns server and root server corresponding to the ISP ISP answered;And receive and preserve all dns servers
Each parsing address returned, and using each parsing address as address corresponding to domain name;Wherein, all dns server bags
Dns server corresponding to all ISP is included, and including recurrence dns server corresponding with each ISP, and the recurrence dns server exists
It is to carry out recursion resolution from the root server, and analysis result is returned to described when receiving domain name analysis request
Ground dns server;
When preserving address corresponding to domain name, corresponding analysis result is determined according to predetermined policy, and return to the parsing
As a result;
Wherein, corresponding analysis result is determined according to predetermined policy, specifically included:
Multiple destination addresses corresponding to the local dns server inquiry domain name, wherein, the multiple destination address is corresponding
In multiple ISP links;
First ISP links are determined in the multiple ISP links according to predetermined policy;
And by destination address corresponding to the first ISP links, as corresponding analysis result.
2. according to the method for claim 1, it is characterised in that distinguish domain name analysis request through multiple ISP links
Send to dns server corresponding to corresponding ISP, specifically include:
The domain name mapping request corresponding to dns server corresponding to each ISP is sent to gateway device respectively;
Triggering gateway device asks the domain name mapping for corresponding respectively to dns server corresponding to each ISP, routes to corresponding
ISP links, so that the domain name mapping corresponding to dns server corresponding to each ISP asks to send to each through corresponding ISP links
Dns server corresponding to ISP.
3. according to the method for claim 1, it is characterised in that distinguish domain name analysis request through multiple ISP links
Send to dns server corresponding to corresponding ISP, specifically include:
The domain name mapping request corresponding to dns server corresponding to each ISP is sent to fire wall respectively;
Triggering fire wall asks the domain name mapping for corresponding respectively to dns server corresponding to each ISP, routes to corresponding ISP
Link, so that the domain name mapping corresponding to dns server corresponding to each ISP asks to send to each ISP pairs through corresponding ISP links
The dns server answered.
4. according to the method for claim 1, it is characterised in that all dns servers include the special of each ISP deployment
Dns server.
5. according to the method for claim 1, it is characterised in that all dns servers include recurrence corresponding with each ISP
During dns server, methods described also includes:
When recurrence dns server receives domain name analysis request, root server corresponding to domain name analysis request is judged
IP address meet predetermined condition;
Dedicated tunnel of the domain name analysis request through pre-setting is sent to the root server, wherein, the predetermined bar
The IP address that part includes the root server is located in predetermined IP address range.
6. according to the method for claim 5, it is characterised in that by special tunnel of the domain name analysis request through pre-setting
Road is sent to the root server, is specifically included:
Recurrence dns server sends dedicated tunnel of the domain name analysis request through pre-setting to the Special clothes pre-set
Business device;Wherein, the IP address of the private server is located in the predetermined IP address range;
IP address of the private server according to the root server is triggered, domain name analysis request is sent to described
Server.
7. according to the method for claim 1, it is characterised in that the predetermined policy includes:The connection number of each ISP links
The access price of amount, the access bandwidth ratio of each ISP links or each ISP links.
8. a kind of domain name mapping device, it is characterised in that the domain name mapping device includes:
First receiving module, is located locally dns server, and for receiving domain name mapping request, domain name analysis request includes
Ask the domain name accessed;
First sending module, for when not preserving address corresponding to domain name, by domain name analysis request through multiple ISP
Link is respectively sent to dns server and root server corresponding to corresponding ISP ISP;Wherein, it is all
Dns server includes dns server corresponding to all ISP, and including recurrence dns server corresponding with each ISP, and the recurrence
Dns server is to carry out recursion resolution from the root server, and analysis result is returned when receiving domain name analysis request
Back to the local dns server;
Reception and preserving module, each parsing address returned for receiving and preserving all dns servers, and will respectively analytically
Location is as address corresponding to domain name;
Determining module, for when preserving address corresponding to domain name, corresponding analysis result to be determined according to predetermined policy, and
The analysis result is returned to, wherein the determining module specifically includes:Submodule is inquired about, it is multiple corresponding to domain name for inquiring about
Destination address, wherein, the multiple destination address corresponds to the multiple ISP links;Link determination sub-module, for according to pre-
Fixed strategy determines the first ISP links in the multiple ISP links;Determination sub-module, for the first ISP link pairs to be answered
Destination address, be defined as corresponding analysis result.
9. device according to claim 8, it is characterised in that the first sending module is specifically used for respectively to correspond to respectively
The domain name mapping request of dns server corresponding to ISP is sent to gateway device;Triggering gateway device will correspond respectively to each ISP
The domain name mapping request of corresponding dns server, routes to corresponding ISP links, so as to be taken corresponding to DNS corresponding to each ISP
The domain name mapping request of business device is sent to dns server corresponding to each ISP through corresponding ISP links.
10. device according to claim 8, it is characterised in that the first sending module is specifically used for:It will correspond to respectively each
The domain name mapping request of dns server corresponding to ISP is sent to fire wall;It is corresponding that triggering fire wall will correspond respectively to each ISP
Dns server domain name mapping request, corresponding ISP links are routed to, so as to correspond to dns server corresponding to each ISP
Domain name mapping request sent through corresponding ISP links to dns server corresponding to each ISP.
11. device according to claim 8, it is characterised in that all dns servers include the DNS clothes of each ISP deployment
Business device.
12. device according to claim 8, it is characterised in that all dns servers include pass corresponding with each ISP
When returning dns server, described device also includes:
Judge module, positioned at recurrence dns server, for when receiving domain name analysis request, judging domain name solution
The IP address of root server meets predetermined condition corresponding to analysis request;
Second sending module, positioned at recurrence dns server, for by dedicated tunnel of the domain name analysis request through pre-setting
Send to the root server, wherein, the IP address that the predetermined condition includes the root server is located at predetermined IP address
In the range of.
13. device according to claim 12, it is characterised in that the second sending module specifically includes:
Sending submodule, it is special for dedicated tunnel of the domain name analysis request through pre-setting to be sent to what is pre-set
Server;Wherein, the IP address of the private server is located in the predetermined IP address range;
Submodule is triggered, for triggering IP address of the private server according to the root server, domain name is parsed
Request is sent to the root server.
14. device according to claim 8, it is characterised in that the predetermined policy includes:The connection number of each ISP links
The access price of amount, the access bandwidth ratio of each ISP links or each ISP links.
15. a kind of domain name analysis system, it is characterised in that the domain name analysis system includes:
Local dns server, for receiving domain name mapping request, domain name mapping request includes the domain name that request accesses;Not
When preserving address corresponding to the domain name, domain name mapping request is respectively sent to corresponding internet through multiple ISP links and taken
Dns server and root server corresponding to business provider ISP;And receive and preserve each parsing that all dns servers return
Address, and using each parsing address as address corresponding to the domain name;When preserving address corresponding to the domain name, according to predetermined policy
It is determined that corresponding analysis result, and return to the analysis result;Wherein, corresponding analysis result is determined according to predetermined policy, specifically
Including:Multiple destination addresses corresponding to the local dns server inquiry domain name, wherein, the multiple destination address pair
Should be in the multiple ISP links;First ISP links are determined in the multiple ISP links according to predetermined policy;And by described
Destination address corresponding to one ISP links, as corresponding analysis result;
Gateway device or fire wall, for the domain name mapping for corresponding respectively to dns server corresponding to each ISP to be asked, route
To corresponding ISP links, so that the domain name mapping request corresponding to dns server corresponding to each ISP is sent out through corresponding ISP links
Deliver to dns server corresponding to each ISP;
Dns server corresponding to each ISP, for carrying out domain name mapping to the domain name mapping request from local dns server, and
Corresponding analysis result is returned, wherein, dns server corresponding to each ISP includes recurrence dns server corresponding with each ISP, and
The recurrence dns server is to carry out recursion resolution from the root server when receiving domain name analysis request, and will parsing
As a result the local dns server is returned to.
16. system according to claim 15, it is characterised in that dns server corresponding to each ISP is additionally operable to described in judgement
Whether the IP address of root server meets predetermined condition corresponding to domain name mapping request;And when meeting, domain name is parsed
Dedicated tunnel of the request through pre-setting is sent to the root server, wherein, the predetermined condition includes the root server
IP address be located in predetermined IP address range.
17. system according to claim 15, it is characterised in that also include:
Private server, dns server corresponding with each ISP are connected by dedicated tunnel, and each ISP pairs is come from for receiving
The domain name mapping request for the dns server answered, and it is forwarded to corresponding root server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610187729.3A CN106067890B (en) | 2016-03-29 | 2016-03-29 | A kind of domain name analytic method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610187729.3A CN106067890B (en) | 2016-03-29 | 2016-03-29 | A kind of domain name analytic method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106067890A CN106067890A (en) | 2016-11-02 |
CN106067890B true CN106067890B (en) | 2017-11-14 |
Family
ID=57419687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610187729.3A Active CN106067890B (en) | 2016-03-29 | 2016-03-29 | A kind of domain name analytic method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106067890B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106888268A (en) * | 2017-03-24 | 2017-06-23 | 杭州迪普科技股份有限公司 | A kind of analysis method and device of domain name |
CN107547682B (en) * | 2017-07-31 | 2020-06-05 | 新华三技术有限公司 | IP address identification method and device |
CN109788015B (en) * | 2017-11-15 | 2023-04-25 | 阿里巴巴集团控股有限公司 | Application service calling system, method and device |
CN107911499A (en) * | 2017-11-28 | 2018-04-13 | 北京潘达互娱科技有限公司 | Multi-line domain name analytic method and device |
CN109981805B (en) * | 2017-12-28 | 2022-04-15 | 中国移动通信集团山东有限公司 | Domain name resolution method and device |
CN109327561B (en) * | 2018-11-21 | 2021-01-12 | Oppo广东移动通信有限公司 | Electronic equipment, domain name query method and related product |
CN109660425B (en) * | 2018-12-13 | 2021-05-18 | 网宿科技股份有限公司 | Monitoring method, determining method, monitoring equipment and storage medium |
CN110048956A (en) * | 2019-05-29 | 2019-07-23 | 中国海洋石油集团有限公司 | Internetwork link load control system |
CN110602270B (en) * | 2019-11-01 | 2022-10-14 | 北京博睿宏远数据科技股份有限公司 | Domain name resolution method and device, computer equipment and storage medium |
CN111683139B (en) * | 2020-06-05 | 2022-10-21 | 北京百度网讯科技有限公司 | Method and device for balancing load |
CN111818194A (en) * | 2020-07-01 | 2020-10-23 | 中国建设银行股份有限公司 | Domain name based access system and method |
CN114553820A (en) * | 2022-02-11 | 2022-05-27 | 北京云思智学科技有限公司 | DNS analysis method, system and storage medium for refined analysis control |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101764855A (en) * | 2009-12-30 | 2010-06-30 | 福建星网锐捷网络有限公司 | Method, device and system for providing domain name resolution services |
CN103051740B (en) * | 2012-12-13 | 2016-04-20 | 上海牙木通讯技术有限公司 | Domain name analytic method, dns server and domain name analysis system |
CN104468853A (en) * | 2013-09-18 | 2015-03-25 | 中兴通讯股份有限公司 | Domain name resolution method, server and system |
-
2016
- 2016-03-29 CN CN201610187729.3A patent/CN106067890B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106067890A (en) | 2016-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106067890B (en) | A kind of domain name analytic method, apparatus and system | |
US11283715B2 (en) | Updating routing information based on client location | |
EP2223470B1 (en) | Dns wildcard beaconing to determine client location and resolver load for global traffic load balancing | |
US9712422B2 (en) | Selection of service nodes for provision of services | |
EP3567881B1 (en) | Request routing and updating routing information utilizing client location information | |
US7933951B2 (en) | Systems and methods for discerning and controlling communication traffic | |
EP2398211B1 (en) | Massively scalable multilayered load balancing based on integrated control and data plane | |
US11924273B1 (en) | Point to node in a multi-tiered middleware environment | |
CN104980478B (en) | Sharing method, equipment and system are cached in content distributing network | |
CN107431727A (en) | Anycast and the flow transmission of the mapping based on terminal user are used in overlay network | |
CN107528862A (en) | The method and device of domain name mapping | |
CN103678311B (en) | Web access method and system, crawl Routing Service device based on transfer mode | |
CN102833361B (en) | Terminating connections and selecting target source devices for resource requests | |
CN106412063A (en) | CDN node detection and resource scheduling system and method in education network | |
CN105940655A (en) | System for protection against DDos attacks | |
CN103873604B (en) | Network access method based on analysis of CDN data | |
WO2017177437A1 (en) | Domain name resolution method, device, and system | |
CN103825923B (en) | Resource download method, business server, mobile phone client-terminal and resource download system | |
CN108259372A (en) | A kind of multi-link load balance system and method | |
CN107735778B (en) | Protect the communication link between content delivery network and content original server | |
CN107911499A (en) | Multi-line domain name analytic method and device | |
US20090150564A1 (en) | Per-user bandwidth availability | |
CN106856456B (en) | Processing method and system for cache cluster service | |
CN106230925A (en) | A kind of access control method and device | |
CN107612831A (en) | A kind of transmission method and device of the data message for accessing source station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |