WO2019061522A1 - Domain name resolution method, client, edge node, and domain name resolution system - Google Patents

Domain name resolution method, client, edge node, and domain name resolution system Download PDF

Info

Publication number
WO2019061522A1
WO2019061522A1 PCT/CN2017/105083 CN2017105083W WO2019061522A1 WO 2019061522 A1 WO2019061522 A1 WO 2019061522A1 CN 2017105083 W CN2017105083 W CN 2017105083W WO 2019061522 A1 WO2019061522 A1 WO 2019061522A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
name resolution
http
server
client
Prior art date
Application number
PCT/CN2017/105083
Other languages
French (fr)
Chinese (zh)
Inventor
王华涛
Original Assignee
深圳前海达闼云端智能科技有限公司
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 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to CN201780003273.3A priority Critical patent/CN108353095B/en
Priority to PCT/CN2017/105083 priority patent/WO2019061522A1/en
Publication of WO2019061522A1 publication Critical patent/WO2019061522A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a domain name resolution method, a client, an edge node, and a domain name resolution system.
  • Http(s) domain name server for domain name resolution has become more and more widely used.
  • Many Internet operators support the use of http(s) for domain name resolution.
  • the Http(s) domain name server is a mobile application that uses the HTTP protocol to send a domain name resolution request to the Http(s) domain name server, which replaces the traditional way of initiating a resolution request to the operator LocalDNS based on the DNS protocol. Therefore, it can avoid the domain name caused by LocalDNS.
  • Hijacking and cross-network access issues solve the problems caused by abnormal domain name resolution in mobile Internet services.
  • the conventional technology has at least the following problem: the node that returns the IP to the client is not necessarily the optimal node.
  • centralized scheduling is a more common scheduling method. Because the Http(s) domain name server cannot obtain the running status and node usage of each global service node, the simple centralized scheduling results in inaccurate domain name resolution.
  • An object of the present application is to provide a domain name resolution method, a client, an edge node, and a domain name resolution system, which solve the technical problem that the analysis result of the domain name is not accurate enough in the conventional technology.
  • the embodiment of the present application provides a domain name resolution method, which is applied to a client, and the method includes: sending a first Http(s) domain name resolution request to a central domain name server, where the first Http(s) And receiving, by the central domain name server, a jump status code and a jump URL, where the domain name to be resolved is a distributed type, and the jump URL points to an edge node serving the area where the client is located;
  • the jump status code sends a second Http(s) domain name resolution request to the edge node, so that the edge node parses the IP address corresponding to the to-be-resolved domain name according to the second Http(s) domain name resolution request.
  • the embodiment of the present application provides a domain name parsing method, which is applied to an edge node.
  • the method includes: receiving a second Http(s) domain name resolution request sent by the client; parsing an IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and returning the IP address.
  • the embodiment of the present application provides a domain name resolution method, which is applied to a central domain name server, and the method includes: receiving a first Http(s) domain name resolution request sent by a client, the first Http(s) The domain name resolution request includes a domain name to be resolved; when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, returning a jump status code and a jump URL to the client, the jump URL Point to the edge node that serves the area where the client is located.
  • an embodiment of the present application provides a domain name resolution apparatus, which is applied to a client.
  • the domain name resolution device includes: a first sending module, configured to send a first Http(s) domain name resolution request to the central domain name server; and a first receiving module, configured to: in the first Http(s) domain name resolution request to be parsed
  • the domain name belongs to a distributed type
  • the jump status code and the jump URL returned by the central domain name server are received, and the jump URL points to an edge node serving the area where the client is located
  • the second sending module is configured to The jump status code sends a second Http(s) domain name resolution request to the edge node, so that the edge node parses the IP corresponding to the to-be-resolved domain name according to the second Http(s) domain name resolution request.
  • the second receiving module is configured to receive the IP address returned by the edge node.
  • the embodiment of the present application provides a domain name resolution device, which is applied to an edge node, where the domain name resolution device includes: a third receiving module, configured to receive a second Http(s) domain name resolution request sent by the client;
  • the parsing module is configured to parse an IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
  • the embodiment of the present application provides a domain name resolution device, which is applied to a central domain name server, and the domain name resolution device includes: a fourth receiving module, configured to receive a first Http(s) domain name resolution request sent by a client
  • the first Http(s) domain name resolution request includes a domain name to be resolved
  • the first returning module is configured to: when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, to the client
  • the terminal returns a jump status code and a jump URL, and the jump URL points to an edge node serving the area where the client is located.
  • the beneficial effect of the present application is that, when resolving a domain name, first, the client sends a first Http(s) domain name resolution request to the central domain name server, so that the central domain name server returns a jump URL according to the first Http(s) domain name resolution request.
  • Jump status code the first Http(s) domain name resolution request includes the domain name to be resolved.
  • the client sends the second Http(s) domain name to the edge node pointed to by the jump URL according to the jump status code. Parsing the request, so that the edge node parses the IP address corresponding to the domain to be resolved according to the second Http(s) domain name resolution request, and returns an IP address. Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
  • FIG. 1 is a schematic structural diagram of a conventional domain name resolution according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another conventional domain name resolution architecture provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a domain name resolution system according to an embodiment of the present application.
  • FIG. 4 is a signaling diagram of a domain name resolution method according to an embodiment of the present application.
  • FIG. 5 is a signaling diagram of a method for parsing a domain name of an edge node according to an embodiment of the present application
  • FIG. 6 is a schematic structural diagram of a client according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a domain name resolution apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a domain name resolution apparatus according to another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a domain name resolution apparatus according to still another embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a domain name resolution apparatus according to still another embodiment of the present application.
  • FIG. 11 is a schematic flowchart diagram of a domain name resolution method according to an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of a domain name resolution method according to another embodiment of the present application.
  • FIG. 13 is a schematic flowchart diagram of a domain name parsing method according to still another embodiment of the present application.
  • FIG. 14 is a schematic flowchart diagram of a method for analyzing a domain name according to still another embodiment of the present application.
  • Figure 15 is a schematic flow chart of step 82 in Figure 4.
  • FIG. 16 is a schematic flowchart diagram of a method for analyzing a domain name according to still another embodiment of the present application.
  • Domain Name is a specific one on the Internet consisting of a string of characters separated by "dot".
  • the name of a computer or group of computers for example, the domain name is www.ddd.com.
  • an Internet Service Provider ISP
  • ISP Internet Service Provider
  • IP address corresponding to the domain name www.ddd.com is 11.22.33.44.
  • the domain name is in a tree structure.
  • the domain name server to the direct service DNS server (Domain Name Server) is divided into multiple levels.
  • www.heli.edu.cn is a domain name.
  • the domain name is divided into four levels. It is the host name "www”, the third-level domain name is "heli”, the second-level domain name is "edu”, and the top-level domain name is "cn”.
  • the TCP/IP protocol completes the connection between the two parties based on the IP address. Therefore, when an Internet device communicates on the network, it can only recognize an IP address such as "196.168.31.21" but cannot recognize the domain name. Moreover, for the user, it is impossible to accurately remember the website with more than 10 IP addresses. Therefore, when the user visits the website, it is more to enter the domain name in the address bar of the browser to complete the acquisition of the desired content page. In the process of obtaining the desired content page, the DNS server can "translate" the domain name accessed by the user into a corresponding IP address, and then retrieve the desired content page from the IP address again.
  • TCP/IP protocol Transmission Control Protocol/Internet Protocol
  • a DNS server is a computer and network service naming system organized into a domain hierarchy for use in a TCP/IP network. The services it provides are used to translate host names and domain names into IP addresses.
  • the DNS server includes an authoritative DNS and a non-authoritative DNS.
  • the authoritative DNS has a mapping corresponding to the DNS request in the database.
  • the non-authoritative DNS has no corresponding mapping, and the corresponding cache query result exists.
  • FIG. 1 is a schematic structural diagram of a conventional domain name resolution according to an embodiment of the present application.
  • the architecture 10 includes Guangdong Mobile User 11, Shanghai Telecom User 12, Guangdong Mobile LDNS13 (Local Operator Domain Name Service, Local DNS), Shanghai Telecom LDNS14, and Authoritative DNS 15.
  • the Guangdong mobile subscriber 11 can use the mobile terminal to send a domain name resolution request to the Guangdong Mobile LDNS 13, for example, the domain name resolution request includes the domain name www.dd.com.
  • the Shanghai Telecom subscriber 12 can use the mobile terminal to send a domain name resolution request to the Shanghai Telecom LDNS 14, for example, the domain name resolution request includes the domain name www.ff.com.
  • both Guangdong Mobile LDNS13 and Shanghai Telecom LDNS14 cache corresponding domain name resolution results.
  • Guangdong Mobile LDNS13 or Shanghai Telecom LDNS14 receives a domain name resolution request, it retrieves the cache. Record, query whether the cache has a domain name resolution result. If cached, Guangdong Mobile LDNS13 or Shanghai Telecom LDNS14 directly returns the domain name resolution result to Guangdong Mobile User 11 or Shanghai Telecom User 12. If not cached, it initiates a DNS recursive resolution request to the authoritative DNS 15 to enable the authoritative DNS 15 to query the corresponding domain name resolution result, and will return the domain name resolution result to the Guangdong mobile user 11 or the Shanghai telecommunications user 12.
  • the traditional domain name resolution process has certain defects.
  • the LDNS cache has domain name resolution results, it does not initiate a DNS recursive resolution request to the authoritative DNS. If the domain name is served through the http(s) protocol or other ports, User access will fail. For example: payment service, game connection to the connect server service through a designated port.
  • the operation and maintenance level of the LDNS is uneven, and there is a problem that the cache server fails and the user access is abnormal.
  • the LDNS itself does not perform domain name recursive resolution, but forwards the domain name resolution request to the recursive DNS of other LDNS, it will cause the source IP of the domain name resolution request received by the authoritative DNS to become the IP of other LDNS. Eventually, user traffic is directed to the wrong I DC, and user access is slow.
  • FIG. 2 is a schematic diagram of another conventional domain name resolution architecture according to an embodiment of the present application.
  • the traditional domain name resolution architecture 20 includes a user terminal 21 and an HTTP domain name server 22, wherein the Http(s) domain name server 22 supports domain name resolution of the Http(s) protocol.
  • the user terminal 21 initiates a domain name resolution request to the HTTP (S) domain name server, wherein the IP address of the user terminal 21 is 202.106.2.2.
  • the Http(s) domain name server 22 finds the IP address corresponding to the domain name according to the domain name resolution request: 4.3.2.2.
  • the Http(s) protocol is used for domain name resolution, which can avoid the problem of domain name hijacking and cross-network access caused by LocalDNS, solve the problem caused by the abnormal domain name resolution in the mobile Internet service, and the positioning is relatively accurate, and the analysis is relatively normal. .
  • the node that the Http(s) domain name server returns to the client's IP is not necessarily the optimal node.
  • centralized scheduling is a more common scheduling method. Because the Http(s) domain name server cannot obtain the running status and node usage of each global service node, the simple centralized scheduling results in inaccurate domain name resolution.
  • FIG. 3 is a schematic diagram of a domain name resolution system according to an embodiment of the present application.
  • FIG. 4 is a signaling diagram of a domain name resolution method according to an embodiment of the present application.
  • the system 30 includes a client 31, a central domain name server 32, a mail server 33, and an edge node 34.
  • the client 31 can communicate with the central domain name server 32, the mail server 33, the edge node 34, and the mail server 35, respectively, by wire or wirelessly.
  • the wired transmission medium may be an optical fiber, a coaxial cable, a telephone line, a network cable, or the like
  • the wireless mode may be a wireless personal area network (WPAN), a wireless local area network (WLAN), and a cellular network (Cellular Network), wherein the wireless individual
  • the local area network includes, for example, infrared communication (IRDA), Bluetooth, ZigBee
  • the wireless local area network includes, for example, the 802.11b standard, the 802.11a standard, and the 802.11g standard
  • the cellular network includes, for example, GSM, CDMA, TD-SCDMA, WCDMA, and CDMA2000.
  • the central domain name server 32, the mail server 33, and the edge node 34 all support the resolution of the Http(s) domain name.
  • the domain name resolution method includes:
  • Step 301 During communication, the client 31 sends a first Http(s) domain name resolution request to the central domain name server 32.
  • the first Http(s) domain name resolution request includes a domain name to be resolved.
  • Step 302 The central domain name server 32 receives the first Http(S) domain name resolution request sent by the client, and determines whether the domain name service type of the domain name to be resolved belongs to a distributed type according to the source IP address of the client or the IP address in the parameter.
  • Step 303 If the domain name service type of the domain name to be resolved belongs to a non-distributed type, the central domain name server 32 returns the analysis result to the client 31 according to the first Http(s) domain name resolution request.
  • Step 304 The client 31 initiates an application content request to the corresponding server according to the analysis result.
  • the client 31 initiates a mailbox domain name resolution request to the central domain name server 32, and the central domain name server 32 parses out that the mailbox domain name resolution request belongs to a non-distributed type, that is, the mail application content requested by the client 31 is not distributedly stored in each Within the class application server, but stored in the proprietary mail server 33, the central domain name server 32 sends the parsing result to the client 31, so that the client 31 directly initiates the mail application content to the mail server 33 based on the parsing result.
  • Step 305 If the domain name service type of the domain name to be resolved belongs to a distributed type, the central domain name server 32 returns a jump status code and a jump URL (Uniform Resource Locator) to the client 31 according to the first Http(s) domain name resolution request.
  • a jump URL Uniform Resource Locator
  • the central domain name server 32 dynamically generates a jump URL, and returns a jump status code to the client 31, and populates the jump URL into the Location field of the http(s) response, wherein the http(s) The response is a response of the central domain name server 32 in response to the first Http(s) domain name resolution request.
  • the jump URL points to the edge node 34 serving the area where the client 31 is located
  • the jump status code is used to instruct the client 31 to re-jump to the edge node 34 pointed to by the jump URL, the jump state.
  • the code may include a status code such as 302 redirect, and the like. 302 redirection means that the response corresponding to the current request can be found on another URI, and the client should access that resource by means of GET.
  • Step 306 When the domain name service type of the domain name to be resolved belongs to a distributed type, and the client 31 receives the http(s) response returned by the central domain name server 32, the client 31 points to the jump URL according to the jump status code.
  • the edge node 34 sends a second Http(s) domain name resolution request.
  • Step 307 The edge node 34 parses the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request.
  • Step 308 the edge node 34 returns an IP address to the client 31.
  • the edge node 34 knows the state of each content service node, the analysis result is more accurate, and therefore, it can recommend an optimal IP address for the client.
  • the edge node 34 includes an edge domain name server 341, an application server 342, and a scheduling server 343.
  • the client 31 communicates with the edge domain name server 341 and the application server 342, respectively, by wire or wirelessly, and the dispatch server 343 communicates with the application server 342.
  • the edge name server 341 can provide the client with a channel to enter the network and communicate with other servers.
  • the edge name server 341 is a group of servers that perform a single function, such as a firewall server, a cache server, a load balancing server, and the like.
  • the edge domain name server 341 is located at the edge node and is capable of providing a server based on the Http(s) protocol domain name resolution function.
  • the edge domain name server 341 communicates with the dispatch server 342, obtains an IP address by pushing or pulling, and returns the IP address to the client 31 in an HTTP response manner.
  • the application server 342 can provide the client 31 with a server that applies content services.
  • the application server 342 receives the resource query request sent by the scheduling server 342, the application server 342 queries the resource usage of the resource according to the resource query request, and feeds back the resource usage to the scheduling server 343, for example, the central processing unit (Central Processing) Unit, CPU), memory, bandwidth, number of connections, etc. Resource usage information.
  • the central processing unit Central Processing
  • CPU Central Processing
  • the dispatch server 343 receives feedback of the resource usage of the application server 342, according to the settings
  • the scheduling rule determines the IP address of the application server 342 that can provide the optimal service, and dynamically recommends to the edge domain name server 341, wherein the recommended manner may be active sending and/or passive sending.
  • the edge domain name server 341 or the application server 342 or the scheduling server 343 may be a physical server or a logical server virtualized by multiple physical servers, or may be interconnected.
  • FIG. 5 is a signaling diagram of a method for parsing a domain name of an edge node according to an embodiment of the present application.
  • the domain name resolution method includes:
  • Step 501 When the client 31 receives the jump status code and the jump URL returned by the central domain name server 32, the client 31 sends the second Http(s) domain name resolution request to the edge domain name server 341 again.
  • Step 502 The edge domain name server 341 triggers the scheduling server 343 according to the second Http(s) domain name resolution request.
  • Step 503 the dispatch server 343 accesses the application server 342 to obtain the resource usage of the application server 342.
  • Step 504 Each application server 342 feeds back the respective resource usage status to the scheduling server 343.
  • the scheduling server 343 feeds back the status of the application server 342 in the deactivated state to the edge.
  • the edge domain name server 341 accesses another preset edge node according to the second Http(s) domain name resolution request until accessing the preset edge node that can return the IP address to the client 31.
  • the additional preset edge node is adjacent to the previous preset edge node.
  • Step 505 When resources of the application servers 342 in the edge node 34 are available, the scheduling server 343 determines an IP address of the application server 342 capable of providing an optimal service according to a preset scheduling rule.
  • Step 506 The scheduling server 343 returns the IP address corresponding to the domain name to be resolved to the edge domain name server 341.
  • Step 507 The edge domain name server 341 returns the IP address corresponding to the domain name to be resolved to the client 31.
  • Step 508 The client 31 sends a content service request to the application server 342 pointed to by the IP address.
  • Step 509 The corresponding application server 342 returns a corresponding content service to the client 31 according to the content service request.
  • the edge domain name server 341 dynamically resolves the domain name and receives the optimal IP address fed back by the scheduling server 343, thereby recommending the optimal IP address for the client 31.
  • the embodiment of the present application further provides a client.
  • the client 31 includes at least one processor 311 and a memory 312 communicatively coupled to the at least one processor 311; wherein the memory 312 stores a memory 312 that is executable by the at least one processor 311.
  • the edge domain name server 341 or the central domain name server 32 may adopt a hardware architecture as shown in FIG. 6 to complete the control logic of the corresponding domain name resolution, and details are not described herein again.
  • the embodiment of the present application provides a domain name resolution device, which is applied to a client.
  • the domain name resolution device is a software system, which can be stored in the client 31 illustrated in FIG. 6.
  • the domain name resolution device includes a plurality of instructions stored in a memory, the processor can access the memory, and invoke the instructions to execute to complete the domain name resolution device.
  • the domain name resolution device 40 includes a first sending module 41, a first receiving module 42, a second sending module 43, and a second receiving module 44.
  • the first sending module 41 is configured to send a first Http(s) domain name resolution request to the central domain name server;
  • the first receiving module 42 is configured to receive a jump status code and a jump URL returned by the central domain name server when the domain to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, and the jump URL points to serve the client.
  • the second sending module 43 is configured to send a second Http(s) domain name resolution request to the edge node according to the hop state code, so that the edge node parses the IP corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request. Address and return the IP address.
  • the second receiving module 44 is configured to receive an IP address returned by the edge node.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
  • the domain name resolution apparatus 40 further includes: a jump module 45, wherein the jump module 45 is configured to belong to the non-distributed type of the domain name to be resolved in the first Http(s) domain name resolution request. Then, according to the Http(s) domain name resolution response returned by the central domain name server, jump to the corresponding server.
  • the domain name resolution device 40 further includes: a third sending module 46, configured to send a content service request to an edge node pointed by the IP address.
  • the jump status code is a 302 redirected status code.
  • the embodiment of the present application provides a domain name resolution apparatus, which is applied to an edge node.
  • the domain name resolution device is a software system, which can be stored in the stated edge domain name server.
  • the domain name resolution device includes a plurality of instructions stored in a memory, the processor can access the memory, and invoke the instructions to execute to complete the domain name resolution device.
  • the domain name resolution device 50 includes a third receiving module 51 and a parsing module 52.
  • the third receiving module 51 is configured to receive a second Http(s) domain name resolution request sent by the client;
  • the parsing module 52 is configured to parse the IP address corresponding to the domain to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
  • the edge node includes an edge domain name server, a scheduling server, and an application server.
  • the parsing module 52 is configured to: the edge domain name server triggers the scheduling server to access the application server according to the second Http(s) domain name resolution request; and when the resource usage of the application server belongs to the available state, the scheduling server uses the resource usage of the application server and the pre- Set the scheduling rule to return the IP address corresponding to the domain name to be resolved to the edge domain name server; the edge domain name server returns the IP address to the client.
  • the manner in which the scheduling server returns the IP address corresponding to the domain name to be resolved includes active sending and/or passive sending.
  • the parsing module 52 is further configured to: when the resource usage of the application server belongs to the deactivated state, the edge domain name server returns the IP address according to the second Http(s) domain name resolution request until the access to the client Another preset edge node.
  • the embodiment of the present application provides a domain name resolution device, which is applied to a central domain name server.
  • the domain name resolution device is a software system that can be stored in the central name server that is described.
  • the domain name resolution device includes a plurality of instructions stored in a memory, the processor can access the memory, and invoke the instructions to execute to complete the domain name resolution device.
  • the domain name resolution device 60 includes a fourth receiving module 61 and a first returning module 62.
  • the fourth receiving module 61 is configured to receive a first Http(s) domain name resolution request sent by the client, where the first Http(s) domain name resolution request includes a domain name to be resolved.
  • the first returning module 62 is configured to return a jump status code and a jump URL to the client when the domain to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, and the jump URL points to the area where the client is located. Edge node.
  • the jump status code is the 302 redirected status code.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
  • the domain name resolution device 60 further includes a second returning module 63, and the second returning module 63 is configured to: the domain name to be resolved in the first Http(s) domain name resolution request belongs to a non-distributed domain.
  • the Http(s) domain name resolution response is returned to the client, so that the client jumps to the corresponding server.
  • the device embodiment and the foregoing embodiments are based on the same concept, and the content of the device embodiment may refer to the foregoing embodiments, and the details are not described herein.
  • the embodiment of the present application provides a plurality of domain name resolution methods (refer to the domain name resolution method described in the following embodiments).
  • the function of the domain name resolution method of the embodiment of the present application is performed by the software system of the domain name resolution device described above with reference to FIG. 7 or FIG. 8 or FIG. 9 and FIG. 10, which can also be executed by means of a hardware platform.
  • the domain name resolution method can be executed in an electronic device of a suitable type of processor having a computing capability, such as a single chip microcomputer, a digital signal processing (DSP), or the like.
  • the functions corresponding to the domain name resolution method of the following embodiments are stored in the form of instructions on the memory of the client or the edge domain name server or the central domain name server.
  • the processor of the client or the edge name server or the central domain name server accesses the memory, and retrieves and executes the corresponding instructions to implement the functions corresponding to the domain name resolution methods of the following embodiments.
  • the memory is a non-volatile computer readable storage medium and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as the domain name resolution device 40 or the domain name resolution device 50 in the above embodiment. Or the program instruction/module corresponding to the domain name resolution device 60, or the step corresponding to the domain name resolution method of the following embodiment.
  • the processor executes various functional applications and data processing of the domain name resolution device 40 or the domain name resolution device 50 or the domain name resolution device 60 by running non-volatile software programs, instructions, and modules stored in the memory, that is, implementing the above embodiments.
  • the memory may include a high speed random access memory, and may also include a non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the memory optionally includes a memory remotely located relative to the processor, the remote memory being connectable to the processor over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the program instructions/modules are stored in the memory, and when executed by the one or more processors, perform a domain name resolution method in any of the above method embodiments, for example, performing FIG. 11 described in the following embodiments.
  • the steps shown in Fig. 13 or Fig. 14 and Fig. 15 or Fig. 16 are shown.
  • FIG. 11 is a schematic flowchart diagram of a domain name resolution method according to an embodiment of the present application. As shown in FIG. 11, the domain name resolution method 70 includes:
  • Step 71 Send a first Http(s) domain name resolution request to the central domain name server, so that the central domain name server returns the jump status code and the hop when the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a distributed type.
  • Transfer URL the jump URL points to the edge node serving the client's area;
  • Step 72 Send a second Http(s) domain name resolution request to the edge node according to the jump status code, so that the edge node parses the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and returns an IP address. .
  • the jump status code may be a 302 redirected status code.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
  • the domain name resolution method 70 further includes:
  • Step 73 When the domain name to be resolved of the first Http(s) domain name resolution request belongs to a non-distributed type, the Http(s) domain name resolution response returned by the central domain name server is redirected to the corresponding server.
  • the domain name resolution method 70 further includes:
  • Step 74 Send a content service request to an edge node pointed to by the IP address.
  • FIG. 14 is a schematic flowchart diagram of a domain name resolution method according to still another embodiment of the present application.
  • the domain name resolution method 80 includes:
  • Step 81 Receive a second Http(s) domain name resolution request sent by the client.
  • Step 82 Parse the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, therefore, It can recommend the best IP address for the client.
  • the edge node includes an edge domain name server, a scheduling server, and an application server.
  • step 82 includes:
  • Step 821 The edge domain name server triggers the scheduling server to access the application server according to the second Http(s) domain name resolution request.
  • Step 822 Determine whether the resource usage of the application server is in an available state.
  • Step 823 When the resource usage of the application server is in an available state, the scheduling server returns an IP address corresponding to the domain to be resolved to the edge domain name server according to the resource usage of the application server and the preset scheduling rule.
  • Step 823 The edge domain name server returns the IP address to the client.
  • Step 824 When the resource usage of the application server is in the deactivated state, the edge domain name server resolves the request according to the second Http(s) domain name until accessing another preset edge node that can return the IP address to the client.
  • FIG. 16 is a schematic flowchart diagram of a domain name resolution method according to still another embodiment of the present application. As shown in FIG. 16, the domain name resolution method 90 includes:
  • Step 91 Receive a first Http(s) domain name resolution request sent by the client, where the first Http(s) domain name resolution request includes the domain name to be resolved.
  • Step 92 Determine whether the domain name service type of the domain name to be resolved belongs to a distributed type.
  • Step 93 If the domain name service type of the domain name to be resolved belongs to a distributed type, return a jump status code and a jump URL to the client according to the first Http(s) domain name resolution request, and the jump URL points to the area where the client is located.
  • the jump status code is a 302 redirected status code.
  • Step 94 If the domain name service type of the domain name to be resolved belongs to a non-distributed type, return an Http(s) domain name resolution response to the client, so that the client jumps to the corresponding server.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
  • an embodiment of the present application provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer executable instructions, The computer executable instructions are for causing an electronic device to perform the domain name resolution method of any of the above.
  • the edge node Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.

