WO2017202225A1 - Method for querying domain name, method for domain name proxy, server and system - Google Patents

Method for querying domain name, method for domain name proxy, server and system Download PDF

Info

Publication number
WO2017202225A1
WO2017202225A1 PCT/CN2017/084384 CN2017084384W WO2017202225A1 WO 2017202225 A1 WO2017202225 A1 WO 2017202225A1 CN 2017084384 W CN2017084384 W CN 2017084384W WO 2017202225 A1 WO2017202225 A1 WO 2017202225A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
query response
name query
server
user
Prior art date
Application number
PCT/CN2017/084384
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 中兴通讯股份有限公司
Publication of WO2017202225A1 publication Critical patent/WO2017202225A1/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

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a domain name query method, a domain name proxy method, a server and a system, and a storage medium.
  • the Domain Name System is an indispensable subsystem in the Internet, and there are tens of thousands of Domain Name System Servers (DNS Servers) in the Internet to provide users with DNS services.
  • DNS Servers Domain Name System Servers
  • ISPs Internet Service Providers
  • content providers to cache servers
  • other free Internet domain name services provided by Internet giants, such as Google's public domain name resolution service. (Google Public DNS) and more.
  • the domain name is resolved by accessing the domain name system server (DNS Server) to the Internet Protocol IP address for browsing, and the cache server is also used to access the highly available DNS when performing cache acceleration. Server can complete the correct reverse proxy function.
  • DNS Server domain name system server
  • the domain name query is sent directly to the access domain name server (DNS Server) to resolve the domain name into an internet protocol IP address, and when using these DNS, the DNS server cannot guarantee to return in time. Effective response, or even DNS Server returned a valid response, but the response IP is too "far" from the user.
  • the Apple Store domain name corresponds to multiple IP addresses. Among these IP addresses, there are US, Hong Kong, and mainland China. When a Chinese mainland user visits the Apple Store, if the DNS Server returns the US IP, the Chinese users accessing the Apple Store are naturally "far" and the user experience is also poor. Also, the DNS Server cannot return a valid response in time. If you return an illegal IP, etc., it will seriously affect the user experience and affect the cache server for effective caching.
  • the embodiment of the present invention provides a domain name query method, a domain name proxy method, a server and a system, and a storage medium, which can access a plurality of domain name servers through a domain name proxy server to query a domain name, and respond to a valid domain name query. Return to the user, which can help users get domain name query response quickly and effectively, and improve user experience.
  • the embodiment of the invention provides a domain name query method, which is applied to a domain name server cluster, and the method includes:
  • the embodiment of the present invention provides a method for querying a domain name, which returns a domain name query response of all queries to a domain name proxy server through one or more domain name servers to make a decision, and sends a domain name query to the user.
  • the domain name query response closest to the IP address of the local Internet protocol is queried by the user, thereby enabling the user to quickly return a timely and valid domain name query response, thereby improving the user experience.
  • the embodiment of the invention provides a method for a domain name proxy, the method comprising:
  • the embodiment of the present invention provides a method for a domain name proxy.
  • the domain name proxy server is connected to at least one domain name server to separately query a domain name query request of the user, and the returned domain name query response is determined by the user.
  • Query the nearest domain name query response of the local Internet Protocol IP address thereby ensuring that each time the domain name resolution request of the user can return a valid response in time, and the responding IP address is closest to the user, which improves the user experience.
  • An embodiment of the present invention provides a domain name proxy server, where the server includes: a standard domain name signaling interaction module module and an integrated decision management module;
  • the standard domain name signaling interaction module is configured to distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server;
  • the integrated decision management module is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet Protocol IP address of the location where the user queries the location;
  • the standard domain name signaling interaction module is configured to send the determined domain name query response to the user.
  • the embodiment of the present invention provides a domain name proxy server, which connects to at least one domain name server through a domain name proxy server to separately query a domain name query request of the user, so that the domain name query response can be quickly returned, and the domain name query is quickly returned.
  • the proxy server confirms the domain name query response closest to the IP address of the local Internet protocol of the user, so that the user can accurately and effectively help the user to return the domain name query response, thereby improving the user experience.
  • a further embodiment of the present invention provides a system for a domain name proxy, the system comprising: the item domain name proxy server and at least one domain name server, wherein the domain name server is configured to receive a user
  • the domain name query request initiated by the domain name proxy server is used to query the domain name according to the domain name query request, and the domain name query response is sent to the user through the domain name proxy server, where the domain name query response sent to the user is
  • the domain name proxy server determines the domain name query response closest to the Internet protocol IP address of the location where the user queries.
  • the embodiment of the present invention provides a domain name proxy system, which queries a domain name query request of a user by using multiple domain name servers in the domain name query system, so that the domain name query response can be quickly returned.
  • the domain name proxy server in the domain name query system determines the domain name query response in the domain name query response that is closest to the Internet protocol IP address of the user querying, so that the user can accurately and effectively help the user to return the domain name query response, thereby improving the user experience.
  • a further embodiment of the present invention provides a computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the method of domain name query described above.
  • a further embodiment of the present invention provides a computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the method of domain name proxy described above.
  • a further embodiment of the present invention provides a domain name proxy server including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor configured to implement the above-mentioned domain name proxy when the program is executed method.
  • FIG. 1 is a schematic flowchart of a method for querying a domain name according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for a domain name proxy according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a domain name proxy server according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an embodiment of a domain name query system according to an embodiment of the present invention.
  • the method of the embodiment of the present invention may be applied to a domain name proxy server and a domain name server in the Internet.
  • the domain name proxy server may be a router, a switch, or the like.
  • the domain name server may be a server, a computer, or the like, or may be a domain name server cluster or Domain name computer clusters, etc., but not limited to this.
  • the method according to the embodiment of the present invention is to solve the technical problem that the domain name query cannot return a valid domain name query response in time in the prior art.
  • FIG. 1 is a schematic flowchart diagram of a method for querying a domain name according to an embodiment of the present invention.
  • the execution subject involved in this embodiment is a domain name server, and how to implement a fast and efficient method for returning a domain name query response.
  • the method includes:
  • S101 Receive a domain name query request initiated by a user through a domain name proxy server.
  • the user may initiate a domain name query request by using a domain name proxy server in a unicast manner.
  • the device may be a domain name proxy server (DNS proxy).
  • DNS proxy domain name proxy server
  • the domain name query request includes information such as a domain name and a domain name address.
  • the domain name server may be a domain name server or a DNS server cluster containing multiple domain name servers. For example, the domain name server There are N DNS servers in the cluster, namely DNS 1, DNS2, DNS 3...DNS N. Each DNS Server in the DNS Server Cluster will receive a user-initiated domain name query request, but is not limited to this.
  • each DNS server in the above-mentioned DNS Server Cluster receives according to The domain name query request initiated by the user performs respective domain name resolution and query actions. After the action is completed, each DNS server sends a domain name query response to the DNS proxy, but is not limited thereto.
  • each DNS server sends the queried domain name query response to the domain name proxy server DNS Proxy, and the domain name proxy server selects the domain name query response that is closest to the user's local Internet Protocol IP address.
  • the domain name query response carrying the identifier of the Internet Protocol IP address of the location where the user queries the location may be sent to the user.
  • the domain name of the Apple Store corresponds to multiple IP addresses.
  • IP addresses there are US, Hong Kong, and mainland China.
  • the domain name proxy server filters out the domain name query response carrying the identifier of the local Internet Protocol IP address belonging to the same area as the Internet Protocol IP address of the user. If the example is continued, the Chinese mainland user accesses the Apple Store and returns the corresponding China's IP is given to users, which facilitates quick access for users and improves user experience.
  • a method for querying a domain name includes: receiving a domain name query request initiated by a domain name proxy server, querying the domain name according to the domain name query request, and using the domain name proxy after the query
  • the server sends the identifier to the user, where the domain name query response after the query carries the identifier of the Internet Protocol IP address of the location where the user queries.
  • the domain name query response of all the queries is returned to the domain name proxy server through one or more domain name servers to make a decision, and the domain name query response sent to the user in the domain name query response is determined to be the closest to the domain name query address of the local Internet protocol IP address of the user, thereby enabling Quickly help users return timely and effective domain name query response, which improves user experience.
  • FIG. 2 is a schematic flowchart diagram of a method for querying a domain name according to an embodiment of the present invention.
  • the execution subject involved in this embodiment is a domain name proxy server, and how to implement a fast and efficient method for returning a domain name query response.
  • the method includes:
  • S201 Distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server.
  • the user may initiate a domain name query request to the domain name server by using a unicast method.
  • the device may be a domain name proxy server (DNS proxy).
  • DNS proxy domain name proxy server
  • the domain name query request includes information such as a domain name and a domain name address
  • the domain name proxy server receives the domain name query request initiated by the user, the domain name query request is distributed to the at least one domain name server to query the domain name.
  • the domain name server may be a group of domain name server clusters. A list of free domain name servers (DNS servers) that are commonly used by users or have been collected. This list is abstracted as DNS Server Cluster.
  • This list can be configured in a domain name proxy server (DNS Proxy), so that the domain name proxy server can be based on The group of columns
  • DNS Proxy domain name proxy server
  • the table distributes the domain name query request of the user to each domain name server in the list to query the domain name, that is, when the DNS proxy receives the domain name query request of the user, the request is broadcasted to the DNS server cluster (DNS Server Cluster).
  • DNS Server Cluster Each DNS server, that is, DNS 1, DNS2, DNS 3...DNS N, each DNS Server in the DNS Server Cluster will perform its own domain name resolution and query actions, and return the domain name query response after the query to the domain name proxy.
  • the server may perform the sorting of the domain name query response in the "queue" according to the order of the time when the domain name query response is received. If the domain name query response is encountered, the query may be unsuccessful. The domain name query response is discarded, but is not limited to this.
  • the domain name proxy server determines a domain name query response returned by the received domain name server cluster, and determines a domain name query response in the returned domain name query that is closest to the Internet protocol IP address of the location where the user queries the location, that is, It may be a domain name query response carrying an Internet Protocol IP address identifier of the location where the user queries (referred to as: local), for example, a DNS proxy may retrieve the "queue” after sorting, if the first element of the "queue" If the identified IP address belongs to the local IP address, the DNS Proxy determines to return the first element of the "queue" to the user.
  • the domain name query ends.
  • the DNS Proxy determines to return the queue element corresponding to the IP closest to the user to the user.
  • the domain name proxy server sends the domain name query response to the user according to the determined domain name query response, so that the user can obtain a valid domain name query response in time for each domain name resolution request, and the domain name query responds.
  • the IP address is the closest to the user.
  • the method for the domain name proxy includes: distributing a domain name query request initiated by a user to at least one domain name server to query the domain name, and receiving a domain name query response returned by each domain name server, and determining the returned
  • the domain name query response carries the domain name query response of the Internet Protocol IP address identifier of the location where the user queries the location, and sends the determined domain name query response to the user.
  • the domain name proxy server is connected to the at least one domain name server to query the domain name query request of the user separately, and the domain name query response in the returned domain name query response with the user querying the local Internet protocol IP address is determined, thereby ensuring the domain name of each user.
  • the parsing request can return a valid response in time, and the responding IP address is closest to the user, which improves the user's experience.
  • the method before the domain name query request initiated by the user is distributed to the at least one domain name server to query the domain name, the method further includes:
  • a configuration file of a domain name server list may be deployed on a domain name proxy server, and the configuration file is a list of free domain name servers (DNS servers) that are commonly used by users or have been collected.
  • DNS servers free domain name servers
  • the abstract is a DNS server cluster.
  • the domain name query request of the user can be quickly and accurately distributed.
  • the method after receiving the domain name query response returned by each domain name server, the method further includes:
  • the domain name proxy server may filter out the domain name query response in the queue that meets the predetermined rule, and the predetermined rule may be determined according to actual conditions. For example, if the domain name query response returned by the specified time (such as 5 seconds) is exceeded, the DNS proxy directly discards it, or if the returned Internet Protocol IP address of the returned domain name query is garbled, etc., the DNS proxy directly discards it, and according to The order is stored in the queue.
  • the order can be chronological.
  • the domain name query response can be stored according to the order of the IP address segments.
  • the DNS proxy can query the response arrival time according to the domain name returned by each DNS Server in the DNS Server Cluster.
  • the order of the domain name query is stored in the queue according to the chronological order of the domain name proxy server, or the order of the IP address segments to which the Internet Protocol IP address is responded according to the domain name returned by each DNS Server, but Not limited to this.
  • the domain name proxy server can quickly filter out the domain name query response that meets the user requirements and is optimal.
  • the domain name query response that meets the predetermined rule is filtered out and stored in the queue in order, including:
  • the domain name query response that the response time of the returned domain name query response meets the threshold or the Internet Protocol IP address is correct, and is stored in the queue according to the order of the response time.
  • the received domain name query response needs to be filtered, and a threshold may be set according to the returned response time.
  • the threshold may determine whether the domain name query response is valid, and may also be based on the returned Internet Protocol IP address. Whether it is correct, to determine whether the domain name query response is valid, for example, if the "domain name query response" is found to exceed the specified time (such as 5 seconds), the DNS proxy will directly discard it, or the returned Internet Protocol IP address is garbled, The DNS Proxy directly discards it, so that it can return a valid domain name query response in time, and store it in the order of the response time of each domain name server returning the domain name query response.
  • each DNS Server in the DNS Server Cluster will perform its own domain name resolution.
  • the query action returns a domain name query response to the domain name proxy server, and the domain name proxy server sorts each domain name query response in the queue according to the order of the response time of the domain name query response returned by each domain name server.
  • determining a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location includes:
  • the domain name proxy server retrieves the domain name query response in the sorted queue. If the first one of the queues carries the domain name query response of the local Internet Protocol IP address identifier, The DNS Proxy directly returns the first one in the queue to the user, that is, the domain name query ends. If the IP address of the first identifier of the queue does not belong to the local IP address queried by the user, the entire queue is traversed and the first one is found. The ID of the IP address in the queue belongs to the local IP address query response, and responds to the user through the DNS proxy. For example, the domain name query response can correspond to many IP addresses, for example, Apple's website, in the US, China, Japan, etc.
  • IP IP address
  • the user's China IP address of the Apple website is determined. This ensures that the user's domain name resolution request can return a valid domain name query response in time, and the domain name query responds. IP is the closest to the user.
  • the user can ensure that each domain name resolution request can return a valid domain name query response in time. And the IP of the domain name query response is closest to the user.
  • the method further includes:
  • the domain name proxy server after filtering out the domain name query response that the response time of the return domain name query response meets the threshold, obtains the Internet Protocol IP address segment from the global Internet Protocol IP database, and the IP address segment is A set of IP address ranges describing different regions of the world, such as: an IP segment describing the provinces and cities in mainland China, an IP segment describing the US region, an IP segment describing the Taiwan region, and so on.
  • the domain name proxy server can quickly determine the domain name query response that is closest to the location where the user queries the domain name.
  • the Internet Protocol IP address segment to which the Internet Protocol IP address is responded according to the filtered domain name query is stored in the queue.
  • the filtered valid domain name query response is stored in the queue in the order of the Internet Protocol IP address segment to which the Internet Protocol IP address of the domain name query response belongs, for example, each domain name server.
  • the Internet Protocol IP of the returned domain name has an IP address segment belonging to the China region, an IP address segment of the US region or an IP address segment of other regions, which may be determined according to the actual situation, according to the IP address segment of the region to which it belongs. Sort the domain name query responses in order, so as to quickly find out the domain name query response stored in the queue. A domain name query response that belongs to the Internet Protocol IP address segment of the location where the user queries the location is sent to the user.
  • the Internet Protocol IP address segment to which the Internet Protocol IP address is responded according to the filtered domain name query is stored in the queue, so that the domain name proxy server can quickly determine the optimal domain name query response from the valid domain name query response. user.
  • determining a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location includes:
  • the valid domain name query response is performed after the screening, and the domain name query response in the returned domain name query that is closest to the Internet protocol IP address of the user query location is determined, that is, the Internet protocol belongs to the location where the user queries.
  • the domain name query response of the IP address segment For example, the DNS proxy can retrieve the sorted "queue". If the IP address of the first element of the "queue" belongs to the local (local) IP address of the user query, Then the DNS Proxy determines to return the first element of the "queue” to the user. The domain name query ends. If the IP address of the first element of the "queue" does not belong to the local IP, the entire "queue" is traversed and found. After the queue element corresponding to the user's latest IP, the DNS Proxy determines to return the queue element corresponding to the IP closest to the user to the user.
  • FIG. 3 is a schematic structural diagram of a domain name proxy server according to an embodiment of the present invention.
  • a domain name proxy server includes: a standard domain name signaling interaction module 10 and a comprehensive Decision decision management module 20;
  • the standard domain name signaling interaction module 10 is configured to distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server;
  • the integrated decision management module 20 is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location;
  • the standard domain name signaling interaction module 10 is configured to send the determined domain name query response to the user.
  • the domain name proxy server provided by the embodiment of the present invention includes a standard domain name signaling interaction module and an integrated decision management module; the standard domain name signaling interaction module distributes the user-initiated domain name query request to at least one domain name server to query the Domain name, and receiving a domain name query response returned by each domain name server, the comprehensive decision management module determines a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the user query location, and then the standard domain name signaling interaction module Sending the determined domain name query response to the user.
  • the standard domain name signaling interaction module distributes the user-initiated domain name query request to at least one domain name server to query the Domain name, and receiving a domain name query response returned by each domain name server, the comprehensive decision management module determines a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the user query location, and then the standard domain name signaling interaction module Sending the determined domain name query response to the user.
  • the domain name proxy server is connected to at least one domain name server to separately query the domain name query request of the user, so that the domain name query response can be quickly returned, and the domain name query response is confirmed by the domain name proxy server, and the domain name query response closest to the local Internet protocol IP address is queried by the user. It can help users return domain name query response accurately and effectively, which improves user experience.
  • the apparatus further includes: a domain name server cluster list management module 30;
  • the domain name server cluster list management module 30 is configured to obtain a domain name server list for performing domain name query.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • the integrated decision tube The management module 20 is configured to filter out the domain name query responses that meet the predetermined rules after receiving the domain name query response returned by each domain name server, and store them in the queue in order.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • the integrated decision management module 20 is configured to filter out domain name query responses that meet the predetermined rules and store them in the queue in order, which means:
  • the integrated decision management module 20 is configured to filter the domain name query responses whose response time of the returned domain name query response meets the threshold, and store them in the queue according to the order of the response time.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • the integrated decision management module 20 is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location. :
  • the integrated decision management module 20 is configured to determine the first domain name query response in the sorted queue or the domain name query response in the queue carrying the Internet Protocol IP address identifier of the location where the user queries.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • the server further includes: an Internet Protocol IP address segment management module 40;
  • the internet protocol IP address segment management module 40 is configured to obtain an internet protocol IP address segment from a global internet protocol IP database.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • the integrated decision management module 20 is configured to be stored in the queue in order, which means:
  • the integrated decision management module 20 is configured to store in the queue in the order of the Internet Protocol IP address segments to which the Internet Protocol IP address of the filtered domain name query response belongs.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • the integrated decision management module 20 is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location. :
  • the integrated decision management module 20 is configured to determine that the first domain name query response in the sorted queue or the domain name query response in the queue that belongs to the Internet Protocol IP address segment of the location where the user queries the location is sent to the user.
  • the device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
  • FIG. 4 is a schematic structural diagram of a system for performing a domain name proxy according to an embodiment of the present invention.
  • a domain name query system includes: the domain name proxy server and at least one domain name server.
  • the user may edit the domain name query request through the client, and the client may be a mobile terminal such as a desktop computer, a tablet computer, or a mobile phone, and send the domain name query request to the domain name proxy.
  • the server distributes to each domain name server in the domain name server cluster through the domain name proxy server, such as: DNS1, DNS2, DNS3, ... DNSN, etc., and then each domain name server responds to the domain name proxy server according to the domain name query request returned by the domain name query request.
  • the system determines that the domain name query response in the returned domain name query response is the same as the domain name query address of the Internet protocol IP address of the user querying, so that the user can quickly and effectively query the domain name, thereby improving user satisfaction.
  • the system of the domain name proxy provided by the embodiment of the present invention includes: the domain name proxy server and the at least one domain name server of any one of the foregoing domain name proxy server embodiments, and the domain name of the user is used by multiple domain name servers in the domain name query system.
  • the query request is separately queried, so that the domain name query response can be quickly returned, and the domain name proxy server in the domain name query system determines the domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the user query location, so that the query can be accurate and effective. Help users return domain name query responses, improving user experience.
  • the standard domain name signaling interaction module module and the comprehensive decision management module in the domain name proxy server can be configured by a central processing unit (CPU) and a microprocessor (Micro Processor) located on the domain name proxy server.
  • CPU central processing unit
  • Micro Processor Micro Processor
  • Unit, MPU Digital Signal Processor
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the above domain name query method or domain name proxy method is implemented in the form of a software function module, and is sold or used as a separate product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • a further embodiment of the present invention provides a computer storage medium having stored therein computer executable instructions configured to perform the method of domain name query described above.
  • a further embodiment of the present invention provides a computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the method of domain name proxy described above.
  • a further embodiment of the present invention provides a domain name proxy server including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor configured to implement the above-mentioned domain name proxy when the program is executed method.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the components shown or discussed are mutually
  • the coupling, or direct coupling, or communication connection may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM read only memory
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.
  • the domain name proxy server is connected to the at least one domain name server to separately query the domain name query request of the user, so that the domain name query response can be quickly returned, and the domain name query response is determined by the domain name proxy server and the user query is obtained.
  • the nearest domain name query response of the local Internet Protocol IP address enables the user to quickly return a timely and valid domain name query response, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed in the embodiments of the present invention are a method for querying domain name, a method for domain name proxy, a server and a system, and a storage medium, the method comprising: receiving a domain name query request initiated by a user by means of a domain name proxy server; querying the domain name according to the domain name query request; sending a queried domain name query response to the user by means of the domain name proxy server, wherein the domain name query response sent to the user is a domain name query response which is closest to an internet protocol (IP) of a location where the querying user is located, as determined by the domain name proxy server.

