CN106067890A - A kind of domain name analytic method, Apparatus and system - Google Patents

A kind of domain name analytic method, Apparatus and system Download PDF

Info

Publication number
CN106067890A
CN106067890A CN201610187729.3A CN201610187729A CN106067890A CN 106067890 A CN106067890 A CN 106067890A CN 201610187729 A CN201610187729 A CN 201610187729A CN 106067890 A CN106067890 A CN 106067890A
Authority
CN
China
Prior art keywords
isp
domain name
dns server
address
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610187729.3A
Other languages
Chinese (zh)
Other versions
CN106067890B (en
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhao Yu Tai Mdt Infotech Ltd
Original Assignee
Beijing Zhao Yu Tai Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhao Yu Tai Mdt Infotech Ltd filed Critical Beijing Zhao Yu Tai Mdt Infotech Ltd
Priority to CN201610187729.3A priority Critical patent/CN106067890B/en
Publication of CN106067890A publication Critical patent/CN106067890A/en
Application granted granted Critical
Publication of CN106067890B publication Critical patent/CN106067890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1036Load 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

Providing a kind of domain name analytic method, Apparatus and system in the embodiment of the present application, the method includes: home domain name resolves dns server and receives domain name mapping request, and this domain name mapping request includes the domain name that request accesses;When not preserving address corresponding to this domain name, this domain name mapping request is respectively sent to each dns server corresponding for ISP ISP through corresponding ISP link;And receive that the dns server corresponding with preserving each ISP return respectively resolve address, and using each parsing address as address corresponding to this domain name;When the address that this domain name of preservation is corresponding, determine corresponding analysis result according to predetermined policy, and return this analysis result.Use the scheme in the application, it is possible to according to predetermined policy by load balancing to multiple ISP links, it is achieved the load balancing of multiple ISP links.

Description

A kind of domain name analytic method, Apparatus and system
Technical field
The application relates to domain name mapping technology, particularly to a kind of domain name analytic method, Apparatus and system.
Background technology
Under modern working environment, network is one of requisite infrastructure of modern handle official bussiness.A lot More complicated office network is built by commercial undertaking, and disposes the software service of commercial undertaking's internal proprietary, its In just include that local dns (Domain Name System, domain name system) services, referred to as Local DNS.
For ensureing service quality and the high availability of network, some enterprises, such as, financial institution, high institute School, saloon bar etc. are usually deployed many ISP (Internet Service Provider, ISP) Link accesses.
For realizing the load balancing of many ISP link, scheme commonly used in the prior art is, at gateway device or Person's fire wall arranges static routing table, this table stores multiple IP scopes of local device and these are many The ISP link that individual IP scope is the most corresponding, receives domain name mapping request at gateway device or fire wall Time, according to the IP scope belonging to the IP of the source device of sending domain name analysis request, determine the ISP chain of correspondence Road, and translate domain names into the dns server asking to route to corresponding ISP through this ISP link.
During realizing the application, inventor finds, numerous websites domain name all employ CDN (Content Delivery Network, content distributing network) services, i.e. when resolving domain name, for Different ISP, returns to different parsing addresses, i.e. the parsing IP of dns server is aiming at sending The link of the ISP of analysis request and distribute;Use domain name analytic method of the prior art, in a certain source When equipment sends the request of domains name analysis, will result in an ISP link load higher, remaining link is born Carry relatively low situation, cause the load imbalance of many ISP link.
Summary of the invention
The embodiment of the present application provides a kind of domain name analytic method, Apparatus and system, is used for solving existing skill The unbalanced problem of many ISP link load in art.
According to an aspect in the embodiment of the present application, it is provided that a kind of domain name analytic method, including: local Domain name mapping dns server receives domain name mapping request, and this domain name mapping request includes the territory that request accesses Name;When not preserving address corresponding to this domain name, by this domain name mapping request through corresponding ISP link respectively Send to each dns server corresponding for ISP ISP;And receive and preserve each ISP pair What the dns server answered returned respectively resolve address, and using each parsing address as address corresponding to this domain name; When the address that this domain name of preservation is corresponding, determine corresponding analysis result according to predetermined policy, and return this solution Analysis result.
According to another aspect in the embodiment of the present application, additionally provide a kind of domain name mapping device, including: First receiver module, is used for receiving domain name mapping request, and this domain name mapping request includes the domain name that request accesses; First sending module, for when not preserving address corresponding to this domain name, sends this domain name mapping request extremely Each dns server corresponding for ISP ISP;Receive and preserve module, for receive and Preserve dns server return corresponding for each ISP respectively resolves address, and using each parsing address as this territory The address that name is corresponding;Determine module, when the address corresponding in this domain name of preservation, true according to predetermined policy Fixed corresponding analysis result, and return this analysis result.
According to another aspect in the embodiment of the present application, additionally provide a kind of domain name analysis system, including: Local dns server, is used for receiving domain name mapping request, and this domain name mapping request includes what request accessed Domain name;When not preserving address corresponding to this domain name, this domain name mapping request is divided through corresponding ISP link Do not send to each dns server corresponding for ISP ISP;And receive and preserve each ISP What corresponding dns server returned respectively resolve address, and using each parsing address as ground corresponding to this domain name Location;When the address that this domain name of preservation is corresponding, determine corresponding analysis result according to predetermined policy, and return This analysis result;Gateway device or fire wall, for the DNS service corresponding by corresponding respectively to each ISP The domain name mapping request of device, routes to corresponding ISP link, so that corresponding to DNS corresponding for each ISP The domain name mapping request of server sends to dns server corresponding for each ISP through corresponding ISP link; The dns server that each ISP is corresponding, for asking to carry out to the domain name mapping from local dns server Domain name mapping, and return corresponding analysis result.
Using the domain name analytic method in the embodiment of the present application, Apparatus and system, the request that translates domain names into is through phase The ISP link answered is respectively sent to dns server corresponding to multiple ISP, and according to predetermined policy from this The address that dns server corresponding for multiple ISP returns determines analysis result such that it is able to according to predetermined Strategy is by load balancing to multiple ISP links, it is achieved the load balancing of multiple ISP links.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application Point, the schematic description and description of the application is used for explaining the application, is not intended that to the application not Work as restriction.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.
Detailed description of the invention
During realizing the application, inventor finds, uses domain name analytic method of the prior art, When a certain source device sends the request of domains name analysis, will result in an ISP link load higher, its The situation that remaining link load is relatively low, causes the load imbalance of many ISP link.
For the problems referred to above, the embodiment of the present application provides a kind of domain name analytic method, Apparatus and system, The request of translating domain names into is respectively sent to dns server corresponding to multiple ISP through corresponding ISP link, And from the address that dns server corresponding for the plurality of ISP returns, determine analysis result according to predetermined policy, It is thus possible to according to predetermined policy by load balancing to multiple ISP links, it is achieved the load of multiple ISP links Equilibrium.
In order to make technical scheme in the embodiment of the present application and advantage clearer, below in conjunction with accompanying drawing pair The exemplary embodiment of the application is described in more detail, it is clear that described embodiment is only this A part of embodiment of application rather than all embodiments exhaustive.It should be noted that do not conflicting In the case of, the embodiment in the application and the feature in embodiment can be mutually combined.
Embodiment one
Domain name analytic method shown in the embodiment of the present application one can apply to domain name mapping as shown in Figure 1 In system.As it is shown in figure 1, include multiple devices 101a, 101b within the system;One local dns clothes Business device 102, gateway device or fire wall 103, correspond respectively to each ISP multiple stage dns server 104a, 104b;One private server 105;One root server 106.
In the specific implementation, this equipment 101a, 101b can be the plurality of devices with function of surfing the Net, example As, computer, mobile phone, PAD, robot etc., it is also possible to be a certain service server, such as, mail Server, Office Service device etc.;This is not restricted by the application.
In the specific implementation, local dns server 102 can provide two functions, i.e. domain name mapping Function and DNS proxy function.
Specifically, domain name mapping function is for receiving the domain name mapping request of source device, and inquires about local cache In whether there is corresponding analysis result, if it does, just according to the predetermined policy pre-set, select it In a domain name mapping result return to source device.If there is not corresponding analysis result in Huan Cun, just turn Send out domain name mapping and ask DNS proxy function, and receive the analysis result of DNS proxy function, and according to Predetermined policy selects one and returns to source device.Specifically, this predetermined policy pre-set can be by net Network management personnel pre-set, and this predetermined policy may include that the connection quantity of each ISP link, each ISP The access bandwidth ratio of link or the access price etc. of each ISP link;Can also is that for each domain name Other balance policies etc. that the performance of each ISP link or network management personnel are arranged;The application is to this It is not restricted.
Such as, this predetermined policy can be the DNS that the ISP link chosen and currently connect minimum number is corresponding Analysis result that server returns, can be to select the ISP link being currently accessed bandwidth accounting minimum corresponding The analysis result that dns server returns, it is also possible to be to select the cheapest ISP link of access corresponding The analysis result etc. that dns server returns.
Specifically, the domain name mapping request that DNS proxy function forwards for receiving domain name mapping function, and Asynchronous generation corresponds respectively to multiple domain name mappings request of different ISP link, and sends to set in advance Multiple dns servers are to resolve domain name, and receive the analysis result that multiple dns server returns, and will Analysis result returns to domain name mapping function;And translate domain names into result and update the caching of domain name mapping function In.
Should be appreciated that, for realizing the application, local dns server can be further equipped with obtaining predetermined plan The function of parameter corresponding in slightly.Such as, when the connection quantity that predetermined policy is each ISP link, should Local dns server can be in real time or to obtain the connection quantity of each ISP link with predetermined period;When in advance When fixed strategy is the access bandwidth ratio of each ISP link, this local dns server can be in real time or with in advance Fixed cycle obtains the access bandwidth ratio of each ISP link;Or, when predetermined policy is connecing of each ISP link When entering price, local dns server in real time or can obtain the access valency of each ISP link with predetermined period Lattice.
Specifically, when the connection quantity that predetermined policy is each ISP link or for the access band of each ISP link During wide ratio, can increase in gateway device or fire wall in real time or gather each ISP chain with predetermined period The function of the connection quantity on road or the function of the access bandwidth ratio of each ISP link, and by gateway device Or the function of the connections quantity of each ISP link that fire wall in real time or collects with predetermined period or respectively The access bandwidth ratio of ISP link sends to local dns server.When predetermined policy is each ISP link Access price time, it is also possible to the access price of each ISP link is set in local dns server.
In the specific implementation, gateway device or fire wall 103 can be corresponding by corresponding respectively to each ISP The domain name mapping request of dns server, routes to corresponding ISP link, so that corresponding to each ISP pair The domain name mapping request of the dns server answered sends to DNS corresponding for each ISP through corresponding ISP link Server.
In the specific implementation, gateway device or fire wall 103 can close with local dns server and set, also Can set up separately;It is to be understood that, although Fig. 1 illustrate only and close the scene set, but those skilled in the art exist During enforcement, can be provided separately, this is not restricted by the application.
In the specific implementation, corresponding for each ISP dns server 104a, 104b can be that each ISP disposes Dns server;For avoiding Domain Hijacking, operator or network ownership can also be at each ISP nets Self-built recurrence dns server in network, and using this recurrence dns server as DNS corresponding for each ISP Server.Specifically, this recurrence dns server is when receiving domain name mapping request, and recurrence DNS takes Business device carries out recursion resolution from root server;And analysis result is returned to local dns server.
In the specific implementation, corresponding for each ISP dns server 104a, 104b can also have judgement institute Whether the IP address stating root server corresponding to domain name mapping request meets the function of predetermined condition;And full During foot, the domain name analysis request dedicated tunnel through pre-setting is sent to described root server, wherein, Described predetermined condition includes that the IP address of described root server is positioned at predetermined IP address range.Specifically, The corresponding relation list of an IP address and predetermined condition can be increased in dns server 104a, 104b, And when receiving corresponding domain name mapping request, judge that this domain name mapping is asked according to this corresponding relation list Whether the IP address of corresponding root server meets predetermined condition.
Such as, in dns server 104a, 104b, a certain IP address range is corresponded to " overseas IP "; When domain name mapping in the IP address received in the range of destination address is this is asked, by corresponding domain name solution Analysis request sends to private server through dedicated tunnel.
This private server 105 is connected by dedicated tunnel with described dns server corresponding for each ISP, Ask for receiving the domain name mapping from dns server corresponding for each ISP, and be forwarded to corresponding root Server, in the specific implementation, can use the server that those skilled in the art commonly use;The application is to this It is not restricted.
It is to be understood that, although shown in the embodiment of the present application is the situation of two ISP links, but specifically During enforcement, the scheme in the application can also be applied to an ISP link or two feelings with uplink Condition, these application scenarios are all within the protection domain of the application, and this is not restricted by the application.
Above-described embodiment shows the structural representation of domain name analysis system according to the embodiment of the present application one. Below in conjunction with above-mentioned domain name analysis system, the domain name analytic method shown in the embodiment of the present application two is carried out in detail Thin description.
Embodiment two
Fig. 2 is the flow chart of the domain name analytic method shown in the embodiment of the present application two.As in figure 2 it is shown, according to Domain name analytic method shown in the embodiment of the present application two comprises the following steps:
S201, equipment includes to the request of local dns server sending domain name analysis, this domain name mapping request The domain name that request accesses;
In the specific implementation, this equipment can be computer 101a or 101b as shown in Figure 1, it is possible to To be the equipment of other accessible networks, this is not restricted by the application.
S202, local dns server judges whether to exist in local cache the address that domain name is corresponding; If it is present perform S203;If it does not exist, then perform S204-S207;
In the specific implementation, local dns server can cache the corresponding relation of each domain name and IP address. Specifically, can store in the form of a list, it is also possible to store otherwise, this is not limited by the application System.
Such as, in local dns server, the corresponding relation list of each domain name and the IP address of caching can be as Under:
In upper table, IP address corresponding to domain name www.sina.com is 223.121.23.2, IP address corresponding for www.baidu.com is 220.181.18.155 and 220.181.18.145.
During more specifically, local dns server can cache the corresponding relation of each domain name and IP address, Each domain name and IP address, the corresponding relation of ISP link can be cached further.
Such as, each domain name of local dns server caching can with the mapping table of IP address, ISP link With as follows:
In upper table, the IP address of the telecommunication link that domain name www.sina.com is corresponding is 223.121.23.2, The IP address of the telecommunication link that www.baidu.com is corresponding is 220.181.18.155, corresponding Netcom's link IP address be 220.181.18.145.
In the specific implementation, local dns server is receiving the domain name mapping request that local device sends Time, the domain name that first inquiry is carried in asking with this domain name mapping in local cache;If inquired, then Judging local cache exists the address that domain name is corresponding, if do not inquired, then judging in local cache There is not the address that domain name is corresponding.
S203, determines corresponding analysis result according to predetermined policy, and returns analysis result.
When there is address corresponding to domain name in local dns server, local dns server is permissible Corresponding analysis result is determined further according to predetermined policy.Specifically, this predetermined policy can include multiple Strategy, such as, this predetermined policy can be the DNS that the ISP link chosen and currently connect minimum number is corresponding Analysis result that server returns, can be to select the ISP link being currently accessed bandwidth accounting minimum corresponding The analysis result that dns server returns, it is also possible to be to select the cheapest ISP link of access corresponding The analysis result etc. that dns server returns.
Should be appreciated that before S203, it is also possible to farther include to receive the step of user setup predetermined policy Suddenly.In the specific implementation, the interface for users that arranges that can provide a user with predetermined policy selects, it is also possible to Receive the predetermined policy that user is arranged by script file.
Should be appreciated that before S203, it is also possible to farther include Real-time Collection or adopt with predetermined period Collect the step of the relevant parameter of this predetermined policy.Such as, when the connection quantity that predetermined policy is each ISP link Time, this local dns server can be in real time or to obtain the connection quantity of each ISP link with predetermined period; When the access bandwidth ratio that predetermined policy is each ISP link, this local dns server can in real time or The access bandwidth ratio of each ISP link is obtained with predetermined period;Or, when predetermined policy is each ISP link Access price time, local dns server in real time or can obtain the connecing of each ISP link with predetermined period Enter price.
In the specific implementation, local dns server can be with multiple destination addresses corresponding to nslookup, its In, multiple destination addresses correspond to multiple ISP links;Then according to predetermined policy in multiple ISP links Determine an ISP link;And by destination address corresponding for a described ISP link, resolve as corresponding Result.
Such as, when local dns server receives what user sent, carrywww.baidu.comDomain name During analysis request, inquiry to local cache has corresponding IP address, and according to the strategy pre-set, sentences Duan Chu Netcom link connects minimum number, then return to, to user, the IP address that corresponding Netcom link is corresponding 220.181.18.145。
So far, the process of analysis that there is domain name to be resolved in local dns server is over.
S204, the request of translating domain names into is respectively sent to recurrence corresponding to each ISP through corresponding ISP link Dns server;
In a kind of detailed description of the invention of S204, DNS clothes corresponding for each ISP can be would correspond to respectively The domain name mapping request of business device sends to gateway device;Trigger gateway device and will correspond respectively to each ISP correspondence The domain name mapping request of dns server, route to corresponding ISP link, so that corresponding to each ISP The domain name mapping request of corresponding dns server sends to solution corresponding for each ISP through corresponding ISP link Analysis server.
In the specific implementation, local dns server can generate corresponding domain name solution respectively for each ISP Analysis request, and asynchronous transmission is to gateway device;By gateway device, these domain name mappings request is route respectively again To the dns server that each ISP is corresponding.Specifically, this dns server corresponding for each ISP can be distinguished Being arranged in each ISP link, further, these domain name mappings can be asked warp respectively by gateway device Corresponding ISP link routes to dns server corresponding to each ISP.
In the another kind of detailed description of the invention of S204, DNS corresponding to each ISP can be would correspond to respectively The domain name mapping request of server sends to fire wall;Trigger fire wall corresponding by corresponding respectively to each ISP The domain name mapping request of dns server, routes to corresponding ISP link, so that corresponding to each ISP pair The domain name mapping request of the dns server answered sends to DNS corresponding for each ISP through corresponding ISP link Server.
In the specific implementation, local dns server can generate corresponding domain name solution respectively for each ISP Analysis request, and asynchronous transmission is to fire wall;By fire wall, these domain name mappings request is routed to each respectively again The dns server that ISP is corresponding.Specifically, this dns server corresponding for each ISP can be respectively provided with In each ISP link, further, fire wall can be by these domain name mappings request respectively through corresponding ISP link routes to the dns server that each ISP is corresponding.
In the specific implementation, corresponding for each ISP dns server can be the special DNS that each ISP disposes Server.But, inventor finds, if using the special dns server that each ISP disposes, and may There will be domain name access to be held as a hostage the situation to ISP advertisement page, at this point it is possible to set in each ISP link Put recurrence dns server corresponding for each ISP domain name is resolved.Specifically, can be respectively respectively ISP link arranges one or more recurrence dns server.Such as, recurrence is set in Netcom's link Dns server 103a, arranges recursion server 103b etc. in telecommunication link.
S205, each recurrence dns server is asked to corresponding root server sending domain name analysis, until obtaining To analysis result;
In the specific implementation, each recurrence dns server can use conventional domain name mapping of the prior art Technology is to IP address corresponding to root server recursive query domain name, and the application is not repeated herein.
In the specific implementation, recurrence dns server 103a, 103b can also have the function of shunting, i.e. When receiving domain name mapping request, it can be determined that the IP address of the root server that domain name mapping request is corresponding Whether meeting predetermined condition, such as, whether the IP address of the root server that domain name mapping request is corresponding is positioned at Abroad;And the domain name mapping request that Target IP is overseas IP is sent to private server by dedicated tunnel 104, private server 104 it is forwarded to target root server;By the domain name solution that Target IP is domestic IP Analysis request is sent to root server by local network interface card.In the specific implementation, private server 104 can be It is positioned at overseas server.
In the specific implementation, when recurrence dns server receives domain name mapping request, can sentence further Whether the IP address of the root server that disconnected domain name analysis request is corresponding meets predetermined condition;If it is satisfied, Then the domain name analysis request dedicated tunnel through pre-setting is sent to described root server;Specifically, Described predetermined condition includes that the IP address of described root server is positioned at predetermined IP address range.If no Meet, then this domain name mapping request is sent to this root server through local network interface card.
Specifically, recurrence dns server can be by the domain name analysis request special tunnel through pre-setting Road sends to the private server pre-set;Wherein, the IP address of described private server is positioned at described In predetermined IP address range;Trigger the described private server IP address according to described root server, will Domain name analysis request sends to described root server.In the specific implementation, this private server can be used In this domain name mapping request is forwarded to root server.
S206, analysis result is returned local dns server by each recurrence dns server;
S207, local dns server receive each recurrence dns server return analysis result after, Determine corresponding analysis result according to predetermined policy, and return analysis result to equipment.
After receiving the analysis result that each recurrence dns server returns, local dns server can enter One step determines corresponding analysis result according to predetermined policy.Specifically, this predetermined policy can include multiple plan Slightly, such as, this predetermined policy can be the DNS that the ISP link chosen and currently connect minimum number is corresponding Analysis result that server returns, can be to select the ISP link being currently accessed bandwidth accounting minimum corresponding The analysis result that dns server returns, it is also possible to be to select the cheapest ISP link of access corresponding The analysis result etc. that dns server returns.
Should be appreciated that before S207, it is also possible to farther include to receive the step of user setup predetermined policy Suddenly.In the specific implementation, the interface for users that arranges that can provide a user with predetermined policy selects, it is also possible to Receive the predetermined policy that user is arranged by script file.
Should be appreciated that before S207, it is also possible to farther include Real-time Collection or adopt with predetermined period Collect the step of the relevant parameter of this predetermined policy.Such as, when the connection quantity that predetermined policy is each ISP link Time, this local dns server can be in real time or to obtain the connection quantity of each ISP link with predetermined period; When the access bandwidth ratio that predetermined policy is each ISP link, this local dns server can in real time or The access bandwidth ratio of each ISP link is obtained with predetermined period;Or, when predetermined policy is each ISP link Access price time, local dns server in real time or can obtain the connecing of each ISP link with predetermined period Enter price.
Such as, when local dns server receives what user sent, carrywww.baidu.comDomain name During analysis request, the recurrence dns server sending domain name analysis in telecommunication link and Netcom's link respectively Request, and it is respectively received the analysis result of the recurrence dns server return from telecommunication link 220.181.18.155, and the analysis result that the recurrence dns server in Netcom's link returns 220.181.18.145;Then also according to the strategy pre-set, it is judged that Netcom's link connects minimum number, Then return, to user, the IP address 220.181.18.145 that corresponding Netcom link is corresponding.
In the specific implementation, local dns server can preserve this analysis result further.Specifically Ground, the analysis result of this domain name with corresponding each bar ISP link can be increased to each domain name and IP address, The corresponding relation of ISP link.
So far, the process of analysis that there is not domain name to be resolved in local dns server is over.
Using the domain name analytic method in the embodiment of the present application, the request that translates domain names into is through corresponding ISP link It is respectively sent to dns server corresponding to multiple ISP, and corresponding from the plurality of ISP according to predetermined policy The address that returns of dns server in determine analysis result such that it is able to according to predetermined policy will load all Weighing apparatus is to multiple ISP links, it is achieved the load balancing of multiple ISP links.
Based on same inventive concept, the embodiment of the present application additionally provides a kind of domain name mapping device, due to this The principle that device solves problem is similar to the method that the embodiment of the present application two is provided, the therefore enforcement of this device May refer to the enforcement of method, repeat no more in place of repetition.
Embodiment three
Fig. 3 is the structural representation of domain name mapping device shown in the embodiment of the present application three.
As it is shown on figure 3, according to domain name mapping device 300 shown in the embodiment of the present application three, including: first connects Receiving module 301, be used for receiving domain name mapping request, this domain name mapping request includes the domain name that request accesses; First sending module 302, for when not preserving address corresponding to this domain name, sends out this domain name mapping request Deliver to each dns server corresponding for ISP ISP;Receive and preserve module 303, using Address is respectively resolved in what the dns server that reception is corresponding with preserving each ISP returned, and by each parsing address As the address that this domain name is corresponding;Determine module 304, when the address corresponding in this domain name of preservation, root Determine corresponding analysis result according to predetermined policy, and return this analysis result.
In the specific implementation, this first receiver module 301, receive and preserve module 303 and determine module 304 Can correspond to the domain name mapping function of local dns server, the first sending module 302 can correspond to The DNS proxy function of local dns server.
Alternatively, the first sending module specifically may be used for would correspond to DNS clothes corresponding for each ISP respectively The domain name mapping request of business device sends to gateway device;Trigger gateway device and will correspond respectively to each ISP correspondence The domain name mapping request of dns server, route to corresponding ISP link, so that corresponding to each ISP The domain name mapping request of corresponding dns server sends corresponding to each ISP through corresponding ISP link Dns server.
Alternatively, the first sending module specifically for: would correspond to DNS service corresponding to each ISP respectively The domain name mapping request of device sends to fire wall;Trigger the DNS that fire wall is corresponding by corresponding respectively to each ISP The domain name mapping request of server, routes to corresponding ISP link, so that corresponding corresponding to each ISP The domain name mapping request of dns server sends to DNS service corresponding for each ISP through corresponding ISP link Device.
Alternatively, dns server corresponding for each ISP includes the dns server that each ISP disposes, or, The recurrence dns server corresponding with each ISP.
Alternatively, corresponding for each ISP dns server includes the recurrence dns server corresponding with each ISP Time, also include according to the device of the embodiment of the present application: judge module, be positioned at recurrence dns server, use In when receiving domain name mapping request, it is judged that the IP address of the root server that domain name mapping request is corresponding is full Foot predetermined condition;Second sending module, is positioned at recurrence dns server, is used for translating domain names into request warp The dedicated tunnel pre-set sends to root server, and wherein, predetermined condition includes the IP of described root server Address is positioned at predetermined IP address range.
In the specific implementation, this second sending module specifically may include that transmission submodule, for by domain name The analysis request dedicated tunnel through pre-setting sends to the private server pre-set;Wherein, Special clothes The IP address of business device is positioned at predetermined IP address range;Triggers module, is used for triggering private server IP address according to root server, the request that translates domain names into sends to root server.
Optionally it is determined that module, specifically include: inquiry submodule, for inquiring about corresponding multiple of this domain name Destination address, wherein, the plurality of destination address corresponds to multiple ISP links;Link determines submodule, uses In determining an ISP link according to predetermined policy in the plurality of ISP link;Determining submodule, being used for will The destination address that oneth ISP link is corresponding, is defined as corresponding analysis result.
Alternatively, this predetermined policy includes: the connection quantity of each ISP link, the access band of each ISP link Wide ratio or the access price of each ISP link.
Using the domain name mapping device in the embodiment of the present application, the request that translates domain names into is through corresponding ISP link It is respectively sent to dns server corresponding to multiple ISP, and corresponding from the plurality of ISP according to predetermined policy The address that returns of dns server in determine analysis result such that it is able to according to predetermined policy will load all Weighing apparatus is to multiple ISP links, it is achieved the load balancing of multiple ISP links.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or meter Calculation machine program product.Therefore, the application can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the application can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The application is with reference to method, equipment (system) and the computer program product according to the embodiment of the present application The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the application, but those skilled in the art once knowing base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the application scope.
Obviously, those skilled in the art can carry out various change and modification without deviating from this Shen to the application Spirit and scope please.So, if the application these amendment and modification belong to the application claim and Within the scope of its equivalent technologies, then the application is also intended to comprise these change and modification.

Claims (19)

1. a domain name analytic method, it is characterised in that including:
Home domain name resolves dns server and receives domain name mapping request, and domain name analysis request includes please Seek the domain name of access;
When not preserving address corresponding to domain name, by domain name analysis request through corresponding ISP link It is respectively sent to each dns server corresponding for ISP ISP;And receive and preserve each ISP What corresponding dns server returned respectively resolves address, and using corresponding as domain name for each parsing address Address;
When the address that preservation domain name is corresponding, determine corresponding analysis result according to predetermined policy, and return Return described analysis result.
Method the most according to claim 1, it is characterised in that by domain name analysis request through phase The ISP link answered is respectively sent to dns server corresponding to each ISP, specifically includes:
The domain name mapping request that would correspond to dns server corresponding for each ISP respectively sends to gateway device;
Trigger gateway device the domain name mapping corresponding respectively to dns server corresponding for each ISP to be asked, Route to corresponding ISP link, so that the domain name mapping corresponding to dns server corresponding for each ISP please Ask and send to dns server corresponding for each ISP through corresponding ISP link.
Method the most according to claim 1, it is characterised in that by domain name analysis request through phase The ISP link answered is respectively sent to dns server corresponding to each ISP, specifically includes:
The domain name mapping request that would correspond to dns server corresponding for each ISP respectively sends to fire wall;
Trigger fire wall the domain name mapping corresponding respectively to dns server corresponding for each ISP to be asked, road By to corresponding ISP link, so that the domain name mapping corresponding to dns server corresponding for each ISP is asked Send to dns server corresponding for each ISP through corresponding ISP link.
Method the most according to claim 1, it is characterised in that the dns server that each ISP is corresponding The special dns server disposed including each ISP, or, the recurrence dns server corresponding with each ISP.
Method the most according to claim 1, it is characterised in that the dns server that each ISP is corresponding During including corresponding with each ISP recurrence dns server, described method also includes:
When recurrence dns server receives domain name analysis request, it is judged that domain name analysis request pair The IP address of the root server answered meets predetermined condition;
The domain name analysis request dedicated tunnel through pre-setting is sent to described root server, wherein, Described predetermined condition includes that the IP address of described root server is positioned at predetermined IP address range.
Method the most according to claim 5, it is characterised in that by domain name analysis request through pre- The dedicated tunnel first arranged sends to described root server, specifically includes:
The domain name analysis request dedicated tunnel through pre-setting is sent in advance by recurrence dns server The private server arranged;Wherein, the IP address of described private server is positioned at described predetermined IP address In the range of;
Trigger the described private server IP address according to described root server, by domain name analysis request Send to described root server.
Method the most according to claim 1, it is characterised in that determine accordingly according to predetermined policy Analysis result, specifically includes:
Multiple destination addresses that described local dns server inquiry domain name is corresponding are wherein, described many Individual destination address corresponds to multiple ISP links;
In the plurality of ISP link, an ISP link is determined according to predetermined policy;
And by destination address corresponding for a described ISP link, as corresponding analysis result.
Method the most according to claim 1, it is characterised in that described predetermined policy includes: each ISP The connection quantity of link, the access bandwidth ratio of each ISP link or the access price of each ISP link.
9. a domain name mapping device, it is characterised in that including:
First receiver module, is located locally dns server, is used for receiving domain name mapping request, described territory Name analysis request includes the domain name that request accesses;
First sending module, for when not preserving address corresponding to domain name, being resolved by domain name please Ask and be respectively sent to each dns server corresponding for ISP ISP through corresponding ISP link;
Receive and preserve module, for receiving each solution that the dns server corresponding with preserving each ISP returns Analysis address, and using each parsing address as address corresponding to domain name;
Determine module, when the address corresponding at preservation domain name, determine accordingly according to predetermined policy Analysis result, and return described analysis result.
Device the most according to claim 9, it is characterised in that the first sending module is specifically for dividing The domain name mapping request that not would correspond to dns server corresponding for each ISP sends to gateway device;Trigger The domain name mapping corresponding respectively to dns server corresponding for each ISP is asked by gateway device, routes to phase The ISP link answered, so that the domain name mapping request warp corresponding to dns server corresponding for each ISP is corresponding ISP link send to dns server corresponding for each ISP.
11. devices according to claim 9, it is characterised in that the first sending module specifically for: The domain name mapping request that would correspond to dns server corresponding for each ISP respectively sends to fire wall;Trigger The domain name mapping corresponding respectively to dns server corresponding for each ISP is asked by fire wall, routes to corresponding ISP link so that corresponding to the domain name mapping request of corresponding for each ISP dns server through corresponding ISP link sends to dns server corresponding for each ISP.
12. devices according to claim 9, it is characterised in that the DNS service that each ISP is corresponding Device includes the dns server that each ISP disposes, or, the recurrence dns server corresponding with each ISP.
13. devices according to claim 9, it is characterised in that the DNS service that each ISP is corresponding When device includes the recurrence dns server corresponding with each ISP, described device also includes:
Judge module, is positioned at recurrence dns server, is used for when receiving domain name analysis request, Judge that the IP address of root server corresponding to domain name analysis request meets predetermined condition;
Second sending module, is positioned at recurrence dns server, is used for domain name analysis request through in advance The dedicated tunnel arranged sends to described root server, and wherein, described predetermined condition includes described root server IP address be positioned at predetermined IP address range.
14. devices according to claim 13, it is characterised in that the second sending module specifically includes:
Send submodule, for sending the domain name analysis request dedicated tunnel through pre-setting in advance The private server arranged;Wherein, the IP address of described private server is positioned at described predetermined IP address In the range of;
Triggers module, for triggering the described private server IP address according to described root server, will Domain name analysis request sends to described root server.
15. devices according to claim 9, it is characterised in that determine module, specifically include:
Inquiry submodule, for inquiring about multiple destination addresses that domain name is corresponding, wherein, the plurality of mesh Mark address is corresponding to multiple ISP links;
Link determines submodule, for determining an ISP according to predetermined policy in the plurality of ISP link Link;
Determine submodule, for by destination address corresponding for a described ISP link, be defined as solving accordingly Analysis result.
16. devices according to claim 9, it is characterised in that described predetermined policy includes: each ISP The connection quantity of link, the access bandwidth ratio of each ISP link or the access price of each ISP link.
17. 1 kinds of domain name analysis system, it is characterised in that including:
Local dns server, is used for receiving domain name mapping request, and this domain name mapping request includes that request is visited The domain name asked;When not preserving address corresponding to this domain name, this domain name mapping is asked through corresponding ISP chain Road is respectively sent to each dns server corresponding for ISP ISP;And receive and preserve each What dns server corresponding for ISP returned respectively resolves address, and each parsing address is corresponding as this domain name Address;When the address that this domain name of preservation is corresponding, determine corresponding analysis result according to predetermined policy, and Return this analysis result;
Gateway device or fire wall, for corresponding respectively to the domain name of dns server corresponding for each ISP Analysis request, routes to corresponding ISP link, so that corresponding to dns server corresponding for each ISP Domain name mapping request sends to dns server corresponding for each ISP through corresponding ISP link;
The dns server that each ISP is corresponding, for asking the domain name mapping from local dns server Carry out domain name mapping, and return corresponding analysis result.
18. systems according to claim 17, it is characterised in that the DNS service that each ISP is corresponding Device is additionally operable to judge whether the IP address of root server corresponding to domain name analysis request meets predetermined bar Part;And when meeting, the domain name analysis request dedicated tunnel through pre-setting is sent to described clothes Business device, wherein, described predetermined condition includes that the IP address of described root server is positioned at predetermined IP address model In enclosing.
19. systems according to claim 17, it is characterised in that also include:
Private server, is connected by dedicated tunnel with described dns server corresponding for each ISP, is used for Receive the domain name mapping from dns server corresponding for each ISP to ask, and be forwarded to corresponding root service Device.
CN201610187729.3A 2016-03-29 2016-03-29 A kind of domain name analytic method, apparatus and system Active CN106067890B (en)

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 true CN106067890A (en) 2016-11-02
CN106067890B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
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
CN107547682A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 IP address recognition methods and device
CN107911499A (en) * 2017-11-28 2018-04-13 北京潘达互娱科技有限公司 Multi-line domain name analytic method and device
CN109660425A (en) * 2018-12-13 2019-04-19 网宿科技股份有限公司 A kind of monitoring method determines method, monitoring device and storage medium
CN109788015A (en) * 2017-11-15 2019-05-21 阿里巴巴集团控股有限公司 Application service invocation system, method and device
CN109981805A (en) * 2017-12-28 2019-07-05 中国移动通信集团山东有限公司 A kind of method and device of domain name mapping
CN110048956A (en) * 2019-05-29 2019-07-23 中国海洋石油集团有限公司 Internetwork link load control system
CN110602270A (en) * 2019-11-01 2019-12-20 北京博睿宏远数据科技股份有限公司 Domain name resolution method and device, computer equipment and storage medium
WO2020103578A1 (en) * 2018-11-21 2020-05-28 Oppo广东移动通信有限公司 Domain name query method, and related product
CN111683139A (en) * 2020-06-05 2020-09-18 北京百度网讯科技有限公司 Method and apparatus 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

Citations (3)

* Cited by examiner, † Cited by third party
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
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
WO2015039475A1 (en) * 2013-09-18 2015-03-26 中兴通讯股份有限公司 Method, server, and system for domain name resolution

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN103051740A (en) * 2012-12-13 2013-04-17 上海牙木通讯技术有限公司 Domain name resolution method, domain name system (DNS) server and domain name resolution system
WO2015039475A1 (en) * 2013-09-18 2015-03-26 中兴通讯股份有限公司 Method, server, and system for domain name resolution

Cited By (15)

* Cited by examiner, † Cited by third party
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
CN107547682A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 IP address recognition methods and device
CN109788015A (en) * 2017-11-15 2019-05-21 阿里巴巴集团控股有限公司 Application service invocation 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
CN109981805A (en) * 2017-12-28 2019-07-05 中国移动通信集团山东有限公司 A kind of method and device of domain name mapping
US11563712B2 (en) 2018-11-21 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for domain name query, electronic device, and storage medium
WO2020103578A1 (en) * 2018-11-21 2020-05-28 Oppo广东移动通信有限公司 Domain name query method, and related product
CN109660425A (en) * 2018-12-13 2019-04-19 网宿科技股份有限公司 A kind of monitoring method determines method, monitoring device 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
CN110602270A (en) * 2019-11-01 2019-12-20 北京博睿宏远数据科技股份有限公司 Domain name resolution method and device, computer equipment and storage medium
CN111683139A (en) * 2020-06-05 2020-09-18 北京百度网讯科技有限公司 Method and apparatus 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

Also Published As

Publication number Publication date
CN106067890B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN106067890A (en) A kind of domain name analytic method, Apparatus and system
US11283715B2 (en) Updating routing information based on client location
US20200195753A1 (en) Request routing utilizing client location information
EP2356577B1 (en) Request routing and updating routing information utilizing client location information
US9712422B2 (en) Selection of service nodes for provision of services
EP2482525B1 (en) Method and apparatus for determining a server which should respond to a service request
CN106230942B (en) A kind of method and system of time source access
CN103312716B (en) A kind of method and system accessing internet information
CN107431727A (en) Anycast and the flow transmission of the mapping based on terminal user are used in overlay network
WO2017177437A1 (en) Domain name resolution method, device, and system
CN102833361B (en) Terminating connections and selecting target source devices for resource requests
CN105939399A (en) Domain name resolution method and device
CN112333299B (en) Domain name resolution method, configuration method and equipment
CN103825923A (en) Resource download method, business server and mobile phone client-terminal
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
CN110225150A (en) Communication means, system and storage medium between different network protocol
CN107911499A (en) Multi-line domain name analytic method and device
CN110932983B (en) TCP load balancing method, device, equipment and medium
CN106254576A (en) A kind of message forwarding method and device
CN102957668B (en) The method and access service router of positional information are obtained in mark net
US11909920B2 (en) Converged voicemail provisioning and FQDN based voicemail call routing

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