Landscapes

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

Abstract

The present application relates to the technical field of communications, and specifically relates to a domain name resolution method, a client, an edge node, and a domain name resolution system. The domain name resolution method comprises: sending a first Http(s) domain name resolution request to a central domain name server, and when a domain name to be resolved of the first Http(s) domain name resolution request is of a distributed type, receiving a jump status code and a jump URL returned by the central domain name server, the jump URL pointing to serving an edge node of an area where the client is located; sending a second Http(s) domain name resolution request to the edge node according to the jump status code, so that the edge node resolves, according to the second Http(s) domain name resolution request, an IP address corresponding to the domain name to be resolved; and receiving the IP address returned by the edge node. Because the edge node knows the status of each content service node, the resolution result is more accurate. Therefore, an optimal IP address can be recommended for the client.

Description

域名解析方法、客户端、边缘节点及域名解析系统Domain name resolution method, client, edge node and domain name resolution system 技术领域Technical field
本申请涉及通信技术领域,具体涉及一种域名解析方法、客户端、边缘节点及域名解析系统。The present application relates to the field of communications technologies, and in particular, to a domain name resolution method, a client, an edge node, and a domain name resolution system.
背景技术Background technique
在当前的移动互联网技术架构中,使用Http(s)域名服务器进行域名解析得到了越来越广泛的应用。许多互联网运营商都支持使用http(s)的方式进行域名解析。Http(s)域名服务器是移动App使用HTTP协议向Http(s)域名服务器发送域名解析请求,其替代了基于DNS协议向运营商LocalDNS发起解析请求的传统方式,因此,其可以避免LocalDNS造成的域名劫持和跨网访问问题,解决移动互联网服务中域名解析异常带来的困扰。In the current mobile Internet technology architecture, the use of Http(s) domain name server for domain name resolution has become more and more widely used. Many Internet operators support the use of http(s) for domain name resolution. The Http(s) domain name server is a mobile application that uses the HTTP protocol to send a domain name resolution request to the Http(s) domain name server, which replaces the traditional way of initiating a resolution request to the operator LocalDNS based on the DNS protocol. Therefore, it can avoid the domain name caused by LocalDNS. Hijacking and cross-network access issues solve the problems caused by abnormal domain name resolution in mobile Internet services.
申请人在实现本申请的过程中,发现传统技术至少存在以下问题:返回给客户端的IP的节点未必是最优节点。在分布式服务中,集中调度是较为常见的调度方式,由于Http(s)域名服务器未能够得到全局的各个服务节点的运行状况与节点使用情况,单纯的集中调度造成域名的解析结果不够准确。In the process of implementing the present application, the applicant found that the conventional technology has at least the following problem: the node that returns the IP to the client is not necessarily the optimal node. In distributed services, centralized scheduling is a more common scheduling method. Because the Http(s) domain name server cannot obtain the running status and node usage of each global service node, the simple centralized scheduling results in inaccurate domain name resolution.
申请内容Application content
本申请实施例一个目的旨在提供一种域名解析方法、客户端、边缘节点及域名解析系统,其解决了传统技术存在着域名的解析结果不够准确的技术问题。An object of the present application is to provide a domain name resolution method, a client, an edge node, and a domain name resolution system, which solve the technical problem that the analysis result of the domain name is not accurate enough in the conventional technology.
在第一方面,本申请实施例提供一种域名解析方法,应用于客户端,所述方法包括:向中心域名服务器发送第一Http(s)域名解析请求,在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,接收所述中心域名服务器返回的跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点;根据所述跳转状态码向所述边缘节点发送第二Http(s)域名解析请求,以使所述边缘节点根据所述第二Http(s)域名解析请求解析出所述待解析域名对应的IP地址;接收所述边缘节点返回的所述IP地址。In a first aspect, the embodiment of the present application provides a domain name resolution method, which is applied to a client, and the method includes: sending a first Http(s) domain name resolution request to a central domain name server, where the first Http(s) And receiving, by the central domain name server, a jump status code and a jump URL, where the domain name to be resolved is a distributed type, and the jump URL points to an edge node serving the area where the client is located; The jump status code sends a second Http(s) domain name resolution request to the edge node, so that the edge node parses the IP address corresponding to the to-be-resolved domain name according to the second Http(s) domain name resolution request. Receiving the IP address returned by the edge node.
在第二方面,本申请实施例提供一种域名解析方法,应用于边缘节点,所 述方法包括:接收客户端发送的第二Http(s)域名解析请求;根据所述第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向所述客户端返回所述IP地址。In a second aspect, the embodiment of the present application provides a domain name parsing method, which is applied to an edge node. The method includes: receiving a second Http(s) domain name resolution request sent by the client; parsing an IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and returning the IP address.
在第三方面,本申请实施例提供一种域名解析方法,应用于中心域名服务器,所述方法包括:接收客户端发送的第一Http(s)域名解析请求,所述第一Http(s)域名解析请求包括待解析域名;在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,向所述客户端返回跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点。In a third aspect, the embodiment of the present application provides a domain name resolution method, which is applied to a central domain name server, and the method includes: receiving a first Http(s) domain name resolution request sent by a client, the first Http(s) The domain name resolution request includes a domain name to be resolved; when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, returning a jump status code and a jump URL to the client, the jump URL Point to the edge node that serves the area where the client is located.
在第四方面,本申请实施例提供一种域名解析装置,应用于客户端。该域名解析装置包括:第一发送模块,用于向中心域名服务器发送第一Http(s)域名解析请求;第一接收模块,用于在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,接收所述中心域名服务器返回的跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点;第二发送模块,用于根据所述跳转状态码向所述边缘节点发送第二Http(s)域名解析请求,以使所述边缘节点根据所述第二Http(s)域名解析请求解析出所述待解析域名对应的IP地址;第二接收模块,用于接收所述边缘节点返回的所述IP地址。In a fourth aspect, an embodiment of the present application provides a domain name resolution apparatus, which is applied to a client. The domain name resolution device includes: a first sending module, configured to send a first Http(s) domain name resolution request to the central domain name server; and a first receiving module, configured to: in the first Http(s) domain name resolution request to be parsed When the domain name belongs to a distributed type, the jump status code and the jump URL returned by the central domain name server are received, and the jump URL points to an edge node serving the area where the client is located; and the second sending module is configured to The jump status code sends a second Http(s) domain name resolution request to the edge node, so that the edge node parses the IP corresponding to the to-be-resolved domain name according to the second Http(s) domain name resolution request. The second receiving module is configured to receive the IP address returned by the edge node.
在第五方面,本申请实施例提供一种域名解析装置,应用于边缘节点,所述域名解析装置包括:第三接收模块,用于接收客户端发送的第二Http(s)域名解析请求;解析模块,用于根据所述第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向所述客户端返回所述IP地址。In a fifth aspect, the embodiment of the present application provides a domain name resolution device, which is applied to an edge node, where the domain name resolution device includes: a third receiving module, configured to receive a second Http(s) domain name resolution request sent by the client; The parsing module is configured to parse an IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
在第六方面,本申请实施例提供一种域名解析装置,应用于中心域名服务器,所述域名解析装置包括:第四接收模块,用于接收客户端发送的第一Http(s)域名解析请求,所述第一Http(s)域名解析请求包括待解析域名;第一返回模块,用于在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,向所述客户端返回跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点。In a sixth aspect, the embodiment of the present application provides a domain name resolution device, which is applied to a central domain name server, and the domain name resolution device includes: a fourth receiving module, configured to receive a first Http(s) domain name resolution request sent by a client The first Http(s) domain name resolution request includes a domain name to be resolved, and the first returning module is configured to: when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, to the client The terminal returns a jump status code and a jump URL, and the jump URL points to an edge node serving the area where the client is located.
本申请的有益效果在于,解析域名时,首先,客户端向中心域名服务器发送第一Http(s)域名解析请求,以使中心域名服务器根据第一Http(s)域名解析请求返回跳转URL与跳转状态码,第一Http(s)域名解析请求包括待解析域名。再次,客户端根据跳转状态码向跳转URL所指向的边缘节点发送第二Http(s)域名 解析请求,以使边缘节点根据第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并返回IP地址。由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。The beneficial effect of the present application is that, when resolving a domain name, first, the client sends a first Http(s) domain name resolution request to the central domain name server, so that the central domain name server returns a jump URL according to the first Http(s) domain name resolution request. Jump status code, the first Http(s) domain name resolution request includes the domain name to be resolved. Again, the client sends the second Http(s) domain name to the edge node pointed to by the jump URL according to the jump status code. Parsing the request, so that the edge node parses the IP address corresponding to the domain to be resolved according to the second Http(s) domain name resolution request, and returns an IP address. Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是本申请实施例提供一种传统域名解析的架构示意图;1 is a schematic structural diagram of a conventional domain name resolution according to an embodiment of the present application;
图2是本申请实施例提供另一种传统域名解析架构示意图;2 is a schematic diagram of another conventional domain name resolution architecture provided by an embodiment of the present application;
图3是本申请实施例提供一种域名解析系统的结构示意图;3 is a schematic structural diagram of a domain name resolution system according to an embodiment of the present application;
图4是本申请实施例提供一种域名解析方法的信令图;4 is a signaling diagram of a domain name resolution method according to an embodiment of the present application;
图5是本申请实施例提供一种边缘节点的域名解析方法的信令图;FIG. 5 is a signaling diagram of a method for parsing a domain name of an edge node according to an embodiment of the present application;
图6是本申请实施例提供一种客户端的结构示意图;FIG. 6 is a schematic structural diagram of a client according to an embodiment of the present application;
图7是本申请实施例提供一种域名解析装置的结构示意图;FIG. 7 is a schematic structural diagram of a domain name resolution apparatus according to an embodiment of the present application;
图8是本申请另一实施例提供一种域名解析装置的结构示意图;FIG. 8 is a schematic structural diagram of a domain name resolution apparatus according to another embodiment of the present application;
图9是本申请又另一实施例提供一种域名解析装置的结构示意图;FIG. 9 is a schematic structural diagram of a domain name resolution apparatus according to still another embodiment of the present application;
图10是本申请又另一实施例提供一种域名解析装置的结构示意图;FIG. 10 is a schematic structural diagram of a domain name resolution apparatus according to still another embodiment of the present application;
图11是本申请实施例提供一种域名解析方法的流程示意图;FIG. 11 is a schematic flowchart diagram of a domain name resolution method according to an embodiment of the present application;
图12是本申请另一实施例提供一种域名解析方法的流程示意图;FIG. 12 is a schematic flowchart of a domain name resolution method according to another embodiment of the present application;
图13是本申请又另一实施例提供一种域名解析方法的流程示意图;FIG. 13 is a schematic flowchart diagram of a domain name parsing method according to still another embodiment of the present application;
图14是本申请又另一实施例提供一种域名解析方法的流程示意图;FIG. 14 is a schematic flowchart diagram of a method for analyzing a domain name according to still another embodiment of the present application;
图15是图4中步骤82的流程示意图;Figure 15 is a schematic flow chart of step 82 in Figure 4;
图16是本申请又另一实施例提供一种域名解析方法的流程示意图。FIG. 16 is a schematic flowchart diagram of a method for analyzing a domain name according to still another embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
域名(Domain Name)是由一串用“点”分隔的字符组成的互联网上特定一 台计算机或计算机组的名称,例如:域名为www.ddd.com。在互联网中,互联网服务提供商(Internet Service Provider,ISP)能够为域名匹配对应的IP地址,例如:域名为www.ddd.com对应的IP地址为:11.22.33.44。Domain Name is a specific one on the Internet consisting of a string of characters separated by "dot". The name of a computer or group of computers, for example, the domain name is www.ddd.com. In the Internet, an Internet Service Provider (ISP) can match a domain name to a corresponding IP address. For example, the IP address corresponding to the domain name www.ddd.com is 11.22.33.44.
域名成树状结构,从根域名到直接服务的DNS服务器(Domain Name Server,域名服务器)分为多个级别,例如:www.heli.edu.cn为域名,该域名分为4个级别,分别是主机名“www”,三级域名为“heli”,二级域名为“edu”,顶级域名为“cn”。The domain name is in a tree structure. The domain name server to the direct service DNS server (Domain Name Server) is divided into multiple levels. For example, www.heli.edu.cn is a domain name. The domain name is divided into four levels. It is the host name "www", the third-level domain name is "heli", the second-level domain name is "edu", and the top-level domain name is "cn".
由于互联网设备之间的通讯大部分是基于TCP/IP协议(Transmission Control Protocol/Internet Protocol,传输控制协议/因特网互联协议)完成通讯,然而,TCP/IP协议是基于IP地址完成双方的连接。因此,互联网设备在网络上进行通讯时,其只能够识别出如“196.168.31.21”之类的IP地址,却未能够识别出域名。并且,对于用户而言,其无法精确地记住10个以上IP地址的网站,因此,用户访问网站时,更多的是在浏览器的地址栏中输入域名完成期望内容页面的获取。在期望内容页面的获取过程中,DNS服务器能够将用户访问的域名“翻译”成对应的IP地址,然后再次从该IP地址调取期望内容页面。Since most of the communication between Internet devices is based on the TCP/IP protocol (Transmission Control Protocol/Internet Protocol), the TCP/IP protocol completes the connection between the two parties based on the IP address. Therefore, when an Internet device communicates on the network, it can only recognize an IP address such as "196.168.31.21" but cannot recognize the domain name. Moreover, for the user, it is impossible to accurately remember the website with more than 10 IP addresses. Therefore, when the user visits the website, it is more to enter the domain name in the address bar of the browser to complete the acquisition of the desired content page. In the process of obtaining the desired content page, the DNS server can "translate" the domain name accessed by the user into a corresponding IP address, and then retrieve the desired content page from the IP address again.
DNS服务器是一种组织成域层次结构的计算机和网络服务命名系统,其用于TCP/IP网络,它所提供的服务是用来将主机名和域名转换为IP地址的工作。其中,根据功能类型区分,DNS服务器包括权威DNS与非权威DNS,权威DNS为自身数据库中存在与DNS请求相对应的映射,非权威DNS为不存在相对应的映射,而存在对应缓存查询结果。A DNS server is a computer and network service naming system organized into a domain hierarchy for use in a TCP/IP network. The services it provides are used to translate host names and domain names into IP addresses. The DNS server includes an authoritative DNS and a non-authoritative DNS. The authoritative DNS has a mapping corresponding to the DNS request in the database. The non-authoritative DNS has no corresponding mapping, and the corresponding cache query result exists.
请参阅图1,图1是本申请实施例提供一种传统域名解析的架构示意图。如图1所示,该架构10包括广东移动用户11、上海电信用户12、广东移动LDNS13(本地运营商域名服务,Local DNS)、上海电信LDNS14以及权威DNS15。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a conventional domain name resolution according to an embodiment of the present application. As shown in FIG. 1, the architecture 10 includes Guangdong Mobile User 11, Shanghai Telecom User 12, Guangdong Mobile LDNS13 (Local Operator Domain Name Service, Local DNS), Shanghai Telecom LDNS14, and Authoritative DNS 15.
广东移动用户11可以使用移动终端向广东移动LDNS13发送域名解析请求,例如:该域名解析请求包括域名www.dd.com。The Guangdong mobile subscriber 11 can use the mobile terminal to send a domain name resolution request to the Guangdong Mobile LDNS 13, for example, the domain name resolution request includes the domain name www.dd.com.
上海电信用户12可以使用移动终端向上海电信LDNS14发送域名解析请求,例如:该域名解析请求包括域名www.ff.com。The Shanghai Telecom subscriber 12 can use the mobile terminal to send a domain name resolution request to the Shanghai Telecom LDNS 14, for example, the domain name resolution request includes the domain name www.ff.com.
一般的,广东移动LDNS13和上海电信LDNS14皆缓存有对应的域名解析结果。当广东移动LDNS13或上海电信LDNS14接收到域名解析请求,其调取缓存 记录,查询是否缓存有域名解析结果。若缓存,广东移动LDNS13或上海电信LDNS14直接向广东移动用户11或上海电信用户12返回该域名解析结果。若未缓存,其开始向权威DNS15发起DNS递归解析请求,以使权威DNS15查询到对应的域名解析结果,并且将向广东移动用户11或上海电信用户12返回该域名解析结果。In general, both Guangdong Mobile LDNS13 and Shanghai Telecom LDNS14 cache corresponding domain name resolution results. When Guangdong Mobile LDNS13 or Shanghai Telecom LDNS14 receives a domain name resolution request, it retrieves the cache. Record, query whether the cache has a domain name resolution result. If cached, Guangdong Mobile LDNS13 or Shanghai Telecom LDNS14 directly returns the domain name resolution result to Guangdong Mobile User 11 or Shanghai Telecom User 12. If not cached, it initiates a DNS recursive resolution request to the authoritative DNS 15 to enable the authoritative DNS 15 to query the corresponding domain name resolution result, and will return the domain name resolution result to the Guangdong mobile user 11 or the Shanghai telecommunications user 12.
然而,传统域名解析流程存在一定的缺陷,举例而言:由于LDNS缓存有域名解析结果,其未向权威DNS发起DNS递归解析请求,若域名是通过http(s)协议或其它端口提供服务的,用户访问就会出现失败。例如:支付服务、游戏通过指定端口连接connect server服务等。并且,LDNS的运维水平参差不齐,时有出现缓存服务器故障导致用户访问异常的问题。再进一步的,当LDNS自身不进行域名递归解析,而是把域名解析请求转发到其它LDNS的递归DNS上时,其会导致权威DNS收到的域名解析请求的来源IP就成了其它LDNS的IP,最终导致用户流量被导向了错误的I DC,用户访问变慢。However, the traditional domain name resolution process has certain defects. For example, because the LDNS cache has domain name resolution results, it does not initiate a DNS recursive resolution request to the authoritative DNS. If the domain name is served through the http(s) protocol or other ports, User access will fail. For example: payment service, game connection to the connect server service through a designated port. Moreover, the operation and maintenance level of the LDNS is uneven, and there is a problem that the cache server fails and the user access is abnormal. Further, when the LDNS itself does not perform domain name recursive resolution, but forwards the domain name resolution request to the recursive DNS of other LDNS, it will cause the source IP of the domain name resolution request received by the authoritative DNS to become the IP of other LDNS. Eventually, user traffic is directed to the wrong I DC, and user access is slow.
基于LDNS域名解析的缺点,传统技术再次提出基于Http(s)协议构建新域名解析架构。Http(s)协议为安全超文本传输协议,其是一种面向安全信息通信的协议,并还可以和HTTP协议结合使用。请参阅图2,图2是本申请实施例提供另一种传统域名解析架构示意图。如图2所示,该传统域名解析架构20包括用户终端21与HTTP域名服务器22,其中,该Http(s)域名服务器22支持Http(s)协议的域名解析。Based on the shortcomings of LDNS domain name resolution, the traditional technology once again proposes to build a new domain name resolution architecture based on the Http(s) protocol. The Http(s) protocol is a secure hypertext transfer protocol, which is a protocol for secure information communication and can also be used in conjunction with the HTTP protocol. Please refer to FIG. 2. FIG. 2 is a schematic diagram of another conventional domain name resolution architecture according to an embodiment of the present application. As shown in FIG. 2, the traditional domain name resolution architecture 20 includes a user terminal 21 and an HTTP domain name server 22, wherein the Http(s) domain name server 22 supports domain name resolution of the Http(s) protocol.
用户终端21向HTTP(S)域名服务器发起域名解析请求,其中,该用户终端21的IP地址为202.106.2.2。Http(s)域名服务器22根据该域名解析请求查找到域名对应的IP地址:4.3.2.2。The user terminal 21 initiates a domain name resolution request to the HTTP (S) domain name server, wherein the IP address of the user terminal 21 is 202.106.2.2. The Http(s) domain name server 22 finds the IP address corresponding to the domain name according to the domain name resolution request: 4.3.2.2.
如前所述,采用Http(s)协议进行域名解析,其可以避免LocalDNS造成的域名劫持和跨网访问问题,解决移动互联网服务中域名解析异常带来的困扰,并且定位比较准确,解析比较正常。As mentioned above, the Http(s) protocol is used for domain name resolution, which can avoid the problem of domain name hijacking and cross-network access caused by LocalDNS, solve the problem caused by the abnormal domain name resolution in the mobile Internet service, and the positioning is relatively accurate, and the analysis is relatively normal. .
然而,如前所述,Http(s)域名服务器返回给客户端的IP的节点未必是最优节点。在分布式服务中,集中调度是较为常见的调度方式,由于Http(s)域名服务器未能够得到全局的各个服务节点的运行状况与节点使用情况,单纯的集中调度造成域名的解析结果不够准确。However, as mentioned earlier, the node that the Http(s) domain name server returns to the client's IP is not necessarily the optimal node. In distributed services, centralized scheduling is a more common scheduling method. Because the Http(s) domain name server cannot obtain the running status and node usage of each global service node, the simple centralized scheduling results in inaccurate domain name resolution.
请一并参阅图3与图4,图3是本申请实施例提供一种域名解析系统的结构 示意图,图4是本申请实施例提供一种域名解析方法的信令图。如图3所示,该系统30包括:客户端31、中心域名服务器32、邮件服务器33以及边缘节点34。客户端31可以通过有线方式或者无线方式分别与中心域名服务器32、邮件服务器33、边缘节点34以及邮件服务器35通讯。该有线方式的传输媒介可以为光纤、同轴电缆、电话线、网线等等,该无线方式可以为无线个人局域网(WPAN)、无线局域网(WLAN)以及蜂窝网络(Cellular Network),其中,无线个人局域网包括诸如:红外线通信(IRDA)、蓝牙(Bluetooth)、ZigBee,无线局域网包括诸如:802.11b标准、802.11a标准、802.11g标准,蜂窝网络包括诸如:GSM、CDMA、TD-SCDMA、WCDMA及CDMA2000。Please refer to FIG. 3 and FIG. 4 together. FIG. 3 is a schematic diagram of a domain name resolution system according to an embodiment of the present application. FIG. 4 is a signaling diagram of a domain name resolution method according to an embodiment of the present application. As shown in FIG. 3, the system 30 includes a client 31, a central domain name server 32, a mail server 33, and an edge node 34. The client 31 can communicate with the central domain name server 32, the mail server 33, the edge node 34, and the mail server 35, respectively, by wire or wirelessly. The wired transmission medium may be an optical fiber, a coaxial cable, a telephone line, a network cable, or the like, and the wireless mode may be a wireless personal area network (WPAN), a wireless local area network (WLAN), and a cellular network (Cellular Network), wherein the wireless individual The local area network includes, for example, infrared communication (IRDA), Bluetooth, ZigBee, and the wireless local area network includes, for example, the 802.11b standard, the 802.11a standard, and the 802.11g standard, and the cellular network includes, for example, GSM, CDMA, TD-SCDMA, WCDMA, and CDMA2000. .
在本实施例中,中心域名服务器32、邮件服务器33以及边缘节点34皆支持Http(s)域名的解析。In this embodiment, the central domain name server 32, the mail server 33, and the edge node 34 all support the resolution of the Http(s) domain name.
如图4所示,该域名解析方法包括:As shown in FIG. 4, the domain name resolution method includes:
步骤301、通讯时,客户端31向中心域名服务器32发送第一Http(s)域名解析请求。该第一Http(s)域名解析请求包括待解析域名。Step 301: During communication, the client 31 sends a first Http(s) domain name resolution request to the central domain name server 32. The first Http(s) domain name resolution request includes a domain name to be resolved.
步骤302、中心域名服务器32接收客户端发送的第一Http(S)域名解析请求,根据客户端的源IP地址或者参数中的IP地址,判断待解析域名的域名服务类型是否属于分布式类型。Step 302: The central domain name server 32 receives the first Http(S) domain name resolution request sent by the client, and determines whether the domain name service type of the domain name to be resolved belongs to a distributed type according to the source IP address of the client or the IP address in the parameter.
步骤303、若待解析域名的域名服务类型属于非分布式类型,中心域名服务器32根据第一Http(s)域名解析请求向客户端31返回解析结果。Step 303: If the domain name service type of the domain name to be resolved belongs to a non-distributed type, the central domain name server 32 returns the analysis result to the client 31 according to the first Http(s) domain name resolution request.
步骤304、客户端31根据该解析结果向对应的服务器发起应用内容请求。例如:客户端31向中心域名服务器32发起邮箱域名解析请求,中心域名服务器32解析出该邮箱域名解析请求属于非分布式类型,亦即,客户端31请求的邮件应用内容并非分布地存储在各类应用服务器内,而是存储在专有的邮件服务器33,于是,中心域名服务器32将解析结果发送给客户端31,以使客户端31根据该解析结果直接向邮件服务器33发起邮件应用内容。Step 304: The client 31 initiates an application content request to the corresponding server according to the analysis result. For example, the client 31 initiates a mailbox domain name resolution request to the central domain name server 32, and the central domain name server 32 parses out that the mailbox domain name resolution request belongs to a non-distributed type, that is, the mail application content requested by the client 31 is not distributedly stored in each Within the class application server, but stored in the proprietary mail server 33, the central domain name server 32 sends the parsing result to the client 31, so that the client 31 directly initiates the mail application content to the mail server 33 based on the parsing result.
步骤305、若待解析域名的域名服务类型属于分布式类型,中心域名服务器32根据第一Http(s)域名解析请求向客户端31返回跳转状态码与跳转URL(Uniform Resource Locator)。Step 305: If the domain name service type of the domain name to be resolved belongs to a distributed type, the central domain name server 32 returns a jump status code and a jump URL (Uniform Resource Locator) to the client 31 according to the first Http(s) domain name resolution request.
具体的,中心域名服务器32动态生成跳转URL,并向客户端31返回跳转状态码,以及将跳转URL填充到http(s)响应的Location字段,其中,该http(s) 响应为中心域名服务器32响应于第一Http(s)域名解析请求的响应。Specifically, the central domain name server 32 dynamically generates a jump URL, and returns a jump status code to the client 31, and populates the jump URL into the Location field of the http(s) response, wherein the http(s) The response is a response of the central domain name server 32 in response to the first Http(s) domain name resolution request.
在本实施例中,该跳转URL指向服务于客户端31所在区域的边缘节点34,跳转状态码用于指示客户端31重新跳转至跳转URL指向的边缘节点34,该跳转状态码可以包括诸如302重定向的状态码等等。302重定向是指:对应当前请求的响应可以在另一个URI上被找到,而且客户端应当采用GET的方式访问那个资源。In this embodiment, the jump URL points to the edge node 34 serving the area where the client 31 is located, and the jump status code is used to instruct the client 31 to re-jump to the edge node 34 pointed to by the jump URL, the jump state. The code may include a status code such as 302 redirect, and the like. 302 redirection means that the response corresponding to the current request can be found on another URI, and the client should access that resource by means of GET.
步骤306、在待解析域名的域名服务类型属于分布式类型,并且客户端31接收到中心域名服务器32返回的http(s)响应时,客户端31根据跳转状态码向跳转URL所指向的边缘节点34发送第二Http(s)域名解析请求。Step 306: When the domain name service type of the domain name to be resolved belongs to a distributed type, and the client 31 receives the http(s) response returned by the central domain name server 32, the client 31 points to the jump URL according to the jump status code. The edge node 34 sends a second Http(s) domain name resolution request.
步骤307、边缘节点34根据该第二Http(s)域名解析请求解析出待解析域名对应的IP地址。Step 307: The edge node 34 parses the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request.
步骤308、边缘节点34向客户端31返回IP地址。Step 308, the edge node 34 returns an IP address to the client 31.
由于边缘节点34知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node 34 knows the state of each content service node, the analysis result is more accurate, and therefore, it can recommend an optimal IP address for the client.
请参阅图3,边缘节点34包括边缘域名服务器341、应用服务器342以及调度服务器343。客户端31通过有线方式或无线方式分别与边缘域名服务器341和应用服务器342通讯,调度服务器343与应用服务器342通讯。Referring to FIG. 3, the edge node 34 includes an edge domain name server 341, an application server 342, and a scheduling server 343. The client 31 communicates with the edge domain name server 341 and the application server 342, respectively, by wire or wirelessly, and the dispatch server 343 communicates with the application server 342.
边缘域名服务器341能够为客户端提供一个进入网络的通道和与其它服务器通讯的功能。一般的,边缘域名服务器341是一组完成单一功能的服务器,例如:防火墙服务器,高速缓存服务器,负载均衡服务器等等。The edge name server 341 can provide the client with a channel to enter the network and communicate with other servers. Generally, the edge name server 341 is a group of servers that perform a single function, such as a firewall server, a cache server, a load balancing server, and the like.
在本实施例中,边缘域名服务器341位于边缘节点并能够提供基于Http(s)协议的域名解析功能的服务器。该边缘域名服务器341与调度服务器342通讯,通过推(Push)或者拉(Pull)方式获取IP地址,并将该IP地址以HTTP响应的方式返回给客户端31。In this embodiment, the edge domain name server 341 is located at the edge node and is capable of providing a server based on the Http(s) protocol domain name resolution function. The edge domain name server 341 communicates with the dispatch server 342, obtains an IP address by pushing or pulling, and returns the IP address to the client 31 in an HTTP response manner.
应用服务器342能够为客户端31提供应用内容服务的服务器。当应用服务器342接收到调度服务器342发送的资源查询请求时,应用服务器342根据该资源查询请求查询自身的资源使用情况,并向调度服务器343反馈该资源使用情况,例如:中央处理器(Central Processing Unit,CPU)、内存、带宽、连接数等等资源使用信息。The application server 342 can provide the client 31 with a server that applies content services. When the application server 342 receives the resource query request sent by the scheduling server 342, the application server 342 queries the resource usage of the resource according to the resource query request, and feeds back the resource usage to the scheduling server 343, for example, the central processing unit (Central Processing) Unit, CPU), memory, bandwidth, number of connections, etc. Resource usage information.
调度服务器343接收应用服务器342的资源使用情况的反馈,根据设定的 调度规则,确定能够提供最优服务的应用服务器342的IP地址,并且动态地推荐给边缘域名服务器341,其中,推荐的方式可以是主动发送和/或被动发送。The dispatch server 343 receives feedback of the resource usage of the application server 342, according to the settings The scheduling rule determines the IP address of the application server 342 that can provide the optimal service, and dynamically recommends to the edge domain name server 341, wherein the recommended manner may be active sending and/or passive sending.
在本实施例中,无论是边缘域名服务器341或应用服务器342或调度服务器343,其皆可以是一个物理服务器或者多个物理服务器虚拟而成的一个逻辑服务器,亦可以是多个可互联通信的服务器组成的服务器群,且与域名解析关联的各个功能模块可分别分布在服务器群中的各个服务器上。In this embodiment, the edge domain name server 341 or the application server 342 or the scheduling server 343 may be a physical server or a logical server virtualized by multiple physical servers, or may be interconnected. A server group composed of servers, and each functional module associated with domain name resolution can be distributed on each server in the server group.
下面,请参阅图5,图5是本申请实施例提供一种边缘节点的域名解析方法的信令图。如图5所示,该域名解析方法包括:Please refer to FIG. 5. FIG. 5 is a signaling diagram of a method for parsing a domain name of an edge node according to an embodiment of the present application. As shown in FIG. 5, the domain name resolution method includes:
步骤501、当客户端31接收到中心域名服务器32返回的跳转状态码与跳转URL时,客户端31再次向边缘域名服务器341发送第二Http(s)域名解析请求。Step 501: When the client 31 receives the jump status code and the jump URL returned by the central domain name server 32, the client 31 sends the second Http(s) domain name resolution request to the edge domain name server 341 again.
步骤502、边缘域名服务器341根据第二Http(s)域名解析请求,触发调度服务器343。Step 502: The edge domain name server 341 triggers the scheduling server 343 according to the second Http(s) domain name resolution request.
步骤503、调度服务器343访问应用服务器342以获取应用服务器342的资源使用情况。Step 503, the dispatch server 343 accesses the application server 342 to obtain the resource usage of the application server 342.
步骤504、各个应用服务器342将各自的资源使用情况反馈给调度服务器343。在该过程中,当该边缘节点34内的各个应用服务器342的资源不可用时,亦即:应用服务器342属于停用状态,调度服务器343将处于停用状态下的应用服务器342的状态反馈给边缘域名服务器341。于是,边缘域名服务器341根据第二Http(s)域名解析请求访问另外的预设边缘节点,直至访问到可向客户端31返回IP地址的预设边缘节点。其中,该另外的预设边缘节点与先前的预设边缘节点毗邻。Step 504: Each application server 342 feeds back the respective resource usage status to the scheduling server 343. In the process, when the resources of the respective application servers 342 in the edge node 34 are unavailable, that is, the application server 342 belongs to the deactivated state, the scheduling server 343 feeds back the status of the application server 342 in the deactivated state to the edge. Domain Name Server 341. Then, the edge domain name server 341 accesses another preset edge node according to the second Http(s) domain name resolution request until accessing the preset edge node that can return the IP address to the client 31. The additional preset edge node is adjacent to the previous preset edge node.
步骤505、当该边缘节点34内的各个应用服务器342的资源可用时,调度服务器343根据预设调度规则,确定能够提供最优服务的应用服务器342的IP地址。Step 505: When resources of the application servers 342 in the edge node 34 are available, the scheduling server 343 determines an IP address of the application server 342 capable of providing an optimal service according to a preset scheduling rule.
步骤506、调度服务器343向边缘域名服务器341返回待解析域名对应的IP地址。Step 506: The scheduling server 343 returns the IP address corresponding to the domain name to be resolved to the edge domain name server 341.
步骤507、边缘域名服务器341向客户端31返回待解析域名对应的IP地址。Step 507: The edge domain name server 341 returns the IP address corresponding to the domain name to be resolved to the client 31.
步骤508、客户端31向IP地址所指向的应用服务器342发送内容服务请求。Step 508: The client 31 sends a content service request to the application server 342 pointed to by the IP address.
步骤509、对应的应用服务器342根据该内容服务请求向客户端31返回对应的内容服务。 Step 509: The corresponding application server 342 returns a corresponding content service to the client 31 according to the content service request.
在本实施例中,边缘域名服务器341动态解析域名,并且接收调度服务器343反馈的最优IP地址,从而为客户端31推荐最优的IP地址。In this embodiment, the edge domain name server 341 dynamically resolves the domain name and receives the optimal IP address fed back by the scheduling server 343, thereby recommending the optimal IP address for the client 31.
基于同一发明构思,请参阅图6,本申请实施例还提供一种客户端。如图6所示,该客户端31包括至少一个处理器311以及与所述至少一个处理器311通信连接的存储器312;其中,所述存储器312存储有可被所述至少一个处理器311执行的指令,所述指令被所述至少一个处理器311执行,以使所述至少一个处理器311能够用于执行上述各个实施例所示的域名解析的控制逻辑。Based on the same inventive concept, referring to FIG. 6, the embodiment of the present application further provides a client. As shown in FIG. 6, the client 31 includes at least one processor 311 and a memory 312 communicatively coupled to the at least one processor 311; wherein the memory 312 stores a memory 312 that is executable by the at least one processor 311. An instruction executed by the at least one processor 311 to enable the at least one processor 311 to execute control logic for performing domain name resolution as described in various embodiments above.
在一些实施例中,边缘域名服务器341或中心域名服务器32可以采用如图6所示的硬件架构,以完成对应的域名解析的控制逻辑,在此不再赘述。In some embodiments, the edge domain name server 341 or the central domain name server 32 may adopt a hardware architecture as shown in FIG. 6 to complete the control logic of the corresponding domain name resolution, and details are not described herein again.
作为本申请实施例的另一方面,本申请实施例提供一种域名解析装置,应用于客户端。其中,该域名解析装置作为软件系统,其可以存储在图6所阐述客户端31内。该域名解析装置包括若干指令,该若干指令存储于存储器内,处理器可以访问该存储器,调用指令进行执行,以完成上述域名解析装置。As another aspect of the embodiment of the present application, the embodiment of the present application provides a domain name resolution device, which is applied to a client. The domain name resolution device is a software system, which can be stored in the client 31 illustrated in FIG. 6. The domain name resolution device includes a plurality of instructions stored in a memory, the processor can access the memory, and invoke the instructions to execute to complete the domain name resolution device.
如图7所示,该域名解析装置40包括:第一发送模块41、第一接收模块42、第二发送模块43及第二接收模块44。As shown in FIG. 7, the domain name resolution device 40 includes a first sending module 41, a first receiving module 42, a second sending module 43, and a second receiving module 44.
第一发送模块41用于向中心域名服务器发送第一Http(s)域名解析请求;The first sending module 41 is configured to send a first Http(s) domain name resolution request to the central domain name server;
第一接收模块42用于在第一Http(s)域名解析请求的待解析域名属于分布式类型时,接收中心域名服务器返回的跳转状态码与跳转URL,跳转URL指向服务于客户端所在区域的边缘节点;The first receiving module 42 is configured to receive a jump status code and a jump URL returned by the central domain name server when the domain to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, and the jump URL points to serve the client. The edge node of the area;
第二发送模块43用于根据跳转状态码向所述边缘节点发送第二Http(s)域名解析请求,以使边缘节点根据第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并返回IP地址。The second sending module 43 is configured to send a second Http(s) domain name resolution request to the edge node according to the hop state code, so that the edge node parses the IP corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request. Address and return the IP address.
第二接收模块44用于接收边缘节点返回的IP地址。The second receiving module 44 is configured to receive an IP address returned by the edge node.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
在一些实施例中,如图7所示,该域名解析装置40还包括:跳转模块45,跳转模块45用于在第一Http(s)域名解析请求的待解析域名属于非分布式类型时,根据中心域名服务器返回的Http(s)域名解析响应,跳转至对应的服务器。In some embodiments, as shown in FIG. 7, the domain name resolution apparatus 40 further includes: a jump module 45, wherein the jump module 45 is configured to belong to the non-distributed type of the domain name to be resolved in the first Http(s) domain name resolution request. Then, according to the Http(s) domain name resolution response returned by the central domain name server, jump to the corresponding server.
在一些实施例中,如图7所示,该域名解析装置40还包括:第三发送模块46,第三发送模块46用于向所述IP地址指向的边缘节点发送内容服务请求。 In some embodiments, as shown in FIG. 7, the domain name resolution device 40 further includes: a third sending module 46, configured to send a content service request to an edge node pointed by the IP address.
在一些实施例中,跳转状态码为302重定向的状态码。In some embodiments, the jump status code is a 302 redirected status code.
作为本申请实施例的又另一方面,本申请实施例提供一种域名解析装置,应用于边缘节点。其中,该域名解析装置作为软件系统,其可以存储在所阐述边缘域名服务器内。该域名解析装置包括若干指令,该若干指令存储于存储器内,处理器可以访问该存储器,调用指令进行执行,以完成上述域名解析装置。As another aspect of the embodiments of the present application, the embodiment of the present application provides a domain name resolution apparatus, which is applied to an edge node. Wherein, the domain name resolution device is a software system, which can be stored in the stated edge domain name server. The domain name resolution device includes a plurality of instructions stored in a memory, the processor can access the memory, and invoke the instructions to execute to complete the domain name resolution device.
如图8所示,该域名解析装置50包括:第三接收模块51与解析模块52。As shown in FIG. 8, the domain name resolution device 50 includes a third receiving module 51 and a parsing module 52.
第三接收模块51用于接收客户端发送的第二Http(s)域名解析请求;The third receiving module 51 is configured to receive a second Http(s) domain name resolution request sent by the client;
解析模块52用于根据第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向客户端返回所述IP地址。The parsing module 52 is configured to parse the IP address corresponding to the domain to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
在一些实施例中,边缘节点包括边缘域名服务器、调度服务器及应用服务器。该解析模块52用于:边缘域名服务器根据第二Http(s)域名解析请求触发调度服务器访问应用服务器;当应用服务器的资源使用情况属于可用状态时,调度服务器根据应用服务器的资源使用情况与预设调度规则,向边缘域名服务器返回待解析域名对应的IP地址;边缘域名服务器向客户端返回IP地址。In some embodiments, the edge node includes an edge domain name server, a scheduling server, and an application server. The parsing module 52 is configured to: the edge domain name server triggers the scheduling server to access the application server according to the second Http(s) domain name resolution request; and when the resource usage of the application server belongs to the available state, the scheduling server uses the resource usage of the application server and the pre- Set the scheduling rule to return the IP address corresponding to the domain name to be resolved to the edge domain name server; the edge domain name server returns the IP address to the client.
其中,调度服务器返回待解析域名对应的IP地址的方式包括主动发送和/或被动发送。The manner in which the scheduling server returns the IP address corresponding to the domain name to be resolved includes active sending and/or passive sending.
在一些实施例中,该解析模块52还用于:当应用服务器的资源使用情况属于停用状态时,边缘域名服务器根据第二Http(s)域名解析请求直至访问到可向客户端返回IP地址的另外预设边缘节点。In some embodiments, the parsing module 52 is further configured to: when the resource usage of the application server belongs to the deactivated state, the edge domain name server returns the IP address according to the second Http(s) domain name resolution request until the access to the client Another preset edge node.
作为本申请实施例的又另一方面,本申请实施例提供一种域名解析装置,应用于中心域名服务器。其中,该域名解析装置作为软件系统,其可以存储在所阐述中心域名服务器内。该域名解析装置包括若干指令,该若干指令存储于存储器内,处理器可以访问该存储器,调用指令进行执行,以完成上述域名解析装置。As another aspect of the embodiment of the present application, the embodiment of the present application provides a domain name resolution device, which is applied to a central domain name server. The domain name resolution device is a software system that can be stored in the central name server that is described. The domain name resolution device includes a plurality of instructions stored in a memory, the processor can access the memory, and invoke the instructions to execute to complete the domain name resolution device.
如图9所示,该域名解析装置60包括:第四接收模块61与第一返回模块62。As shown in FIG. 9, the domain name resolution device 60 includes a fourth receiving module 61 and a first returning module 62.
第四接收模块61用于接收客户端发送的第一Http(s)域名解析请求,第一Http(s)域名解析请求包括待解析域名。 The fourth receiving module 61 is configured to receive a first Http(s) domain name resolution request sent by the client, where the first Http(s) domain name resolution request includes a domain name to be resolved.
第一返回模块62用于在第一Http(s)域名解析请求的待解析域名属于分布式类型时,向客户端返回跳转状态码与跳转URL,跳转URL指向服务于客户端所在区域的边缘节点。跳转状态码为302重定向的状态码。The first returning module 62 is configured to return a jump status code and a jump URL to the client when the domain to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, and the jump URL points to the area where the client is located. Edge node. The jump status code is the 302 redirected status code.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
在一些实施例中,如图10所示,该域名解析装置60还包括第二返回模块63,第二返回模块63用于在第一Http(s)域名解析请求的待解析域名属于非分布式类型时,向客户端返回Http(s)域名解析响应,以使客户端跳转至对应的服务器。In some embodiments, as shown in FIG. 10, the domain name resolution device 60 further includes a second returning module 63, and the second returning module 63 is configured to: the domain name to be resolved in the first Http(s) domain name resolution request belongs to a non-distributed domain. When the type is returned, the Http(s) domain name resolution response is returned to the client, so that the client jumps to the corresponding server.
由于装置实施例和上述各个实施例是基于同一构思,在内容不互相冲突的前提下,装置实施例的内容可以引用上述各个实施例的,在此不赘述。The device embodiment and the foregoing embodiments are based on the same concept, and the content of the device embodiment may refer to the foregoing embodiments, and the details are not described herein.
作为本申请实施例的又另一方面,本申请实施例提供多种域名解析方法(请参阅下述各个实施例所述的域名解析方法)。本申请实施例的域名解析方法的功能除了借助上述图7或图8或图9与图10所述的域名解析装置的软件系统来执行,其亦可以借助硬件平台来执行。例如:域名解析方法可以在合适类型具有运算能力的处理器的电子设备中执行,例如:单片机、数字处理器(Digital Signal Processing,DSP)等等。As another aspect of the embodiment of the present application, the embodiment of the present application provides a plurality of domain name resolution methods (refer to the domain name resolution method described in the following embodiments). The function of the domain name resolution method of the embodiment of the present application is performed by the software system of the domain name resolution device described above with reference to FIG. 7 or FIG. 8 or FIG. 9 and FIG. 10, which can also be executed by means of a hardware platform. For example, the domain name resolution method can be executed in an electronic device of a suitable type of processor having a computing capability, such as a single chip microcomputer, a digital signal processing (DSP), or the like.
下述各个实施例的域名解析方法对应的功能是以指令的形式存储在客户端或边缘域名服务器或中心域名服务器的存储器上,当要执行下述各个实施例的域名解析方法对应的功能时,客户端或边缘域名服务器或中心域名服务器的处理器访问存储器,调取并执行对应的指令,以实现下述各个实施例的域名解析方法对应的功能。The functions corresponding to the domain name resolution method of the following embodiments are stored in the form of instructions on the memory of the client or the edge domain name server or the central domain name server. When the functions corresponding to the domain name resolution methods of the following embodiments are to be executed, The processor of the client or the edge name server or the central domain name server accesses the memory, and retrieves and executes the corresponding instructions to implement the functions corresponding to the domain name resolution methods of the following embodiments.
存储器作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如上述实施例中的域名解析装置40或域名解析装置50或域名解析装置60对应的程序指令/模块,或者下述实施例域名解析方法对应的步骤。处理器通过运行存储在存储器中的非易失性软件程序、指令以及模块,从而执行域名解析装置40或域名解析装置50或域名解析装置60的各种功能应用以及数据处理,即实现上述实施例域名解析装置40或域名解析装置50或域名解析装置60的各个模块与单元的功能,或者下述实施例域名解析方法对应的步骤的功能。 The memory is a non-volatile computer readable storage medium and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as the domain name resolution device 40 or the domain name resolution device 50 in the above embodiment. Or the program instruction/module corresponding to the domain name resolution device 60, or the step corresponding to the domain name resolution method of the following embodiment. The processor executes various functional applications and data processing of the domain name resolution device 40 or the domain name resolution device 50 or the domain name resolution device 60 by running non-volatile software programs, instructions, and modules stored in the memory, that is, implementing the above embodiments. The functions of the functions of the respective modules and units of the domain name resolution device 40 or the domain name resolution device 50 or the domain name resolution device 60, or the steps corresponding to the domain name resolution method of the following embodiment.
存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a high speed random access memory, and may also include a non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes a memory remotely located relative to the processor, the remote memory being connectable to the processor over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述程序指令/模块存储在所述存储器中,当被所述一个或者多个处理器执行时,执行上述任意方法实施例中的域名解析方法,例如,执行下述实施例描述的图11与图13或者图14与图15或者图16所示的各个步骤。The program instructions/modules are stored in the memory, and when executed by the one or more processors, perform a domain name resolution method in any of the above method embodiments, for example, performing FIG. 11 described in the following embodiments. The steps shown in Fig. 13 or Fig. 14 and Fig. 15 or Fig. 16 are shown.
在第一方面,请参阅图11,图11是本申请实施例提供一种域名解析方法的流程示意图。如图11所示,该域名解析方法70包括:In a first aspect, please refer to FIG. 11. FIG. 11 is a schematic flowchart diagram of a domain name resolution method according to an embodiment of the present application. As shown in FIG. 11, the domain name resolution method 70 includes:
步骤71、向中心域名服务器发送第一Http(s)域名解析请求,以使在第一Http(s)域名解析请求的待解析域名属于分布式类型时,中心域名服务器返回跳转状态码与跳转URL,跳转URL指向服务于客户端所在区域的边缘节点;Step 71: Send a first Http(s) domain name resolution request to the central domain name server, so that the central domain name server returns the jump status code and the hop when the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a distributed type. Transfer URL, the jump URL points to the edge node serving the client's area;
步骤72、根据跳转状态码向边缘节点发送第二Http(s)域名解析请求,以使边缘节点根据第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并返回IP地址。Step 72: Send a second Http(s) domain name resolution request to the edge node according to the jump status code, so that the edge node parses the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and returns an IP address. .
在步骤71中,跳转状态码可以为302重定向的状态码。In step 71, the jump status code may be a 302 redirected status code.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
在一些实施例中,如图12所示,该域名解析方法70还包括:In some embodiments, as shown in FIG. 12, the domain name resolution method 70 further includes:
步骤73、在第一Http(s)域名解析请求的待解析域名属于非分布式类型时,根据中心域名服务器返回的Http(s)域名解析响应,跳转至对应的服务器。Step 73: When the domain name to be resolved of the first Http(s) domain name resolution request belongs to a non-distributed type, the Http(s) domain name resolution response returned by the central domain name server is redirected to the corresponding server.
在一些实施例中,如图13所示,该域名解析方法70还包括:In some embodiments, as shown in FIG. 13, the domain name resolution method 70 further includes:
步骤74、向IP地址指向的边缘节点发送内容服务请求。Step 74: Send a content service request to an edge node pointed to by the IP address.
在第二方面,请参阅图14,图14是本申请又另一实施例提供一种域名解析方法的流程示意图。如图14所示,该域名解析方法80包括:In a second aspect, please refer to FIG. 14. FIG. 14 is a schematic flowchart diagram of a domain name resolution method according to still another embodiment of the present application. As shown in FIG. 14, the domain name resolution method 80 includes:
步骤81、接收客户端发送的第二Http(s)域名解析请求;Step 81: Receive a second Http(s) domain name resolution request sent by the client.
步骤82、根据第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向客户端返回所述IP地址。Step 82: Parse the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此, 其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, therefore, It can recommend the best IP address for the client.
在一些实施例中,边缘节点包括边缘域名服务器、调度服务器及应用服务器。如图15所示,步骤82包括:In some embodiments, the edge node includes an edge domain name server, a scheduling server, and an application server. As shown in Figure 15, step 82 includes:
步骤821、边缘域名服务器根据第二Http(s)域名解析请求触发调度服务器访问应用服务器;Step 821: The edge domain name server triggers the scheduling server to access the application server according to the second Http(s) domain name resolution request.
步骤822、判断应用服务器的资源使用情况是否属于可用状态;Step 822: Determine whether the resource usage of the application server is in an available state.
步骤823、当应用服务器的资源使用情况属于可用状态时,调度服务器根据应用服务器的资源使用情况与预设调度规则,向边缘域名服务器返回待解析域名对应的IP地址;Step 823: When the resource usage of the application server is in an available state, the scheduling server returns an IP address corresponding to the domain to be resolved to the edge domain name server according to the resource usage of the application server and the preset scheduling rule.
步骤823、边缘域名服务器向客户端返回所述IP地址;Step 823: The edge domain name server returns the IP address to the client.
步骤824、当应用服务器的资源使用情况属于停用状态时,边缘域名服务器根据第二Http(s)域名解析请求直至访问到可向客户端返回所述IP地址的另外预设边缘节点。Step 824: When the resource usage of the application server is in the deactivated state, the edge domain name server resolves the request according to the second Http(s) domain name until accessing another preset edge node that can return the IP address to the client.
在第三方面,请参阅图16,图16是本申请又另一实施例提供一种域名解析方法的流程示意图。如图16所示,该域名解析方法90包括:In a third aspect, please refer to FIG. 16. FIG. 16 is a schematic flowchart diagram of a domain name resolution method according to still another embodiment of the present application. As shown in FIG. 16, the domain name resolution method 90 includes:
步骤91、接收客户端发送的第一Http(s)域名解析请求,第一Http(s)域名解析请求包括待解析域名;Step 91: Receive a first Http(s) domain name resolution request sent by the client, where the first Http(s) domain name resolution request includes the domain name to be resolved.
步骤92、判断待解析域名的域名服务类型是否属于分布式类型;Step 92: Determine whether the domain name service type of the domain name to be resolved belongs to a distributed type.
步骤93、若待解析域名的域名服务类型属于分布式类型,根据第一Http(s)域名解析请求向客户端返回跳转状态码与跳转URL,跳转URL指向服务于客户端所在区域的边缘节点;Step 93: If the domain name service type of the domain name to be resolved belongs to a distributed type, return a jump status code and a jump URL to the client according to the first Http(s) domain name resolution request, and the jump URL points to the area where the client is located. Edge node
其中,跳转状态码为302重定向的状态码。The jump status code is a 302 redirected status code.
步骤94、若待解析域名的域名服务类型属于非分布式类型,向客户端返回Http(s)域名解析响应,以使客户端跳转至对应的服务器。Step 94: If the domain name service type of the domain name to be resolved belongs to a non-distributed type, return an Http(s) domain name resolution response to the client, so that the client jumps to the corresponding server.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
由于各个方法实施例和上述各个实施例是基于同一构思,在内容不互相冲突的前提下,各个方法实施例的内容可以引用上述各个实施例的,在此不赘述。The content of each method embodiment and the foregoing embodiments are based on the same concept, and the content of each method embodiment may refer to the foregoing embodiments, and details are not described herein.
作为本申请实施例的又另一方面,本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,所述 计算机可执行指令用于使电子设备执行如上任一项所述的域名解析方法。As still another aspect of the embodiments of the present application, an embodiment of the present application provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer executable instructions, The computer executable instructions are for causing an electronic device to perform the domain name resolution method of any of the above.
由于边缘节点知悉各个内容服务节点的状态,解析结果更加准确,因此,其能够为客户端推荐最优的IP地址。Since the edge node knows the state of each content service node, the analysis result is more accurate, so it can recommend the optimal IP address for the client.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (26)

  1. 一种域名解析方法,应用于客户端,其特征在于,包括:A domain name resolution method is applied to a client, and is characterized by:
    向中心域名服务器发送第一Http(s)域名解析请求;Sending a first Http(s) domain name resolution request to the central domain name server;
    在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,接收所述中心域名服务器返回的跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点;Receiving, by the central domain name server, a jump status code and a jump URL, where the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a distributed type, where the jump URL points to serve the client The edge node of the area where the end is located;
    根据所述跳转状态码向所述边缘节点发送第二Http(s)域名解析请求,以使所述边缘节点根据所述第二Http(s)域名解析请求解析出所述待解析域名对应的IP地址;Sending a second Http(s) domain name resolution request to the edge node according to the jump state code, so that the edge node parses the corresponding domain name to be resolved according to the second Http(s) domain name resolution request. IP address;
    接收所述边缘节点返回的所述IP地址。Receiving the IP address returned by the edge node.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在所述第一Http(s)域名解析请求的待解析域名属于非分布式类型时,根据所述中心域名服务器返回的Http(s)域名解析响应,跳转至对应的服务器。When the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a non-distributed type, the Http(s) domain name resolution response returned by the central domain name server is redirected to the corresponding server.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    向所述IP地址指向的所述边缘节点发送内容服务请求。Sending a content service request to the edge node pointed to by the IP address.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述跳转状态码为302重定向的状态码。The method according to any one of claims 1 to 3, wherein the jump status code is a 302 redirected status code.
  5. 一种域名解析方法,应用于边缘节点,其特征在于,包括:A domain name resolution method is applied to an edge node, and includes:
    接收客户端发送的第二Http(s)域名解析请求;Receiving a second Http(s) domain name resolution request sent by the client;
    根据所述第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向所述客户端返回所述IP地址。And parsing the IP address corresponding to the domain to be resolved according to the second Http(s) domain name resolution request, and returning the IP address to the client.
  6. 根据权利要求5所述的方法,其特征在于,所述边缘节点包括边缘域名服务器、调度服务器及应用服务器;The method according to claim 5, wherein the edge node comprises an edge domain name server, a scheduling server, and an application server;
    所述根据所述第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向所述客户端返回所述IP地址,包括:And parsing the IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and returning the IP address to the client, including:
    所述边缘域名服务器根据所述第二Http(s)域名解析请求触发所述调度服务器访问所述应用服务器;The edge domain name server triggers the scheduling server to access the application server according to the second Http(s) domain name resolution request;
    当所述应用服务器的资源使用情况属于可用状态时,所述调度服务器根据所述应用服务器的资源使用情况与预设调度规则,向所述边缘域名服务器返回 所述待解析域名对应的IP地址;When the resource usage of the application server is in an available state, the scheduling server returns to the edge domain name server according to the resource usage of the application server and a preset scheduling rule. The IP address corresponding to the domain name to be resolved;
    所述边缘域名服务器向所述客户端返回所述IP地址。The edge domain name server returns the IP address to the client.
  7. 根据权利要求6所述的方法,其特征在于,所述调度服务器返回所述待解析域名对应的IP地址的方式包括主动发送和/或被动发送。The method according to claim 6, wherein the manner in which the scheduling server returns the IP address corresponding to the domain name to be resolved includes active sending and/or passive sending.
  8. 根据权利要求6所述的方法,其特征在于,所述根据所述第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向所述客户端返回所述IP地址,还包括:The method according to claim 6, wherein the IP address corresponding to the domain name to be resolved is parsed according to the second Http(s) domain name resolution request, and the IP address is returned to the client, include:
    当所述应用服务器的资源使用情况属于停用状态时,所述边缘域名服务器根据所述第二Http(s)域名解析请求直至访问到可向所述客户端返回所述IP地址的另外预设边缘节点。When the resource usage of the application server is in a deactivated state, the edge domain name server according to the second Http(s) domain name resolution request until accessing another preset that can return the IP address to the client Edge node.
  9. 一种域名解析方法,应用于中心域名服务器,其特征在于,包括:A domain name resolution method is applied to a central domain name server, and is characterized in that:
    接收客户端发送的第一Http(s)域名解析请求,所述第一Http(s)域名解析请求包括待解析域名;Receiving a first Http(s) domain name resolution request sent by the client, where the first Http(s) domain name resolution request includes a domain name to be resolved;
    在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,向所述客户端返回跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点。And when the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a distributed type, returning a jump status code and a jump URL to the client, where the jump URL points to serve the client The edge node of the region.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9 wherein the method further comprises:
    在所述第一Http(s)域名解析请求的待解析域名属于非分布式类型时,向客户端返回Http(s)域名解析响应,以使所述客户端跳转至对应的服务器。When the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a non-distributed type, the Http(s) domain name resolution response is returned to the client, so that the client jumps to the corresponding server.
  11. 根据权利要求9所述的方法,其特征在于,所述跳转状态码为302重定向的状态码。The method of claim 9, wherein the jump status code is a 302 redirected status code.
  12. 一种域名解析装置,应用于客户端,其特征在于,包括:A domain name resolution device is applied to a client, and includes:
    第一发送模块,用于向中心域名服务器发送第一Http(s)域名解析请求;a first sending module, configured to send a first Http(s) domain name resolution request to the central domain name server;
    第一接收模块,用于在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,接收所述中心域名服务器返回的跳转状态码与跳转URL,所述跳转URL指向服务于所述客户端所在区域的边缘节点;a first receiving module, configured to receive a jump status code and a jump URL returned by the central domain name server when the to-be-resolved domain name of the first Http(s) domain name resolution request belongs to a distributed type, where the jump The URL points to an edge node serving the area where the client is located;
    第二发送模块,用于根据所述跳转状态码向所述边缘节点发送第二Http(s)域名解析请求,以使所述边缘节点根据所述第二Http(s)域名解析请求解析出所述待解析域名对应的IP地址;a second sending module, configured to send a second Http(s) domain name resolution request to the edge node according to the jump status code, so that the edge node parses out according to the second Http(s) domain name resolution request The IP address corresponding to the domain name to be resolved;
    第二接收模块,用于接收所述边缘节点返回的所述IP地址。 And a second receiving module, configured to receive the IP address returned by the edge node.
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    跳转模块,用于在所述第一Http(s)域名解析请求的待解析域名属于非分布式类型时,根据所述中心域名服务器返回的Http(s)域名解析响应,跳转至对应的服务器。a jump module, configured to: when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a non-distributed type, according to the Http(s) domain name resolution response returned by the central domain name server, jump to the corresponding server.
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    第三发送模块,用于向所述IP地址指向的所述边缘节点发送内容服务请求。And a third sending module, configured to send a content service request to the edge node pointed by the IP address.
  15. 根据权利要求12至14任一项所述的装置,其特征在于,所述跳转状态码为302重定向的状态码。The apparatus according to any one of claims 12 to 14, wherein the jump status code is a 302 redirected status code.
  16. 一种域名解析装置,应用于边缘节点,其特征在于,包括:A domain name resolution device is applied to an edge node, and includes:
    第三接收模块,用于接收客户端发送的第二Http(s)域名解析请求;a third receiving module, configured to receive a second Http(s) domain name resolution request sent by the client;
    解析模块,用于根据所述第二Http(s)域名解析请求解析出待解析域名对应的IP地址,并向所述客户端返回所述IP地址。The parsing module is configured to parse an IP address corresponding to the domain name to be resolved according to the second Http(s) domain name resolution request, and return the IP address to the client.
  17. 根据权利要求16所述的装置,其特征在于,所述边缘节点包括边缘域名服务器、调度服务器及应用服务器;The apparatus according to claim 16, wherein the edge node comprises an edge domain name server, a scheduling server, and an application server;
    所述解析模块用于:所述边缘域名服务器根据所述第二Http(s)域名解析请求触发所述调度服务器访问所述应用服务器;当所述应用服务器的资源使用情况属于可用状态时,所述调度服务器根据所述应用服务器的资源使用情况与预设调度规则,向所述边缘域名服务器返回所述待解析域名对应的IP地址;所述边缘域名服务器向所述客户端返回所述IP地址。The parsing module is configured to: the edge domain name server triggers the scheduling server to access the application server according to the second Http(s) domain name resolution request; and when the resource usage of the application server belongs to an available state, the Returning, by the scheduling server, the IP address corresponding to the domain to be resolved to the edge domain name server according to the resource usage of the application server and the preset scheduling rule; the edge domain name server returns the IP address to the client .
  18. 根据权利要求17所述的装置,其特征在于,所述调度服务器返回所述待解析域名对应的IP地址的方式包括主动发送和/或被动发送。The apparatus according to claim 17, wherein the manner in which the scheduling server returns an IP address corresponding to the domain name to be resolved includes active sending and/or passive sending.
  19. 根据权利要求17所述的装置,其特征在于,所述解析模块还用于:The apparatus according to claim 17, wherein the parsing module is further configured to:
    当所述应用服务器的资源使用情况属于停用状态时,所述边缘域名服务器根据所述第二Http(s)域名解析请求直至访问到可向所述客户端返回所述IP地址的另外预设边缘节点。When the resource usage of the application server is in a deactivated state, the edge domain name server according to the second Http(s) domain name resolution request until accessing another preset that can return the IP address to the client Edge node.
  20. 一种域名解析装置,应用于中心域名服务器,其特征在于,包括:A domain name resolution device is applied to a central domain name server, and includes:
    第四接收模块,用于接收客户端发送的第一Http(s)域名解析请求,所述第一Http(s)域名解析请求包括待解析域名;a fourth receiving module, configured to receive a first Http(s) domain name resolution request sent by the client, where the first Http(s) domain name resolution request includes a domain name to be resolved;
    第一返回模块,用于在所述第一Http(s)域名解析请求的待解析域名属于分布式类型时,向所述客户端返回跳转状态码与跳转URL,所述跳转URL指向服务 于所述客户端所在区域的边缘节点。a first returning module, configured to: when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a distributed type, return a jump status code and a jump URL to the client, where the jump URL points Service An edge node in the area where the client is located.
  21. 根据权利要求20所述的装置,其特征在于,所述装置还包括:The device of claim 20, wherein the device further comprises:
    第二返回模块,用于在所述第一Http(s)域名解析请求的待解析域名属于非分布式类型时,向客户端返回Http(s)域名解析请求的响应,以使所述客户端跳转至对应的服务器。a second returning module, configured to: when the domain name to be resolved of the first Http(s) domain name resolution request belongs to a non-distributed type, return a response of the Http(s) domain name resolution request to the client, so that the client Jump to the corresponding server.
  22. 根据权利要求20所述的装置,其特征在于,所述跳转状态码为302重定向的状态码。The apparatus of claim 20 wherein said jump status code is a 302 redirected status code.
  23. 一种客户端,其特征在于,包括:A client, comprising:
    至少一个处理器;以及At least one processor;
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够用于执行如权利要求1至4任一项所述的域名解析方法。a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processing The device can be used to perform the domain name resolution method according to any one of claims 1 to 4.
  24. 一种边缘节点,其特征在于,包括:An edge node, comprising:
    至少一个处理器;以及At least one processor;
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够用于执行如权利要求5至8任一项所述的域名解析方法。a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processing The device can be used to perform the domain name resolution method according to any one of claims 5 to 8.
  25. 一种中心域名服务器,其特征在于,包括:A central domain name server, characterized by comprising:
    至少一个处理器;以及At least one processor;
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够用于执行如权利要求9至11任一项所述的域名解析方法。a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processing The device can be used to perform the domain name resolution method according to any one of claims 9 to 11.
  26. 一种域名解析系统,其特征在于,包括:A domain name resolution system, comprising:
    如权利要求23所述的客户端;The client of claim 23;
    如权利要求24所述的边缘节点,其与所述客户端通讯;The edge node of claim 24, communicating with the client;
    如权利要求25所述的中心域名服务器,其与所述客户端通讯。 The central domain name server of claim 25 in communication with said client.