Description

域名查询的方法以及域名代理的方法、服务器和***Method for domain name query and method, server and system for domain name agent
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610362365.8、申请日为2016年05月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。The present application is filed on the basis of the Chinese Patent Application No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及互联网技术领域,尤指一种域名查询方法以及域名代理方法、服务器和***、存储介质。The present invention relates to the field of Internet technologies, and in particular, to a domain name query method, a domain name proxy method, a server and a system, and a storage medium.
背景技术Background technique
目前,在互联网的应用中,域名***(Domain Name System,DNS)是互联网中必不可少的一个子***,且互联网中有数以万计的域名***服务器(DNS Server)给用户提供DNS服务,其中,有互联网服务提供商(Internet Service Provider,ISP)提供给用户的,也有内容提供商提供给缓存服务器的,还有其他一些互联网巨头提供的免费域名***服务,如:谷歌公司的公共域名解析服务(Google Public DNS)等等。At present, in the application of the Internet, the Domain Name System (DNS) is an indispensable subsystem in the Internet, and there are tens of thousands of Domain Name System Servers (DNS Servers) in the Internet to provide users with DNS services. There are Internet Service Providers (ISPs) available to users, and content providers to cache servers, as well as other free Internet domain name services provided by Internet giants, such as Google's public domain name resolution service. (Google Public DNS) and more.
现有技术中,通过互联网进行上网时,都是通过访问域名***服务器(DNS Server)将域名解析成互联网协议IP地址进行浏览,还有缓存服务器在进行缓存加速时,也是通过访问高可用的DNS Server,才可以完成正确的反向代理功能。In the prior art, when accessing the Internet via the Internet, the domain name is resolved by accessing the domain name system server (DNS Server) to the Internet Protocol IP address for browsing, and the cache server is also used to access the highly available DNS when performing cache acceleration. Server can complete the correct reverse proxy function.
但是,采用现有技术,是将域名查询直接发送给访问域名***服务器(DNS Server)来将域名解析成互联网协议IP地址,而在使用这些DNS时,DNS Server并不能够保证每次都及时返回有效的响应,或者即便DNS  Server返回了有效的响应,但响应的IP离用户太“远”,比如:Apple Store的域名对应多个IP地址,这些IP地址中,有美国的,有香港的,还有中国大陆的,在某中国大陆用户访问Apple Store时,如果DNS Server返回了美国的IP,则中国大陆用户访问Apple Store自然很“远”了,用户体验也较差了,还有就是DNS Server不能及时返回有效响应的,如返回非法IP的等等情况,都会严重影响用户体验,影响缓存服务器进行有效缓存。However, with the prior art, the domain name query is sent directly to the access domain name server (DNS Server) to resolve the domain name into an internet protocol IP address, and when using these DNS, the DNS server cannot guarantee to return in time. Effective response, or even DNS Server returned a valid response, but the response IP is too "far" from the user. For example, the Apple Store domain name corresponds to multiple IP addresses. Among these IP addresses, there are US, Hong Kong, and mainland China. When a Chinese mainland user visits the Apple Store, if the DNS Server returns the US IP, the Chinese users accessing the Apple Store are naturally "far" and the user experience is also poor. Also, the DNS Server cannot return a valid response in time. If you return an illegal IP, etc., it will seriously affect the user experience and affect the cache server for effective caching.
发明内容Summary of the invention
为了解决上述技术问题,本发明实施例提供了一种域名查询方法以及域名代理方法、服务器和***、存储介质,能够通过域名代理服务器访问多个域名服务器来查询域名,并将有效的域名查询响应返回给用户,从而可以帮助用户快速有效地获取域名查询响应,提高了用户体验度。In order to solve the above technical problem, the embodiment of the present invention provides a domain name query method, a domain name proxy method, a server and a system, and a storage medium, which can access a plurality of domain name servers through a domain name proxy server to query a domain name, and respond to a valid domain name query. Return to the user, which can help users get domain name query response quickly and effectively, and improve user experience.
本发明实施例提供了一种域名查询的方法,应用于域名服务器集群,该方法包括:The embodiment of the invention provides a domain name query method, which is applied to a domain name server cluster, and the method includes:
接收用户通过域名代理服务器发起的域名查询请求;Receiving a domain name query request initiated by a user through a domain name proxy server;
根据所述域名查询请求查询所述域名;Querying the domain name according to the domain name query request;
将查询后的域名查询响应通过所述域名代理服务器发送给用户,其中,所述发送给用户的域名查询响应是由所述域名代理服务器确定出与用户查询所在地互联网协议IP地址最近的域名查询响应。Sending the queried domain name query response to the user by using the domain name proxy server, wherein the domain name query response sent to the user is determined by the domain name proxy server to determine the domain name query response closest to the Internet protocol IP address of the location where the user queries the location .
相比现有技术,本发明实施例提供了一种域名查询的方法,通过一个或者多个域名服务器将所有查询的域名查询响应返回给域名代理服务器来进行决策,决策出发送给用户的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,从而使得可以快速地帮助用户返回及时有效的域名查询响应,提高了用户的体验度。Compared with the prior art, the embodiment of the present invention provides a method for querying a domain name, which returns a domain name query response of all queries to a domain name proxy server through one or more domain name servers to make a decision, and sends a domain name query to the user. In response, the domain name query response closest to the IP address of the local Internet protocol is queried by the user, thereby enabling the user to quickly return a timely and valid domain name query response, thereby improving the user experience.
本发明实施例提供了一种域名代理的方法,该方法包括:The embodiment of the invention provides a method for a domain name proxy, the method comprising:
将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域 名,并接收每个域名服务器返回的域名查询响应;Distributing a user-initiated domain name query request to at least one domain name server to query the domain Name and receive the domain name query response returned by each domain name server;
确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应;Determining the domain name query response in the returned domain name query response that is closest to the Internet Protocol IP address of the location where the user queries the location;
将确定后的域名查询响应发送给所述用户。Sending the determined domain name query response to the user.
相比现有技术,本发明提实施例供了一种域名代理的方法,通过域名代理服务器连接至少一个域名服务器来对用户的域名查询请求分别进行查询,确定出所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,从而保证了用户的每次域名解析请求都能够及时返回有效的响应,并且响应的IP地址是离用户最近的,提高了用户的体验度。Compared with the prior art, the embodiment of the present invention provides a method for a domain name proxy. The domain name proxy server is connected to at least one domain name server to separately query a domain name query request of the user, and the returned domain name query response is determined by the user. Query the nearest domain name query response of the local Internet Protocol IP address, thereby ensuring that each time the domain name resolution request of the user can return a valid response in time, and the responding IP address is closest to the user, which improves the user experience.
本发明实施例提供了一种域名代理服务器,所述服务器包括:标准域名信令交互模块模块和综合决策管理模块;An embodiment of the present invention provides a domain name proxy server, where the server includes: a standard domain name signaling interaction module module and an integrated decision management module;
所述标准域名信令交互模块配置为将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应;The standard domain name signaling interaction module is configured to distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server;
所述综合决策管理模块配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应;The integrated decision management module is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet Protocol IP address of the location where the user queries the location;
所述标准域名信令交互模块配置为将确定后的域名查询响应发送给所述用户。The standard domain name signaling interaction module is configured to send the determined domain name query response to the user.
相比现有技术,本发明实施例提供了一种域名代理的服务器,通过域名代理服务器连接至少一个域名服务器来对用户的域名查询请求分别进行查询,从而可以快速返回域名查询响应,并通过域名代理服务器确认出与用户查询所在地互联网协议IP地址最近的域名查询响应,使得可以准确、有效的帮助用户返回域名查询响应,提高了用户的体验度。Compared with the prior art, the embodiment of the present invention provides a domain name proxy server, which connects to at least one domain name server through a domain name proxy server to separately query a domain name query request of the user, so that the domain name query response can be quickly returned, and the domain name query is quickly returned. The proxy server confirms the domain name query response closest to the IP address of the local Internet protocol of the user, so that the user can accurately and effectively help the user to return the domain name query response, thereby improving the user experience.
本发明还实施例提供一种域名代理的***,所述***包括:上述的项域名代理服务器和至少一个域名服务器,所述域名服务器配置为接收用户 通过域名代理服务器发起的域名查询请求,根据所述域名查询请求查询所述域名,将查询后的域名查询响应通过所述域名代理服务器发送给用户,其中,所述发送给用户的域名查询响应是由所述域名代理服务器确定出与用户查询所在地互联网协议IP地址最近的域名查询响应。A further embodiment of the present invention provides a system for a domain name proxy, the system comprising: the item domain name proxy server and at least one domain name server, wherein the domain name server is configured to receive a user The domain name query request initiated by the domain name proxy server is used to query the domain name according to the domain name query request, and the domain name query response is sent to the user through the domain name proxy server, where the domain name query response sent to the user is The domain name proxy server determines the domain name query response closest to the Internet protocol IP address of the location where the user queries.
相比现有技术,本发明实施例提供了一种域名代理的***,该***通过域名查询***中的多个域名服务器来对用户的域名查询请求分别进行查询,从而可以快速返回域名查询响应,并通过域名查询***中域名代理服务器确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,使得可以准确、有效的帮助用户返回域名查询响应,提高了用户的体验度。Compared with the prior art, the embodiment of the present invention provides a domain name proxy system, which queries a domain name query request of a user by using multiple domain name servers in the domain name query system, so that the domain name query response can be quickly returned. And the domain name proxy server in the domain name query system determines the domain name query response in the domain name query response that is closest to the Internet protocol IP address of the user querying, so that the user can accurately and effectively help the user to return the domain name query response, thereby improving the user experience. .
本发明还实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述的域名查询的方法。A further embodiment of the present invention provides a computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the method of domain name query described above.
本发明还实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述的域名代理的方法。A further embodiment of the present invention provides a computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the method of domain name proxy described above.
本发明还实施例提供一种域名代理服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器配置为执行所述程序时实现上述的域名代理的方法。A further embodiment of the present invention provides a domain name proxy server including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor configured to implement the above-mentioned domain name proxy when the program is executed method.
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the invention will be set forth in the description in the description which The objectives and other advantages of the invention may be realized and obtained by means of the structure particularly pointed in the appended claims.
附图说明DRAWINGS
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一 部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The drawings serve to provide a further understanding of the technical solution of the present invention and constitute one of the descriptions. In part, the technical solutions of the present invention are used to explain the technical solutions of the present invention, and do not constitute a limitation of the technical solutions of the present invention.
图1为本发明实施例提供的一种域名查询方法实施例的流程示意图;FIG. 1 is a schematic flowchart of a method for querying a domain name according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种域名代理方法实施例的流程示意图;2 is a schematic flowchart of a method for a domain name proxy according to an embodiment of the present disclosure;
图3为本发明实施例提供的一种域名代理服务器实施例的结构示意图;FIG. 3 is a schematic structural diagram of a domain name proxy server according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种域名查询***实施例的结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of a domain name query system according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
本发明实施例涉及的方法可以应用于互联网中的域名代理服务器以及域名服务器,该域名代理服务器可以是路由器、交换机等设备,该域名服务器可以是服务器、计算机等设备,还可以是域名服务器集群或者域名计算机集群等,但并不限于此。The method of the embodiment of the present invention may be applied to a domain name proxy server and a domain name server in the Internet. The domain name proxy server may be a router, a switch, or the like. The domain name server may be a server, a computer, or the like, or may be a domain name server cluster or Domain name computer clusters, etc., but not limited to this.
本发明实施例涉及的方法,旨在解决现有技术中域名查询不能及时返回有效的域名查询响应的技术问题。The method according to the embodiment of the present invention is to solve the technical problem that the domain name query cannot return a valid domain name query response in time in the prior art.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可以相互参考。The technical solutions of the present invention will be described in detail below with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may be referred to each other.
图1为本发明实施例提供的一种域名查询的方法实施例的流程示意图。本实施例涉及的执行主体是域名服务器,如何实现快速有效的返回域名查询响应的方法的具体过程。如图1所示,该方法包括:FIG. 1 is a schematic flowchart diagram of a method for querying a domain name according to an embodiment of the present invention. The execution subject involved in this embodiment is a domain name server, and how to implement a fast and efficient method for returning a domain name query response. As shown in Figure 1, the method includes:
S101、接收用户通过域名代理服务器发起的域名查询请求; S101. Receive a domain name query request initiated by a user through a domain name proxy server.
在本发明的其他实施例中,用户可以通过单播方式通过域名代理服务器发起域名查询请求,该装置可以是域名代理服务器(DNS Proxy),一般该域名查询请求包括域名、域名的地址等信息,当DNS Proxy接收到域名查询请求,会将这些请求广播给域名服务器,该域名服务器可以是一个域名服务器,也可以是包含多个域名服务器的域名服务器集群(DNS Server Cluster),例如:该域名服务器集群中有N台DNS服务器,即DNS 1,DNS2,DNS 3…DNS N,则DNS Server Cluster中的每台DNS Server会分别接收到用户发起的域名查询请求,但并不限于此。In other embodiments of the present invention, the user may initiate a domain name query request by using a domain name proxy server in a unicast manner. The device may be a domain name proxy server (DNS proxy). Generally, the domain name query request includes information such as a domain name and a domain name address. When the DNS Proxy receives the domain name query request, the request is broadcast to the domain name server. The domain name server may be a domain name server or a DNS server cluster containing multiple domain name servers. For example, the domain name server There are N DNS servers in the cluster, namely DNS 1, DNS2, DNS 3...DNS N. Each DNS Server in the DNS Server Cluster will receive a user-initiated domain name query request, but is not limited to this.
S102、根据所述域名查询请求查询所述域名。S102. Query the domain name according to the domain name query request.
在本发明的其他实施例中,上述域名服务器集群(DNS Server Cluster)中的每台DNS服务器,即DNS 1,DNS 2,DNS 3…DNS N,DNS Server Cluster中的每台DNS Server会根据接收到用户发起的域名查询请求分别进行各自的域名解析及查询动作,此动作完成后,每台DNS Server分别将域名查询响应发送到DNS Proxy,但并不限于此。In other embodiments of the present invention, each DNS server in the above-mentioned DNS Server Cluster, that is, DNS 1, DNS 2, DNS 3, DNS N, DNS Server Cluster, each DNS Server receives according to The domain name query request initiated by the user performs respective domain name resolution and query actions. After the action is completed, each DNS server sends a domain name query response to the DNS proxy, but is not limited thereto.
S103、将查询后的域名查询响应通过所述域名代理服务器发送给用户,其中,所述发送给用户的域名查询响应是由所述域名代理服务器确定出与用户查询所在地互联网协议IP地址最近的域名查询响应。S103. Send the queried domain name query response to the user by using the domain name proxy server, where the domain name query response sent to the user is determined by the domain name proxy server to be the domain name closest to the Internet protocol IP address of the location where the user queries the location. Query response.
在本发明的其他实施例中,每台DNS Server分别将查询后的域名查询响应发送到域名代理服务器DNS Proxy,由域名代理服务器选择出与用户查询所在地互联网协议IP地址最近的域名查询响应,即可以是携带有用户查询所在地互联网协议IP地址的标识的域名查询响应来发送给用户,例如:在用户查询域名时,可能对应多个互联网协议IP地址,例如:Apple Store的域名对应多个IP地址,在这些IP地址中,有美国的,有香港的,还有中国大陆的,在某中国大陆用户访问Apple Store时,如果DNS Server返回了美国的IP,则中国大陆用户访问Apple Store自然很“远”了,而可以通过 域名代理服务器筛选出携带有与所述用户的互联网协议IP地址隶属于同一区域的本地互联网协议IP地址的标识的域名查询响应,继续刚才的举例,则中国大陆用户访问Apple Store,会返回对应的中国的IP给用户,从而方便用户的快速访问,提高了用户的体验度。In other embodiments of the present invention, each DNS server sends the queried domain name query response to the domain name proxy server DNS Proxy, and the domain name proxy server selects the domain name query response that is closest to the user's local Internet Protocol IP address. The domain name query response carrying the identifier of the Internet Protocol IP address of the location where the user queries the location may be sent to the user. For example, when the user queries the domain name, it may correspond to multiple Internet Protocol IP addresses. For example, the domain name of the Apple Store corresponds to multiple IP addresses. Among these IP addresses, there are US, Hong Kong, and mainland China. When a Chinese mainland user visits the Apple Store, if the DNS Server returns the US IP, the Chinese users access the Apple Store naturally. Far away, but can pass The domain name proxy server filters out the domain name query response carrying the identifier of the local Internet Protocol IP address belonging to the same area as the Internet Protocol IP address of the user. If the example is continued, the Chinese mainland user accesses the Apple Store and returns the corresponding China's IP is given to users, which facilitates quick access for users and improves user experience.
本发明实施例提供的一种域名查询的方法,包括:接收用户通过域名代理服务器发起的域名查询请求,根据所述域名查询请求查询所述域名,将查询后的域名查询响应通过所述域名代理服务器发送给用户,其中,所述查询后的域名查询响应中携带有用户查询所在地互联网协议IP地址的标识。通过一个或者多个域名服务器将所有查询的域名查询响应返回给域名代理服务器来进行决策,决策出发送给用户的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,从而使得可以快速地帮助用户返回及时有效的域名查询响应,提高了用户的体验度。A method for querying a domain name according to an embodiment of the present invention includes: receiving a domain name query request initiated by a domain name proxy server, querying the domain name according to the domain name query request, and using the domain name proxy after the query The server sends the identifier to the user, where the domain name query response after the query carries the identifier of the Internet Protocol IP address of the location where the user queries. The domain name query response of all the queries is returned to the domain name proxy server through one or more domain name servers to make a decision, and the domain name query response sent to the user in the domain name query response is determined to be the closest to the domain name query address of the local Internet protocol IP address of the user, thereby enabling Quickly help users return timely and effective domain name query response, which improves user experience.
图2为本发明实施例提供的一种域名查询的方法实施例的流程示意图。本实施例涉及的执行主体是域名代理服务器,如何实现快速有效的返回域名查询响应的方法的具体过程。如图2所示,该方法包括:FIG. 2 is a schematic flowchart diagram of a method for querying a domain name according to an embodiment of the present invention. The execution subject involved in this embodiment is a domain name proxy server, and how to implement a fast and efficient method for returning a domain name query response. As shown in Figure 2, the method includes:
S201、将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应。S201. Distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server.
在本发明的其他实施例中,用户可以通过单播方式向域名服务器发起域名查询请求,该装置可以是域名代理服务器(DNS Proxy),一般该域名查询请求包括域名、域名的地址等信息,并在域名代理服务器接收到用户发起的域名查询请求之后,会将所述域名查询请求分发给至少一个域名服务器来查询所述域名,该域名服务器可以是一组域名服务器集群,在实际应用中,可以将用户常用的或者已经搜集到的免费的域名服务器(DNS Server)组成一组列表,此列表抽象为DNS Server Cluster,此列表可以配置在域名代理服务器(DNS Proxy)中,这样域名代理服务器可以根据该组列 表将用户的域名查询请求分发给列表中每个域名服务器来查询所述域名,即:当DNS Proxy接收到用户的域名查询请求,会将这些请求广播给DNS服务器集群(DNS Server Cluster)中的每台DNS服务器,即DNS 1,DNS2,DNS 3…DNS N,DNS Server Cluster中的每台DNS Server会分别进行各自的域名解析及查询动作,并将查询后的域名查询响应返回给该域名代理服务器,该域名代理服务器可以根据接收到域名查询响应的时间的先后顺序对域名查询响应进行排序存放在“队列”中,其中,如果有遇到超时的域名查询响应,即查询不成功,还可以对该域名查询响应进行舍弃,但并不限于此。In other embodiments of the present invention, the user may initiate a domain name query request to the domain name server by using a unicast method. The device may be a domain name proxy server (DNS proxy). Generally, the domain name query request includes information such as a domain name and a domain name address, and After the domain name proxy server receives the domain name query request initiated by the user, the domain name query request is distributed to the at least one domain name server to query the domain name. The domain name server may be a group of domain name server clusters. A list of free domain name servers (DNS servers) that are commonly used by users or have been collected. This list is abstracted as DNS Server Cluster. This list can be configured in a domain name proxy server (DNS Proxy), so that the domain name proxy server can be based on The group of columns The table distributes the domain name query request of the user to each domain name server in the list to query the domain name, that is, when the DNS proxy receives the domain name query request of the user, the request is broadcasted to the DNS server cluster (DNS Server Cluster). Each DNS server, that is, DNS 1, DNS2, DNS 3...DNS N, each DNS Server in the DNS Server Cluster will perform its own domain name resolution and query actions, and return the domain name query response after the query to the domain name proxy. The server may perform the sorting of the domain name query response in the "queue" according to the order of the time when the domain name query response is received. If the domain name query response is encountered, the query may be unsuccessful. The domain name query response is discarded, but is not limited to this.
S202、确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应。S202. Determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries.
在本发明的其他实施例中,域名代理服务器对所接收到的域名服务器集群返回的域名查询响应进行决策,确定出返回的域名查询中与用户查询所在地互联网协议IP地址最近的域名查询响应,即可以是携带有用户查询所在地(简称:本地)互联网协议IP地址标识的域名查询响应,例如:域名代理服务器(DNS Proxy)可以检索上面排序后的“队列”,如果“队列”的第一个元素标识的IP地址隶属于本地IP,则DNS Proxy确定将“队列”的第一个元素返回给用户,本次域名查询结束,如果“队列”的第一个元素标识的IP地址不属于本地IP,则遍历整个“队列”,找到离用户最近的IP对应的队列元素后,DNS Proxy确定将所找到的离用户最近的IP对应的队列元素返回给用户。In another embodiment of the present invention, the domain name proxy server determines a domain name query response returned by the received domain name server cluster, and determines a domain name query response in the returned domain name query that is closest to the Internet protocol IP address of the location where the user queries the location, that is, It may be a domain name query response carrying an Internet Protocol IP address identifier of the location where the user queries (referred to as: local), for example, a DNS proxy may retrieve the "queue" after sorting, if the first element of the "queue" If the identified IP address belongs to the local IP address, the DNS Proxy determines to return the first element of the "queue" to the user. The domain name query ends. If the IP address of the first element of the "queue" does not belong to the local IP address, Then, after traversing the entire "queue" and finding the queue element corresponding to the IP closest to the user, the DNS Proxy determines to return the queue element corresponding to the IP closest to the user to the user.
S203、将确定后的域名查询响应发送给所述用户。S203. Send the determined domain name query response to the user.
在本发明的其他实施例中,域名代理服务器会根据上述确定后的域名查询响应发送给用户,从而保证用户每次域名解析请求都能够得到及时返回有效的域名查询响应,并且该域名查询响应的IP地址是离用户最近的。 In another embodiment of the present invention, the domain name proxy server sends the domain name query response to the user according to the determined domain name query response, so that the user can obtain a valid domain name query response in time for each domain name resolution request, and the domain name query responds. The IP address is the closest to the user.
本发明实施例提供的一种域名代理的方法,包括:将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应,确定所返回的域名查询响应中携带有用户查询所在地互联网协议IP地址标识的域名查询响应,将确定后的域名查询响应发送给所述用户。通过域名代理服务器连接至少一个域名服务器来对用户的域名查询请求分别进行查询,确定出所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,从而保证了用户的每次域名解析请求都能够及时返回有效的响应,并且响应的IP地址是离用户最近的,提高了用户的体验度。The method for the domain name proxy provided by the embodiment of the present invention includes: distributing a domain name query request initiated by a user to at least one domain name server to query the domain name, and receiving a domain name query response returned by each domain name server, and determining the returned The domain name query response carries the domain name query response of the Internet Protocol IP address identifier of the location where the user queries the location, and sends the determined domain name query response to the user. The domain name proxy server is connected to the at least one domain name server to query the domain name query request of the user separately, and the domain name query response in the returned domain name query response with the user querying the local Internet protocol IP address is determined, thereby ensuring the domain name of each user. The parsing request can return a valid response in time, and the responding IP address is closest to the user, which improves the user's experience.
在本发明的其他实施例中,在上述实施例的基础上,在将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名之前,还包括:In other embodiments of the present invention, on the basis of the foregoing embodiment, before the domain name query request initiated by the user is distributed to the at least one domain name server to query the domain name, the method further includes:
获取进行域名查询的域名服务器列表。Obtain a list of domain name servers for domain name queries.
在本发明的其他实施例中,可以在域名代理服务器部署域名服务器列表的配置文件,该配置文件是将用户常用的或者已经搜集到的免费的域名服务器(DNS Server)组成一组列表,此列表抽象为域名服务器集群(DNS Server Cluster),在将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名之前,根据域名代理服务器的配置文件获取进行域名查询的域名服务器列表,分别向该列表中的每一台域名服务器的广播用户的域名查询请求。In other embodiments of the present invention, a configuration file of a domain name server list may be deployed on a domain name proxy server, and the configuration file is a list of free domain name servers (DNS servers) that are commonly used by users or have been collected. The abstract is a DNS server cluster. Before distributing the domain name query request initiated by the user to at least one domain name server to query the domain name, obtain a domain name server list for performing domain name query according to the configuration file of the domain name proxy server, respectively The domain name query request of the broadcast user of each domain name server in the list.
通过在将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名之前,获取进行域名查询的域名服务器列表,可以快速、准确地将用户的域名查询请求分发出去。By obtaining a domain name server list for performing domain name query before the user-initiated domain name query request is distributed to at least one domain name server to query the domain name, the domain name query request of the user can be quickly and accurately distributed.
在本发明的其他实施例中,在上述实施例的基础上,在收到每个域名服务器返回的域名查询响应之后,还包括:In other embodiments of the present invention, after receiving the domain name query response returned by each domain name server, the method further includes:
筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中。 Filter the domain name query responses that meet the predetermined rules and store them in the queue in order.
在本发明的其他实施例中,域名代理服务器在收到每个域名服务器返回的域名查询响应之后,可以筛选出所述队列中符合预定规则的域名查询响应,该预定规则可以根据实际情况来定,例如:如果超过指定时间(如5秒)返回的域名查询响应,则DNS Proxy直接丢弃之,或者如果返回的域名查询响应的互联网协议IP地址是乱码等,则DNS Proxy直接丢弃之,并按照顺序存放在队列中,该顺序可以是时间顺序,也可以根据IP地址段的顺序来对域名查询响应进行存放,例如:DNS Proxy可以按DNS Server Cluster中每台DNS Server返回的域名查询响应到达时间的先后顺序,将域名查询响应按照到达域名代理服务器的时间先后顺序存放在队列中,或者根据每台DNS Server返回的域名查询响应的互联网协议IP地址所隶属于的IP地址段的顺序,但并不以此为限。In other embodiments of the present invention, after receiving the domain name query response returned by each domain name server, the domain name proxy server may filter out the domain name query response in the queue that meets the predetermined rule, and the predetermined rule may be determined according to actual conditions. For example, if the domain name query response returned by the specified time (such as 5 seconds) is exceeded, the DNS proxy directly discards it, or if the returned Internet Protocol IP address of the returned domain name query is garbled, etc., the DNS proxy directly discards it, and according to The order is stored in the queue. The order can be chronological. The domain name query response can be stored according to the order of the IP address segments. For example, the DNS proxy can query the response arrival time according to the domain name returned by each DNS Server in the DNS Server Cluster. The order of the domain name query is stored in the queue according to the chronological order of the domain name proxy server, or the order of the IP address segments to which the Internet Protocol IP address is responded according to the domain name returned by each DNS Server, but Not limited to this.
通过筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中,从而便于域名代理服务器快速地筛选出符合用户要求且最优的域名查询响应给用户。By filtering out the domain name query responses that meet the predetermined rules, and storing them in the queue in order, the domain name proxy server can quickly filter out the domain name query response that meets the user requirements and is optimal.
在本发明的其他实施例中,在上述实施例的基础上,筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中,包括:In other embodiments of the present invention, based on the foregoing embodiment, the domain name query response that meets the predetermined rule is filtered out and stored in the queue in order, including:
筛选出返回域名查询响应的响应时间满足阈值或者互联网协议IP地址正确的域名查询响应,并按照所述响应时间的先后顺序存放在队列中。The domain name query response that the response time of the returned domain name query response meets the threshold or the Internet Protocol IP address is correct, and is stored in the queue according to the order of the response time.
在本发明的其他实施例中,对所收到域名查询响应需要进行筛选,可以根据返回的响应时间设置一个阈值,该阈值可以判断该域名查询响应是否有效,还可以根据返回的互联网协议IP地址是否正确,来判断该域名查询响应是否有效,例如:如果发现超过指定时间(如5秒)的“域名查询响应”,DNS Proxy则会直接丢弃之,或者返回的互联网协议IP地址是乱码,,则DNS Proxy直接丢弃之,这样可以及时返回有效的域名查询响应,并按照每个域名服务器返回域名查询响应的响应时间的先后顺序存放在队 列中,例如:DNS服务器集群(DNS Server Cluster)中的每台DN S服务器,即DNS 1,DNS 2,DNS 3…DNS N,DNS Server Cluster中的每台DNS Server会分别进行各自的域名解析及查询动作,返回域名查询响应给域名代理服务器,域名代理服务器会根据每个域名服务器返回的域名查询响应的响应时间的先后顺序来对每个域名查询响应进行排序存放在队列中。In other embodiments of the present invention, the received domain name query response needs to be filtered, and a threshold may be set according to the returned response time. The threshold may determine whether the domain name query response is valid, and may also be based on the returned Internet Protocol IP address. Whether it is correct, to determine whether the domain name query response is valid, for example, if the "domain name query response" is found to exceed the specified time (such as 5 seconds), the DNS proxy will directly discard it, or the returned Internet Protocol IP address is garbled, The DNS Proxy directly discards it, so that it can return a valid domain name query response in time, and store it in the order of the response time of each domain name server returning the domain name query response. In the column, for example, each DN S server in the DNS Server Cluster, that is, DNS 1, DNS 2, DNS 3...DNS N, each DNS Server in the DNS Server Cluster will perform its own domain name resolution. And the query action returns a domain name query response to the domain name proxy server, and the domain name proxy server sorts each domain name query response in the queue according to the order of the response time of the domain name query response returned by each domain name server.
通过筛选出返回域名查询响应中有效的域名查询响应,并按照每台域名服务器返回域名查询响应的响应时间的先后顺序存放在队列中,从而便于域名代理服务器快速地从有效的域名查询响应中确定最优的域名查询响应给用户。By filtering out the valid domain name query responses in the return domain name query response, and storing them in the queue according to the response time of each domain name server returning the domain name query response, so that the domain name proxy server can quickly determine from the valid domain name query response. The optimal domain name query responds to the user.
在本发明的其他实施例中,在上述实施例的基础上,确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,包括:In other embodiments of the present invention, based on the foregoing embodiment, determining a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location includes:
确定排序后的队列中第一个域名查询响应或者队列中携带有用户查询所在地互联网协议IP地址标识的域名查询响应。Determine the first domain name query response in the sorted queue or the domain name query response in the queue carrying the Internet Protocol IP address identifier of the location where the user queries.
在本发明的其他实施例中,域名代理服务器(DNS Proxy)会检索上述排序后的队列中域名查询响应,如果队列的第一个携带的是用户查询所在地互联网协议IP地址标识的域名查询响应,则DNS Proxy直接将队列中的第一个返回给用户,即本次域名查询结束,如果队列的第一个标识的IP地址不属于用户查询的本地IP,则会遍历整个队列,找到最先在队列中携带有IP地址的标识隶属于本地IP的域名查询响应,通过DNS Proxy响应给用户,例如:域名查询响应可以对应很多IP地址,例如:苹果的网站,在美国、中国、日本等等都有对应IP地址,如果用户查询的所在地在中国,则给用户确定苹果网站的中国IP地址,这样可以保证用户的每次域名解析请求都能够及时返回有效的域名查询响应,并且该域名查询响应的IP是离用户最近的。 In other embodiments of the present invention, the domain name proxy server (DNS Proxy) retrieves the domain name query response in the sorted queue. If the first one of the queues carries the domain name query response of the local Internet Protocol IP address identifier, The DNS Proxy directly returns the first one in the queue to the user, that is, the domain name query ends. If the IP address of the first identifier of the queue does not belong to the local IP address queried by the user, the entire queue is traversed and the first one is found. The ID of the IP address in the queue belongs to the local IP address query response, and responds to the user through the DNS proxy. For example, the domain name query response can correspond to many IP addresses, for example, Apple's website, in the US, China, Japan, etc. There is a corresponding IP address. If the location of the user's query is in China, the user's China IP address of the Apple website is determined. This ensures that the user's domain name resolution request can return a valid domain name query response in time, and the domain name query responds. IP is the closest to the user.
通过确定排序后的队列中第一个域名查询响应或者队列中携带有用户查询所在地互联网协议IP地址标识的域名查询响应,从而可以保证用户的每次域名解析请求都能够及时返回有效的域名查询响应,并且该域名查询响应的IP是离用户最近的。By determining the first domain name query response in the sorted queue or the domain name query response of the Internet Protocol IP address identifier of the location where the user queries the location, the user can ensure that each domain name resolution request can return a valid domain name query response in time. And the IP of the domain name query response is closest to the user.
在本发明的其他实施例中,在上述实施例的基础上,在筛选出返回域名查询响应的响应时间满足阈值的域名查询响应之后,还包括:In other embodiments of the present invention, after filtering the domain name query response that the response time of the returning domain name query response meets the threshold, the method further includes:
从全球互联网协议IP数据库中获取互联网协议IP地址段。Obtain an Internet Protocol IP address segment from the Global Internet Protocol IP database.
在本发明的其他实施例中,在筛选出返回域名查询响应的响应时间满足阈值的域名查询响应之后,域名代理服务器会从全球互联网协议IP数据库中获取互联网协议IP地址段,该IP地址段就是一组描述全球不同区域的IP地址范围,比如:描述中国大陆各省市的IP段,描述美国区域的IP段,描述台湾区域的IP段等等。In other embodiments of the present invention, after filtering out the domain name query response that the response time of the return domain name query response meets the threshold, the domain name proxy server obtains the Internet Protocol IP address segment from the global Internet Protocol IP database, and the IP address segment is A set of IP address ranges describing different regions of the world, such as: an IP segment describing the provinces and cities in mainland China, an IP segment describing the US region, an IP segment describing the Taiwan region, and so on.
通过从全球互联网协议IP数据库中获取互联网协议IP地址段,可以为域名代理服务器更快地确定出离用户查询域名所在地最近的域名查询响应。By obtaining the Internet Protocol IP address segment from the global Internet Protocol IP database, the domain name proxy server can quickly determine the domain name query response that is closest to the location where the user queries the domain name.
在本发明的其他实施例中,在上述实施例的基础上,按照顺序存放在队列中,包括:In other embodiments of the present invention, based on the foregoing embodiments, they are stored in the queue in order, including:
按照筛选后的域名查询响应的互联网协议IP地址所隶属的互联网协议IP地址段的顺序存放在队列中。The Internet Protocol IP address segment to which the Internet Protocol IP address is responded according to the filtered domain name query is stored in the queue.
在本发明的其他实施例中,将筛选后的有效域名查询响应,按照域名查询响应的互联网协议IP地址所隶属的互联网协议IP地址段的顺序存放在队列中,举例来说,每台域名服务器返回的域名的互联网协议IP有隶属于中国区域的IP地址段,美国区域的IP地址段或者其他区域的IP地址段,具体可以根据实际情况来定,按照所隶属于哪个区域的IP地址段的顺序对域名查询响应进行排序,从而便于快速找出队列中存放的域名查询响应与 隶属于用户查询所在地互联网协议IP地址段的域名查询响应发送给所述用户。In other embodiments of the present invention, the filtered valid domain name query response is stored in the queue in the order of the Internet Protocol IP address segment to which the Internet Protocol IP address of the domain name query response belongs, for example, each domain name server. The Internet Protocol IP of the returned domain name has an IP address segment belonging to the China region, an IP address segment of the US region or an IP address segment of other regions, which may be determined according to the actual situation, according to the IP address segment of the region to which it belongs. Sort the domain name query responses in order, so as to quickly find out the domain name query response stored in the queue. A domain name query response that belongs to the Internet Protocol IP address segment of the location where the user queries the location is sent to the user.
通过按照筛选后的域名查询响应的互联网协议IP地址所隶属的互联网协议IP地址段的顺序存放在队列中,从而便于域名代理服务器快速地从有效的域名查询响应中确定最优的域名查询响应给用户。The Internet Protocol IP address segment to which the Internet Protocol IP address is responded according to the filtered domain name query is stored in the queue, so that the domain name proxy server can quickly determine the optimal domain name query response from the valid domain name query response. user.
在本发明的其他实施例中,在上述实施例的基础上,确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,包括:In other embodiments of the present invention, based on the foregoing embodiment, determining a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location includes:
确定排序后的队列中第一个域名查询响应或者队列中隶属于用户查询所在地互联网协议IP地址段的域名查询响应。Determine the first domain name query response in the sorted queue or the domain name query response in the queue that belongs to the Internet Protocol IP address segment where the user queries the location.
在本发明的其他实施例中,将筛选后有效的域名查询响应进行,确定出返回的域名查询中与用户查询所在地互联网协议IP地址最近的域名查询响应,即可以是隶属于用户查询所在地互联网协议IP地址段的域名查询响应,例如:域名代理服务器(DNS Proxy)可以检索上面排序后的“队列”,如果“队列”的第一个元素标识的IP地址隶属于用户查询所在地(本地)IP,则DNS Proxy确定将“队列”的第一个元素返回给用户,本次域名查询结束,如果“队列”的第一个元素标识的IP地址不属于本地IP,则遍历整个“队列”,找到离用户最近的IP对应的队列元素后,DNS Proxy确定将所找到的离用户最近的IP对应的队列元素返回给用户。In other embodiments of the present invention, the valid domain name query response is performed after the screening, and the domain name query response in the returned domain name query that is closest to the Internet protocol IP address of the user query location is determined, that is, the Internet protocol belongs to the location where the user queries. The domain name query response of the IP address segment. For example, the DNS proxy can retrieve the sorted "queue". If the IP address of the first element of the "queue" belongs to the local (local) IP address of the user query, Then the DNS Proxy determines to return the first element of the "queue" to the user. The domain name query ends. If the IP address of the first element of the "queue" does not belong to the local IP, the entire "queue" is traversed and found. After the queue element corresponding to the user's latest IP, the DNS Proxy determines to return the queue element corresponding to the IP closest to the user to the user.
通过确定排序后的队列中第一个域名查询响应或者队列中隶属于用户查询所在地互联网协议IP地址段的域名查询响应,从而可以保证用户的每次域名解析请求都能够及时返回有效的域名查询响应,并且该域名查询响应的IP是离用户最近的。By determining the first domain name query response in the sorted queue or the domain name query response in the queue that belongs to the Internet Protocol IP address segment of the user query location, it can ensure that each domain name resolution request of the user can return a valid domain name query response in time. And the IP of the domain name query response is closest to the user.
图3为本发明实施例提供的一种域名代理服务器实施例的结构示意图,如图3所示,一种域名代理服务器,包括:标准域名信令交互模块10和综 合决策管理模块20;FIG. 3 is a schematic structural diagram of a domain name proxy server according to an embodiment of the present invention. As shown in FIG. 3, a domain name proxy server includes: a standard domain name signaling interaction module 10 and a comprehensive Decision decision management module 20;
所述标准域名信令交互模块10配置为将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应;The standard domain name signaling interaction module 10 is configured to distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server;
所述综合决策管理模块20配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应;The integrated decision management module 20 is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location;
所述标准域名信令交互模块10配置为将确定后的域名查询响应发送给所述用户。The standard domain name signaling interaction module 10 is configured to send the determined domain name query response to the user.
本发明实施例提供的一种域名代理服务器,包括标准域名信令交互模块和综合决策管理模块;所述标准域名信令交互模块将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应,所述综合决策管理模块确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,再由标准域名信令交互模块将确定后的域名查询响应发送给所述用户。通过域名代理服务器连接至少一个域名服务器来对用户的域名查询请求分别进行查询,从而可以快速返回域名查询响应,并通过域名代理服务器确认出与用户查询所在地互联网协议IP地址最近的域名查询响应,使得可以准确、有效的帮助用户返回域名查询响应,提高了用户的体验度。The domain name proxy server provided by the embodiment of the present invention includes a standard domain name signaling interaction module and an integrated decision management module; the standard domain name signaling interaction module distributes the user-initiated domain name query request to at least one domain name server to query the Domain name, and receiving a domain name query response returned by each domain name server, the comprehensive decision management module determines a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the user query location, and then the standard domain name signaling interaction module Sending the determined domain name query response to the user. The domain name proxy server is connected to at least one domain name server to separately query the domain name query request of the user, so that the domain name query response can be quickly returned, and the domain name query response is confirmed by the domain name proxy server, and the domain name query response closest to the local Internet protocol IP address is queried by the user. It can help users return domain name query response accurately and effectively, which improves user experience.
在本发明的其他实施例中,如图4所示,在上述实施例的基础上,该装置还包括:域名服务器集群列表管理模块30;In another embodiment of the present invention, as shown in FIG. 4, based on the foregoing embodiment, the apparatus further includes: a domain name server cluster list management module 30;
所述域名服务器集群列表管理模块30配置为获取进行域名查询的域名服务器列表。The domain name server cluster list management module 30 is configured to obtain a domain name server list for performing domain name query.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
在本发明的其他实施例中,在上述实施例的基础上,所述综合决策管 理模块20配置为在收到每个域名服务器返回的域名查询响应之后,筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中。In other embodiments of the present invention, based on the above embodiments, the integrated decision tube The management module 20 is configured to filter out the domain name query responses that meet the predetermined rules after receiving the domain name query response returned by each domain name server, and store them in the queue in order.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
在本发明的其他实施例中,在上述实施例的基础上,所述综合决策管理模块20配置为筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中,是指:In other embodiments of the present invention, based on the foregoing embodiment, the integrated decision management module 20 is configured to filter out domain name query responses that meet the predetermined rules and store them in the queue in order, which means:
所述综合决策管理模块20配置为筛选出返回域名查询响应的响应时间满足阈值的域名查询响应,并按照所述响应时间的先后顺序存放在队列中。The integrated decision management module 20 is configured to filter the domain name query responses whose response time of the returned domain name query response meets the threshold, and store them in the queue according to the order of the response time.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
在本发明的其他实施例中,在上述实施例的基础上,所述综合决策管理模块20配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,是指:In other embodiments of the present invention, based on the foregoing embodiment, the integrated decision management module 20 is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location. :
所述综合决策管理模块20配置为确定排序后的队列中第一个域名查询响应或者队列中携带有用户查询所在地互联网协议IP地址标识的域名查询响应。The integrated decision management module 20 is configured to determine the first domain name query response in the sorted queue or the domain name query response in the queue carrying the Internet Protocol IP address identifier of the location where the user queries.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
在本发明的其他实施例中,在上述实施例的基础上,该服务器还包括:互联网协议IP地址段管理模块40;In other embodiments of the present invention, based on the foregoing embodiment, the server further includes: an Internet Protocol IP address segment management module 40;
所述互联网协议IP地址段管理模块40配置为从全球互联网协议IP数据库中获取互联网协议IP地址段。The internet protocol IP address segment management module 40 is configured to obtain an internet protocol IP address segment from a global internet protocol IP database.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。 The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
在本发明的其他实施例中,在上述实施例的基础上,所述综合决策管理模块20配置为按照顺序存放在队列中,是指:In other embodiments of the present invention, based on the foregoing embodiment, the integrated decision management module 20 is configured to be stored in the queue in order, which means:
所述综合决策管理模块20配置为按照筛选后的域名查询响应的互联网协议IP地址所隶属的互联网协议IP地址段的顺序存放在队列中。The integrated decision management module 20 is configured to store in the queue in the order of the Internet Protocol IP address segments to which the Internet Protocol IP address of the filtered domain name query response belongs.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
在本发明的其他实施例中,在上述实施例的基础上,所述综合决策管理模块20配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,是指:In other embodiments of the present invention, based on the foregoing embodiment, the integrated decision management module 20 is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location. :
所述综合决策管理模块20配置为确定排序后的队列中第一个域名查询响应或者队列中隶属于用户查询所在地互联网协议IP地址段的域名查询响应发送给所述用户。The integrated decision management module 20 is configured to determine that the first domain name query response in the sorted queue or the domain name query response in the queue that belongs to the Internet Protocol IP address segment of the location where the user queries the location is sent to the user.
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似。The device provided in the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principle and technical effects are similar.
图4为本发明实施例提供的一种域名代理的***实施例的结构示意图,如图4所示,一种域名查询***,包括:上述的域名代理服务器和至少一个域名服务器。FIG. 4 is a schematic structural diagram of a system for performing a domain name proxy according to an embodiment of the present invention. As shown in FIG. 4, a domain name query system includes: the domain name proxy server and at least one domain name server.
在本发明的其他实施例中,如图4所示,用户可以通过客户端编辑域名查询请求,该客户端可以是台式计算机、平板电脑、手机等移动终端,将该域名查询请求发送给域名代理服务器,通过该域名代理服务器分发给域名服务器集群中每一台域名服务器如:DNS1、DNS2、DNS3……DNSN等,再由每台域名服务器根据域名查询请求返回的域名查询响应给域名代理服务器进行筛选,确定出所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应发给用户,从而用户可以快速、有效地查询域名,提高了用户的满意度。 In other embodiments of the present invention, as shown in FIG. 4, the user may edit the domain name query request through the client, and the client may be a mobile terminal such as a desktop computer, a tablet computer, or a mobile phone, and send the domain name query request to the domain name proxy. The server distributes to each domain name server in the domain name server cluster through the domain name proxy server, such as: DNS1, DNS2, DNS3, ... DNSN, etc., and then each domain name server responds to the domain name proxy server according to the domain name query request returned by the domain name query request. The system determines that the domain name query response in the returned domain name query response is the same as the domain name query address of the Internet protocol IP address of the user querying, so that the user can quickly and effectively query the domain name, thereby improving user satisfaction.
本发明实施例提供的一种域名代理的***,包括:上述域名代理服务器实施例中任一项的域名代理服务器和至少一个域名服务器,通过域名查询***中的多个域名服务器来对用户的域名查询请求分别进行查询,从而可以快速返回域名查询响应,并通过域名查询***中域名代理服务器确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,使得可以准确、有效的帮助用户返回域名查询响应,提高了用户的体验度。The system of the domain name proxy provided by the embodiment of the present invention includes: the domain name proxy server and the at least one domain name server of any one of the foregoing domain name proxy server embodiments, and the domain name of the user is used by multiple domain name servers in the domain name query system. The query request is separately queried, so that the domain name query response can be quickly returned, and the domain name proxy server in the domain name query system determines the domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the user query location, so that the query can be accurate and effective. Help users return domain name query responses, improving user experience.
在实际应用中,域名代理服务器中的标准域名信令交互模块模块、综合决策管理模块等模块,均可由位于域名代理服务器上的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In practical applications, the standard domain name signaling interaction module module and the comprehensive decision management module in the domain name proxy server can be configured by a central processing unit (CPU) and a microprocessor (Micro Processor) located on the domain name proxy server. Unit, MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
本发明实施例中,如果以软件功能模块的形式实现上述的域名查询的方法或域名代理的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the above domain name query method or domain name proxy method is implemented in the form of a software function module, and is sold or used as a separate product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明还实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述的域名查询的方法。 Accordingly, a further embodiment of the present invention provides a computer storage medium having stored therein computer executable instructions configured to perform the method of domain name query described above.
本发明还实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述的域名代理的方法。A further embodiment of the present invention provides a computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the method of domain name proxy described above.
本发明还实施例提供一种域名代理服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器配置为执行所述程序时实现上述的域名代理的方法。A further embodiment of the present invention provides a domain name proxy server including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor configured to implement the above-mentioned domain name proxy when the program is executed method.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。It is to be understood that the phrase "one embodiment" or "an embodiment" or "an" Thus, "in one embodiment" or "in an embodiment" or "an" In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be directed to the embodiments of the present invention. The implementation process constitutes any limitation. The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个***,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互 之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the components shown or discussed are mutually The coupling, or direct coupling, or communication connection may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units; they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to program instructions. The foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技 术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。While the embodiments of the present invention have been described above, the described embodiments are merely for the purpose of understanding the invention and are not intended to limit the invention. Any technique in the field to which the present invention pertains The invention may be modified and changed in the form and details of the invention without departing from the spirit and scope of the invention, but the scope of the invention is still subject to the appended claims. The scope defined shall prevail.
工业实用性Industrial applicability
本发明实施例中,通过域名代理服务器连接至少一个域名服务器来对用户的域名查询请求分别进行查询,从而可以快速返回域名查询响应,并通过域名代理服务器确定出返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,从而使得可以快速地帮助用户返回及时有效的域名查询响应,提高了用户的体验度。 In the embodiment of the present invention, the domain name proxy server is connected to the at least one domain name server to separately query the domain name query request of the user, so that the domain name query response can be quickly returned, and the domain name query response is determined by the domain name proxy server and the user query is obtained. The nearest domain name query response of the local Internet Protocol IP address enables the user to quickly return a timely and valid domain name query response, thereby improving the user experience.

Claims (21)

  1. 一种域名查询的方法,应用于域名服务器集群,所述方法包括:A domain name query method is applied to a domain name server cluster, and the method includes:
    接收用户通过域名代理服务器发起的域名查询请求;Receiving a domain name query request initiated by a user through a domain name proxy server;
    根据所述域名查询请求查询所述域名;Querying the domain name according to the domain name query request;
    将查询后的域名查询响应通过所述域名代理服务器发送给用户,其中,所述发送给用户的域名查询响应是由所述域名代理服务器确定出与用户查询所在地互联网协议IP地址最近的域名查询响应。Sending the queried domain name query response to the user by using the domain name proxy server, wherein the domain name query response sent to the user is determined by the domain name proxy server to determine the domain name query response closest to the Internet protocol IP address of the location where the user queries the location .
  2. 一种域名代理的方法,所述方法包括:A method of domain name proxy, the method comprising:
    将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应;Distributing a user-initiated domain name query request to at least one domain name server to query the domain name, and receiving a domain name query response returned by each domain name server;
    确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应;Determining the domain name query response in the returned domain name query response that is closest to the Internet Protocol IP address of the location where the user queries the location;
    将确定后的域名查询响应发送给所述用户。Sending the determined domain name query response to the user.
  3. 根据权利要求2所述的方法,其中,在将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名之前,还包括:The method of claim 2, wherein before the user-initiated domain name query request is distributed to the at least one domain name server to query the domain name, the method further includes:
    获取进行域名查询的域名服务器列表。Obtain a list of domain name servers for domain name queries.
  4. 根据权利要求2所述的方法,其中,在收到每个域名服务器返回的域名查询响应之后,还包括:The method of claim 2, after receiving the domain name query response returned by each domain name server, further comprising:
    筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中。Filter the domain name query responses that meet the predetermined rules and store them in the queue in order.
  5. 根据权利要求4所述的方法,其中,筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中,包括:The method according to claim 4, wherein the domain name query responses that meet the predetermined rules are filtered out and stored in the queue in order, including:
    筛选出返回域名查询响应的响应时间满足阈值或者互联网协议IP地址正确的域名查询响应,并按照所述响应时间的先后顺序存放在队列中。The domain name query response that the response time of the returned domain name query response meets the threshold or the Internet Protocol IP address is correct, and is stored in the queue according to the order of the response time.
  6. 根据权利要求5所述的方法,其中,确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,包括: The method according to claim 5, wherein the domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location is determined, including:
    确定排序后的队列中第一个域名查询响应或者队列中携带有用户查询所在地互联网协议IP地址标识的域名查询响应。Determine the first domain name query response in the sorted queue or the domain name query response in the queue carrying the Internet Protocol IP address identifier of the location where the user queries.
  7. 根据权利要求5所述的方法,其中,筛选出返回域名查询响应的响应时间满足阈值或者互联网协议IP地址正确的域名查询响应之后,包括:The method according to claim 5, wherein after filtering out the domain name query response that the response time of the return domain name query response satisfies the threshold or the Internet Protocol IP address is correct, the method includes:
    从全球互联网协议IP数据库中获取互联网协议IP地址段。Obtain an Internet Protocol IP address segment from the Global Internet Protocol IP database.
  8. 根据权利要求7所述的方法,其中,按照顺序存放在队列中,包括:The method of claim 7 wherein storing in a queue in order comprises:
    按照筛选后的域名查询响应的互联网协议IP地址所隶属的互联网协议IP地址段的顺序存放在队列中。The Internet Protocol IP address segment to which the Internet Protocol IP address is responded according to the filtered domain name query is stored in the queue.
  9. 根据权利要求7所述的方法,其中,确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,包括:The method of claim 7, wherein the domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location is determined, including:
    确定排序后的队列中第一个域名查询响应或者队列中隶属于用户查询所在地互联网协议IP地址段的域名查询响应。Determine the first domain name query response in the sorted queue or the domain name query response in the queue that belongs to the Internet Protocol IP address segment where the user queries the location.
  10. 一种域名代理服务器,所述服务器包括:标准域名信令交互模块模块和综合决策管理模块;A domain name proxy server, the server comprising: a standard domain name signaling interaction module module and an integrated decision management module;
    所述标准域名信令交互模块,配置为将用户发起的域名查询请求分发给至少一个域名服务器来查询所述域名,并接收每个域名服务器返回的域名查询响应;The standard domain name signaling interaction module is configured to distribute a user-initiated domain name query request to at least one domain name server to query the domain name, and receive a domain name query response returned by each domain name server;
    所述综合决策管理模块,配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应;The integrated decision management module is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location;
    所述标准域名信令交互模块,配置为将确定后的域名查询响应发送给所述用户。The standard domain name signaling interaction module is configured to send the determined domain name query response to the user.
  11. 根据权利要求10所述的服务器,其中,还包括:域名服务器集群列表管理模块; The server according to claim 10, further comprising: a domain name server cluster list management module;
    所述域名服务器集群列表管理模块配置为获取进行域名查询的域名服务器列表。The domain name server cluster list management module is configured to obtain a domain name server list for performing domain name query.
  12. 根据权利要求10所述的服务器,其中,所述综合决策管理模块配置为在收到每个域名服务器返回的域名查询响应之后,筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中。The server according to claim 10, wherein the integrated decision management module is configured to, after receiving the domain name query response returned by each domain name server, filter out domain name query responses that meet the predetermined rules, and store them in the queue in order. .
  13. 根据权利要求12所述的服务器,其中,所述综合决策管理模块配置为筛选出符合预定规则的域名查询响应,并按照顺序存放在队列中,是指:The server according to claim 12, wherein the integrated decision management module is configured to filter out domain name query responses that meet predetermined rules and store them in a queue in order, which means:
    所述综合决策管理模块配置为筛选出返回域名查询响应的响应时间满足阈值的域名查询响应,并按照所述响应时间的先后顺序存放在队列中。The integrated decision management module is configured to filter the domain name query responses whose response time of the domain name query response meets the threshold, and store them in the queue according to the order of the response time.
  14. 根据权利要求13所述的服务器,其中,所述综合决策管理模块配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,是指:The server according to claim 13, wherein the integrated decision management module is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location, which is:
    所述综合决策管理模块配置为确定排序后的队列中第一个域名查询响应或者队列中携带有用户查询所在地互联网协议IP地址标识的域名查询响应。The integrated decision management module is configured to determine a first domain name query response in the sorted queue or a domain name query response in the queue that carries the Internet Protocol IP address identifier of the location where the user queries.
  15. 根据权利要求13所述的服务器,其中,还包括:互联网协议IP地址段管理模块;The server according to claim 13, further comprising: an internet protocol IP address segment management module;
    所述互联网协议IP地址段管理模块配置为从全球互联网协议IP数据库中获取互联网协议IP地址段。The internet protocol IP address segment management module is configured to obtain an internet protocol IP address segment from a global internet protocol IP database.
  16. 根据权利要求15所述的服务器,其中,所述综合决策管理模块配置为按照顺序存放在队列中,是指:The server according to claim 15, wherein said integrated decision management module is configured to be stored in a queue in order, which means:
    所述综合决策管理模块配置为按照筛选后的域名查询响应的互联网协议IP地址所隶属的互联网协议IP地址段的顺序存放在队列中。 The integrated decision management module is configured to be stored in the queue in the order of the Internet Protocol IP address segment to which the Internet Protocol IP address of the filtered domain name query response belongs.
  17. 根据权利要求16所述的服务器,其中,所述综合决策管理模块配置为确定所返回的域名查询响应中与用户查询所在地互联网协议IP地址最近的域名查询响应,是指:The server according to claim 16, wherein the integrated decision management module is configured to determine a domain name query response in the returned domain name query response that is closest to the Internet protocol IP address of the location where the user queries the location, which is:
    所述综合决策管理模块配置为确定排序后的队列中第一个域名查询响应或者队列中隶属于用户查询所在地互联网协议IP地址段的域名查询响应发送给所述用户。The integrated decision management module is configured to determine that the first domain name query response in the sorted queue or the domain name query response in the queue that belongs to the Internet Protocol IP address segment of the location where the user queries the location is sent to the user.
  18. 一种域名代理的***,所述***包括:上述权利要求10-17所述的任一项域名代理服务器和至少一个域名服务器,所述域名服务器配置为接收用户通过域名代理服务器发起的域名查询请求,根据所述域名查询请求查询所述域名,将查询后的域名查询响应通过所述域名代理服务器发送给用户,其中,所述发送给用户的域名查询响应是由所述域名代理服务器确定出与用户查询所在地互联网协议IP地址最近的域名查询响应。A system of domain name agents, comprising: any one of the domain name proxy servers and at least one domain name server according to any one of claims 10-17, wherein the domain name server is configured to receive a domain name query request initiated by a user through a domain name proxy server. And querying, by the domain name query request, the domain name query response is sent to the user by using the domain name proxy server, where the domain name query response sent to the user is determined by the domain name proxy server. The user queries the nearest domain name query response of the local Internet Protocol IP address.
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述权利要求1所述的域名查询的方法。A computer storage medium having computer executable instructions stored thereon, the computer executable instructions being configured to perform the method of domain name query of claim 1.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行上述权利要求2至9任一项所述的域名代理的方法。A computer storage medium having computer executable instructions stored thereon, the computer executable instructions being configured to perform the method of the domain name agent of any one of claims 2 to 9.
  21. 一种域名代理服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器配置为执行所述程序时实现上述权利要求2至9任一项所述的域名代理的方法。 A domain name proxy server comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor being configured to perform the program to implement any one of claims 2 to 9 above The method of the domain name proxy.