PCT/CN2017/105083 2017-09-30 2017-09-30 Domain name resolution method, client, edge node, and domain name resolution system WO2019061522A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780003273.3A CN108353095B (en) 2017-09-30 2017-09-30 Domain name resolution method, client, edge node and domain name resolution system
PCT/CN2017/105083 WO2019061522A1 (en) 2017-09-30 2017-09-30 Domain name resolution method, client, edge node, and domain name resolution system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105083 WO2019061522A1 (en) 2017-09-30 2017-09-30 Domain name resolution method, client, edge node, and domain name resolution system

Publications (1)

Publication Number Publication Date
WO2019061522A1 true WO2019061522A1 (en) 2019-04-04

Family

ID=62961531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105083 WO2019061522A1 (en) 2017-09-30 2017-09-30 Domain name resolution method, client, edge node, and domain name resolution system

Country Status (2)

Country Link
CN (1) CN108353095B (en)
WO (1) WO2019061522A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221872A (en) * 2019-04-22 2019-09-10 五八有限公司 Method for page jump, device, electronic equipment and storage medium
CN111641732A (en) * 2020-06-01 2020-09-08 湖南快乐阳光互动娱乐传媒有限公司 Intelligent scheduling method and device
CN113010610A (en) * 2021-04-15 2021-06-22 上海绚显科技有限公司 Data synchronization method and device
CN113067909A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Edge node addressing method, device, equipment and storage medium
CN113067907A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Method and related equipment for addressing edge application
CN114157635A (en) * 2020-09-07 2022-03-08 中国移动通信集团湖南有限公司 Domain name back-source method and device for content distribution network, equipment and storage medium
CN114390060A (en) * 2021-12-13 2022-04-22 杭州网鼎科技有限公司 Method for distributing edge computing network and storage medium
CN114513487A (en) * 2020-10-28 2022-05-17 武汉斗鱼网络科技有限公司 Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium
CN115189940A (en) * 2022-07-08 2022-10-14 深圳依时货拉拉科技有限公司 Domain name resolution method and device, computer equipment and computer readable storage medium
CN115277380A (en) * 2022-08-02 2022-11-01 北京有竹居网络技术有限公司 Domain name resolution-based disaster tolerance method, device, system, equipment and storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788051A (en) * 2019-01-02 2019-05-21 深圳市网心科技有限公司 Network resource transmission method and system based on distributed file system
CN111064713B (en) * 2019-02-15 2021-05-25 腾讯科技(深圳)有限公司 Node control method and related device in distributed system
CN110933664B (en) * 2019-12-01 2022-09-20 杭州云缔盟科技有限公司 Method for accelerating acquisition of terminal public network IP
CN111064821A (en) * 2019-12-23 2020-04-24 北京达佳互联信息技术有限公司 Method and device for determining IP address of edge node
CN111327697B (en) * 2020-02-18 2022-01-11 腾讯科技(深圳)有限公司 Data downloading method, device, equipment and storage medium
CN113873048B (en) * 2020-06-12 2023-05-12 腾讯科技(上海)有限公司 Method and system for downloading application package in application downloading platform
CN114095578B (en) * 2020-08-03 2024-05-07 中国移动通信集团浙江有限公司 Function distribution method, unified scheduling platform, edge node and computing device
CN114124888A (en) * 2020-08-25 2022-03-01 中国移动通信有限公司研究院 Domain name resolution method and device
CN112468607B (en) * 2020-11-14 2023-01-31 北京网聚云联科技有限公司 DNS analysis method and system based on coding and decoding technology
CN112738289B (en) * 2020-12-24 2023-04-07 北京网聚云联科技有限公司 CDN node scheduling method and system based on coding DNS
CN113821461B (en) * 2021-09-24 2023-10-27 牙木科技股份有限公司 Domain name resolution caching method, DNS server and computer readable storage medium
CN115277694B (en) * 2022-06-29 2023-12-08 北京奇艺世纪科技有限公司 Data acquisition method, device, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242422A (en) * 2007-02-06 2008-08-13 中国电信股份有限公司 Content distribution network system and method applicable to multi-service fusion
US20100306368A1 (en) * 2007-12-13 2010-12-02 Highwinds Holdings, Inc. Content delivery network with customized tracking of delivery data
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
CN104184775A (en) * 2013-05-27 2014-12-03 电子科技大学 CDN-based domain name parse service model

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404378B (en) * 2010-09-07 2014-11-05 成都索贝数码科技股份有限公司 Streaming media distribution and transmission network system
ES2425626B1 (en) * 2011-05-12 2014-06-05 Telefónica, S.A. METHOD FOR DNS RESOLUTION OF CONTENT REQUESTS IN A CDN SERVICE
CN102668518B (en) * 2011-12-02 2013-10-02 华为技术有限公司 Content distribution network routing method, system, and user terminal
CN104320487B (en) * 2014-11-11 2018-03-20 网宿科技股份有限公司 The HTTP scheduling system and method for content distributing network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242422A (en) * 2007-02-06 2008-08-13 中国电信股份有限公司 Content distribution network system and method applicable to multi-service fusion
US20100306368A1 (en) * 2007-12-13 2010-12-02 Highwinds Holdings, Inc. Content delivery network with customized tracking of delivery data
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
CN104184775A (en) * 2013-05-27 2014-12-03 电子科技大学 CDN-based domain name parse service model

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221872A (en) * 2019-04-22 2019-09-10 五八有限公司 Method for page jump, device, electronic equipment and storage medium
CN110221872B (en) * 2019-04-22 2022-09-09 五八有限公司 Page jump method and device, electronic equipment and storage medium
CN113067909A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Edge node addressing method, device, equipment and storage medium
CN113067907A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Method and related equipment for addressing edge application
CN111641732B (en) * 2020-06-01 2023-01-24 湖南快乐阳光互动娱乐传媒有限公司 Intelligent scheduling method and device
CN111641732A (en) * 2020-06-01 2020-09-08 湖南快乐阳光互动娱乐传媒有限公司 Intelligent scheduling method and device
CN114157635A (en) * 2020-09-07 2022-03-08 中国移动通信集团湖南有限公司 Domain name back-source method and device for content distribution network, equipment and storage medium
CN114157635B (en) * 2020-09-07 2023-08-15 中国移动通信集团湖南有限公司 Domain name back-source method and device for content distribution network, equipment and storage medium
CN114513487A (en) * 2020-10-28 2022-05-17 武汉斗鱼网络科技有限公司 Method and device for accelerating domain name resolution, electronic equipment and computer readable storage medium
CN113010610A (en) * 2021-04-15 2021-06-22 上海绚显科技有限公司 Data synchronization method and device
CN114390060A (en) * 2021-12-13 2022-04-22 杭州网鼎科技有限公司 Method for distributing edge computing network and storage medium
CN115189940A (en) * 2022-07-08 2022-10-14 深圳依时货拉拉科技有限公司 Domain name resolution method and device, computer equipment and computer readable storage medium
CN115277380A (en) * 2022-08-02 2022-11-01 北京有竹居网络技术有限公司 Domain name resolution-based disaster tolerance method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN108353095B (en) 2021-10-22
CN108353095A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
WO2019061522A1 (en) Domain name resolution method, client, edge node, and domain name resolution system
US11632420B2 (en) Point of presence management in request routing
US11461402B2 (en) Routing based request correlation
US9160703B2 (en) Request routing management based on network components
US9800539B2 (en) Request routing management based on network components
US20190044787A1 (en) Point of presence management in request routing
EP2266064B1 (en) Request routing
US9191338B2 (en) Request routing in a networked environment
US8503433B2 (en) Routing methods and systems using ENUM servers
JP5739023B2 (en) System and method using a web proxy server to access a device having an assigned network address
US8468247B1 (en) Point of presence management in request routing
US8326956B2 (en) System and method for handling persistence information in a network
US10305800B2 (en) Preferential selection of IP protocol version with domain name matching on proxy servers
CN101540759B (en) Method for acquiring address of service server and communication system
WO2018148984A1 (en) Domain name resolution system, domain name resolution server, and domain name resolution method
US20160210366A1 (en) Method and apparatus for providing media resource
WO2019201072A1 (en) Cdn service scheduling processing method and cdn server
CN105493462B (en) A kind of content distribution method, device and system
WO2017097092A1 (en) Method and system for processing cache cluster service
WO2024198419A1 (en) Decentralized application access method and apparatus, electronic device and storage medium
CN107347100B (en) Transparent proxy forwarding method for content distribution network
US20230141097A1 (en) Converged voicemail provisioning and fqdn based voicemail call routing
CN107395778B (en) User source tracing method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17926976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17926976

Country of ref document: EP

Kind code of ref document: A1