PCT/CN2017/084384 2016-05-27 2017-05-15 Method for querying domain name, method for domain name proxy, server and system WO2017202225A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610362365.8A CN107438111B (en) 2016-05-27 2016-05-27 Method, server and the system of method and the domain name agency of inquiry of the domain name
CN201610362365.8 2016-05-27

Publications (1)

Publication Number Publication Date
WO2017202225A1 true WO2017202225A1 (en) 2017-11-30

Family

ID=60410984

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084384 WO2017202225A1 (en) 2016-05-27 2017-05-15 Method for querying domain name, method for domain name proxy, server and system

Country Status (2)

Country Link
CN (1) CN107438111B (en)
WO (1) WO2017202225A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933177A (en) * 2019-12-04 2020-03-27 国家计算机网络与信息安全管理中心 Domain name request processing method and device
CN112583948A (en) * 2020-11-23 2021-03-30 北京三快在线科技有限公司 Domain name loading method and device, electronic equipment and storage medium
CN112822305A (en) * 2021-02-03 2021-05-18 深圳市共进电子股份有限公司 Method, device, router and storage medium for processing DNS query request

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981766A (en) * 2019-03-19 2019-07-05 广州华多网络科技有限公司 HTTP request processing method, processing system, server and storage medium
CN111769949A (en) * 2020-06-23 2020-10-13 上海擎感智能科技有限公司 Management/execution method/system, medium, management/agent terminal for mutual authentication
CN114301872B (en) * 2021-12-27 2023-12-26 奇安信科技集团股份有限公司 Domain name based access method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228359B1 (en) * 2002-02-12 2007-06-05 Cisco Technology, Inc. Methods and apparatus for providing domain name service based on a client identifier
US20100011120A1 (en) * 2002-08-07 2010-01-14 Foundry Networks, Inc. Canonical name (cname) handling for global server load balancing
CN101640679A (en) * 2009-04-13 2010-02-03 山石网科通信技术(北京)有限公司 Domain name resolution agent method and device therefor
CN101640684A (en) * 2009-08-21 2010-02-03 中国电信股份有限公司 Content delivering method, network system, GSLB device and domain name server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228359B1 (en) * 2002-02-12 2007-06-05 Cisco Technology, Inc. Methods and apparatus for providing domain name service based on a client identifier
US20100011120A1 (en) * 2002-08-07 2010-01-14 Foundry Networks, Inc. Canonical name (cname) handling for global server load balancing
CN101640679A (en) * 2009-04-13 2010-02-03 山石网科通信技术(北京)有限公司 Domain name resolution agent method and device therefor
CN101640684A (en) * 2009-08-21 2010-02-03 中国电信股份有限公司 Content delivering method, network system, GSLB device and domain name server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933177A (en) * 2019-12-04 2020-03-27 国家计算机网络与信息安全管理中心 Domain name request processing method and device
CN112583948A (en) * 2020-11-23 2021-03-30 北京三快在线科技有限公司 Domain name loading method and device, electronic equipment and storage medium
CN112822305A (en) * 2021-02-03 2021-05-18 深圳市共进电子股份有限公司 Method, device, router and storage medium for processing DNS query request

Also Published As

Publication number Publication date
CN107438111B (en) 2019-11-26
CN107438111A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
WO2017202225A1 (en) Method for querying domain name, method for domain name proxy, server and system
JP5893034B2 (en) Request routing in network environments
JP2020516187A (en) Method and apparatus for evaluating DNS
WO2019165665A1 (en) Domain name resolution method, server and system
JP6514699B2 (en) Facilitates third party execution of batch processing of requests that require authorization from the resource owner for repeated access to the resource
JP5974079B2 (en) Global traffic management using changed hostnames
WO2014067080A1 (en) Method and device for transmitting cloud server addresses
US20160239540A1 (en) Data Query Method and Apparatus, Server, and System
US11025584B2 (en) Client subnet efficiency by equivalence class aggregation
US20150082451A1 (en) System and Method for Evaluating Domains to Send Emails While Maintaining Sender Reputation
WO2013143403A1 (en) Method and system for accessing website
WO2019041738A1 (en) Client resource obtaining method and apparatus, terminal device, and storage medium
US9954815B2 (en) Domain name collaboration service using domain name dependency server
TWI734744B (en) Method, device and system for synchronizing routing table
WO2012041214A1 (en) Method for active information push and server therefor
WO2013159512A1 (en) User behavior analysis method, and related equipment and system
WO2017185912A1 (en) Method and apparatus for collecting statistics about terminal device information based on hash node
CN112954089B (en) Method, device, equipment and storage medium for analyzing data
EP4038931A1 (en) Network entities for supporting analytics generation
WO2017166524A1 (en) Domain name parsing method and apparatus
JP6795253B2 (en) Hot live video judgment method and equipment
EP3382981B1 (en) A user equipment and method for protection of user privacy in communication networks
CN114374669B (en) VPN client proxy DNS analysis method and system
JP2016516252A (en) Optional vertical-based query
EP2426894B1 (en) System and method of processing DNS request and DNS reply

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17802071

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17802071

Country of ref document: EP

Kind code of ref document: A1