Data acquisition method, device, server, client, system and medium

The DNS server obtains the country list and current interface address on the client, and then obtains the second IP address to access the background server, which solves the network latency problem when global clients access the server and achieves faster access speed.

CN113676530BActive Publication Date: 2025-02-28SHENZHEN UMOUSE TECH DEV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110935690.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-16
Publication Date
2025-02-28
Estimated Expiration
2041-08-16

AI Technical Summary

Technical Problem

In the prior art, the access speed of global clients is slow due to network latency when accessing servers, especially when the database needs to be deployed in the same area, further increasing network latency.

Method used

The DNS server receives the client's access request, determines the first IP address, and then sends it to the client. The client obtains the country list based on the first IP address, determines the current interface address of the current country, and then obtains the second IP address. Finally, the client requests the background server to obtain data based on the second IP address.

Benefits of technology

This method slows down network latency and improves access speeds by deploying domestic servers in various countries, providing a faster data acquisition experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113676530B_ABST
    Figure CN113676530B_ABST
Patent Text Reader

Abstract

The present invention discloses a data acquisition method, device, server, client, system and medium, which are applied to a DNS server, including: receiving an access request sent by a client based on a preset domain name, and determining a first IP address according to the domain name information contained in the access request; sending the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, and the country list contains interface addresses of various countries; receiving the current interface address of the current country determined by the client based on the country list, and determining a second IP address according to the current interface address and the preset domain name; sending the second IP address to the client, so that the client obtains data corresponding to the preset domain name based on the second IP address. The above technical solution enables each country to access the preset domain name through a server deployed in its own country, which reduces network delay and improves access speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to Internet technology, and in particular to a data acquisition method, device, server, client, system and medium. Background Art

[0002] A website uses at least one server to provide services to clients around the world who visit the website. The server can be used to transmit the website's network information, such as web pages, videos, files, pictures, emails, and other applications that use network technology.

[0003] In the prior art, at least one server is deployed in the same region for global clients to access the website. The farther the client is from the server, the greater the network delay, the slower the access speed, and the worse the experience. Of course, at least one server can also be deployed in multiple regions around the world for global clients to access the website. However, due to the requirement for consistency in access to data, it is necessary to place the database in the same region, or configure a master-slave database for the database and deploy it in multiple regions around the world. Because there is also network delay when the server accesses the master database, the access speed will also be affected, which directly leads to network delay problems for global clients to access the server.

[0004] Therefore, a data acquisition method is needed to reduce network latency and improve access speed. Summary of the invention

[0005] The present invention provides a data acquisition method, device, server, client, system and medium to alleviate the network delay of accessing the server and improve the speed of accessing the server.

[0006] In a first aspect, an embodiment of the present invention provides a data acquisition method, which is applied to a domain name system (DNS) server, comprising:

[0007] Receiving an access request sent by a client based on a preset domain name, and determining a first Internet Protocol (IP) address according to the domain name information included in the access request;

[0008] Sending the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, wherein the country list includes interface addresses of various countries;

[0009] receiving a current interface address of a current country determined by the client based on the country list, and determining a second IP address according to the current interface address;

[0010] The second IP address is sent to the client, so that the client requests the backend server to obtain the data corresponding to the preset domain name based on the second IP address.

[0011] The embodiment of the present invention provides a data acquisition method, which is applied to a DNS server, including: receiving an access request sent by a client based on a preset domain name, and determining a first IP address according to the domain name information contained in the access request; sending the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, and the country list contains interface addresses of various countries; receiving the current interface address of the current country determined by the client based on the country list, and determining a second IP address according to the current interface address; sending the second IP address to the client, so that the client requests a background server based on the second IP address to obtain data corresponding to the preset domain name. The above technical solution, after determining the current country corresponding to the current location, can determine the current interface address based on the country list, and then determine the second IP address corresponding to the current country based on the current interface address. The client can obtain the data corresponding to the preset domain name from the background server based on the second IP address, so that each country can access the preset domain name through the server deployed in its own country, which reduces network delay and improves access speed.

[0012] Further, determining the first IP address according to the domain name information included in the access request includes:

[0013] Resolving the domain name information to obtain the first IP address;

[0014] Accordingly, determining the second IP address according to the current interface address includes:

[0015] The current interface address is parsed to obtain the second IP address.

[0016] In a second aspect, an embodiment of the present invention further provides a data acquisition method, which is applied to a background server, comprising:

[0017] Receiving an access request from a client based on a first IP address, and determining a country list corresponding to a preset domain name according to the first IP address;

[0018] Sending the country list to the client, so that the client obtains a second IP address according to the country list;

[0019] receiving an access request from the client based on the second IP address, and determining data corresponding to the preset domain name according to the second IP address;

[0020] The data is sent to the client.

[0021] Further, determining a country list corresponding to a preset domain name according to the first IP address includes:

[0022] Determine the domain name information of the preset domain name corresponding to the first IP address;

[0023] The countries supported by the preset domain name and the interface addresses of the countries are determined according to the domain name information, and the country list is determined according to the countries and the interface addresses of the countries.

[0024] In a third aspect, an embodiment of the present invention further provides a data acquisition method, which is applied to a client and includes:

[0025] Requesting a DNS server based on a preset domain name, and receiving a first IP address determined by the DNS server according to the preset domain name;

[0026] Requesting a backend server based on the first IP address, and receiving a country list determined by the backend server according to the first IP address, the country list including interface addresses of various countries;

[0027] Determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address so that the DNS server determines a second IP address according to the current interface address;

[0028] After receiving the second IP address, requesting the background server based on the second IP address;

[0029] Receive and display the data corresponding to the preset domain name sent by the background server.

[0030] Further, determining the current country and the current interface address of the current country includes:

[0031] receiving trigger information triggered by a user based on the country list, and determining the current country according to the trigger information;

[0032] The current interface address is determined according to the country list and the current country.

[0033] In a fourth aspect, an embodiment of the present invention further provides a data acquisition device, which is configured on a DNS server, and includes:

[0034] A first request receiving module, used to receive an access request sent by a client based on a preset domain name, and determine a first IP address according to the domain name information included in the access request;

[0035] A first address sending module, configured to send the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, wherein the country list includes interface addresses of various countries;

[0036] an interface address receiving module, configured to receive a current interface address of a current country determined by the client based on the country list, and determine a second IP address according to the current interface address;

[0037] The second address sending module is used to send the second IP address to the client, so that the client requests the background server to obtain the data corresponding to the preset domain name based on the second IP address.

[0038] In a fifth aspect, an embodiment of the present invention further provides a data acquisition device, which is configured at a background server, and includes:

[0039] a second request receiving module, configured to receive an access request from a client based on a first IP address, and determine a country list corresponding to a preset domain name according to the first IP address;

[0040] A list sending module, used for sending the country list to the client, so that the client obtains the second IP address according to the country list;

[0041] a third request receiving module, configured to receive an access request from the client based on the second IP address, and determine data corresponding to the preset domain name according to the second IP address;

[0042] A data sending module is used to send the data to the client.

[0043] In a sixth aspect, an embodiment of the present invention further provides a data acquisition device, which is configured on a client and includes:

[0044] A first request module, configured to request a DNS server based on a preset domain name, and receive a first IP address determined by the DNS server according to the preset domain name;

[0045] A second request module, configured to request a background server based on the first IP address, and receive a country list determined by the background server according to the first IP address, wherein the country list includes an interface address of each country;

[0046] a determination module, configured to determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address, so that the DNS server determines a second IP address according to the current interface address;

[0047] A third request module, configured to request the background server based on the second IP address after receiving the second IP address;

[0048] The data receiving module is used to receive and display the data corresponding to the preset domain name sent by the background server.

[0049] In the seventh aspect, an embodiment of the present invention further provides a data acquisition system, comprising a DNS server, a background server and a client, wherein: the DNS server is used to execute the data acquisition method as described in any one of the first aspect; the background server is used to execute the data acquisition method as described in any one of the second aspect; the client is used to execute the data acquisition method as described in any one of the third aspect.

[0050] In the eighth aspect, an embodiment of the present invention further provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the data acquisition method as described in any one of the first aspect, the second aspect or the third aspect.

[0051] In a ninth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the data acquisition method as described in any one of the first aspect, the second aspect or the third aspect.

[0052] In a tenth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the data acquisition method provided in any one of the first aspect, the second aspect or the third aspect.

[0053] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the data acquisition device, or may be packaged separately from the processor of the data acquisition device, which is not limited in this application.

[0054] The descriptions of the second to tenth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second to tenth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0055] In this application, the name of the above data acquisition device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0056] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A flowchart of a data acquisition method provided in Embodiment 1 of the present invention;

[0058] Figure 2 A flowchart of a data acquisition method provided in Embodiment 2 of the present invention;

[0059] Figure 3 A flowchart of a data acquisition method provided in Embodiment 3 of the present invention;

[0060] Figure 4 A flowchart of a data acquisition method provided in Embodiment 4 of the present invention;

[0061] Figure 5 A schematic diagram of the structure of a data acquisition device provided in Embodiment 5 of the present invention;

[0062] Figure 6 A structural schematic diagram of a data acquisition device provided in Embodiment 6 of the present invention;

[0063] Figure 7 A structural schematic diagram of a data acquisition device provided in Embodiment 7 of the present invention;

[0064] Figure 8 A structural diagram of a data acquisition system provided in Embodiment 8 of the present invention;

[0065] Fig. 9 A schematic diagram of the structure of a computer device provided in Embodiment 9 of the present invention. DETAILED DESCRIPTION

[0066] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0067] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0068] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0069] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0070] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0071] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0072] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0073] Embodiment 1

[0074] Figure 1 This is a flow chart of a data acquisition method provided in Embodiment 1 of the present invention. The embodiment of the present invention can be applied to a DNS server, and is suitable for situations where it is necessary to alleviate the network delay of accessing the server and improve the speed of accessing the server. The method can be executed by a data acquisition device, and specifically includes the following steps:

[0075] Step 110: Receive an access request sent by a client based on a preset domain name, and determine a first IP address according to the domain name information included in the access request.

[0076] Among them, the DNS server can resolve domain names on the Internet into addresses. The same domain name can correspond to multiple DNS servers, which can reduce the load on the main DNS server.

[0077] Specifically, the client can receive trigger information triggered by the user based on a preset domain name, and determine the first DNS access request according to the trigger information, and the first DNS access request can be a DNS request message. Then, the DNS request message can be sent to the DNS server in a User Data Protocol (UDP) manner.

[0078] In one implementation, determining the first IP address according to the domain name information included in the access request includes: parsing the domain name information to obtain the first IP address.

[0079] The domain name information may be a domain name to be resolved.

[0080] Specifically, the DNS server can resolve the domain name to be resolved and obtain the queried IP address, that is, the first IP address.

[0081] In the embodiment of the present invention, the DNS server may receive a first DNS access request from a user based on a client, and the DNS server determines the first IP address according to domain name information of a preset domain name included in the first DNS access request.

[0082] Step 120: Send the first IP address to the client, so that the client obtains a country list according to the first IP address, wherein the country list includes interface addresses of various countries.

[0083] Specifically, after determining the first IP address, the DNS server may send the first IP address to the client. The client then requests the server based on the first IP address and receives a list of countries supported by the preset domain name from the backend server, which may include the interface addresses of each country.

[0084] Step 130: Receive a current interface address of a current country determined by the client based on the country list, and determine a second IP address according to the current interface address.

[0085] The country list may include the interface addresses of various countries. After determining the current country, the client may also determine the current interface address of the current country.

[0086] In one implementation, determining the second IP address according to the current interface address includes:

[0087] The current interface address is parsed to obtain the second IP address.

[0088] Specifically, the DNS server can resolve the domain name to be resolved, that is, the current interface address, to obtain the queried IP address, that is, the second IP address.

[0089] In the embodiment of the present invention, the DNS server may receive a second DNS access request from the user based on the client, and the DNS server determines the second IP address according to the current interface address included in the second DNS access request.

[0090] Step 140: Send the second IP address to the client, so that the client requests the backend server to obtain data corresponding to the preset domain name based on the second IP address.

[0091] Among them, the backend server is a backend server in the current country, and the second IP address is an access address of a preset domain name in the current country.

[0092] Specifically, after the DNS server resolves and obtains the second IP address, it can send the second IP address to the client, and the client can request the backend server based on the second IP address and obtain data corresponding to the preset domain name.

[0093] In actual applications, if the area of ​​the current country is larger than the preset area, multiple DNS servers can be deployed in different regions of the current country. Of course, the DNS server can be determined according to the current location of the current client to access the preset domain name.

[0094] A data acquisition method provided in the first embodiment of the present invention is applied to a DNS server, including: receiving an access request sent by a client based on a preset domain name, and determining a first IP address according to the domain name information contained in the access request; sending the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, and the country list contains interface addresses of various countries; receiving the current interface address of the current country determined by the client based on the country list, and determining a second IP address according to the current interface address; sending the second IP address to the client, so that the client requests a background server based on the second IP address to obtain data corresponding to the preset domain name. The above technical solution, after determining the current country corresponding to the current location, can determine the current interface address based on the country list, and then determine the second IP address corresponding to the current country based on the current interface address. The client can obtain the data corresponding to the preset domain name from the background server based on the second IP address, so that each country can access the preset domain name through a server deployed in its own country, which reduces network delay and improves access speed.

[0095] Embodiment 2

[0096] Figure 2This is a flow chart of a data acquisition method provided in the second embodiment of the present invention. The embodiment of the present invention can be applied to a DNS server, and is suitable for situations where it is necessary to alleviate the network delay of accessing the server and improve the speed of accessing the server. The method can be executed by a data acquisition device, and specifically includes the following steps:

[0097] Step 210: Receive an access request from a client based on a first IP address, and determine a country list corresponding to a preset domain name according to the first IP address.

[0098] Specifically, after receiving the first IP address sent by the DNS server, the client can make a first access to the background server, and then the background server can receive the client's first background access request based on the first IP address. Further, the background server can determine the country list corresponding to the preset domain name based on the first IP address contained in the first background access request.

[0099] In one implementation, determining a country list corresponding to a preset domain name according to the first IP address includes:

[0100] Determine the domain name information of the preset domain name corresponding to the first IP address; determine the countries supported by the preset domain name and the interface addresses of each of the countries according to the domain name information, and determine the country list according to each of the countries and the interface addresses of each of the countries.

[0101] Step 220: Send the country list to the client, so that the client obtains a second IP address according to the country list.

[0102] Specifically, after determining the country list corresponding to the preset domain name, the backend server can send the country list to the client, and then the client can determine the current interface address based on the country list, and then access the DNS server based on the current interface address to determine the second IP address.

[0103] Step 230: Receive an access request from the client based on the second IP address, and determine data corresponding to the preset domain name according to the second IP address.

[0104] Specifically, after obtaining the second IP address, the client can make a request to the background server, and then the background server can receive the second background access request of the client based on the second IP address.

[0105] Of course, the backend server may also obtain data corresponding to the preset domain name requested by the second backend access request from the database.

[0106] Step 240: Send the data to the client.

[0107] Specifically, after acquiring the data corresponding to the preset domain name, the backend server may send the data to the client, and then the client completes the access to the preset domain name.

[0108] A data acquisition method provided in the second embodiment of the present invention is applied to the background server, including: receiving an access request from a client based on a first IP address, and determining a country list corresponding to a preset domain name according to the first IP address; sending the country list to the client so that the client obtains a second IP address according to the country list; receiving an access request from the client based on the second IP address, and determining data corresponding to the preset domain name according to the second IP address; sending the data to the client. The above technical scheme, after determining the current country corresponding to the current location, can determine the current interface address based on the country list, and then determine the second IP address corresponding to the current country based on the current interface address. The client can obtain the data corresponding to the preset domain name from the background server based on the second IP address, which enables each country to access the preset domain name through a server deployed in its own country, reducing network delays while improving access speed.

[0109] Embodiment 3

[0110] Figure 3 This is a flow chart of a data acquisition method provided in Embodiment 3 of the present invention. The embodiment of the present invention can be applied to a client, and is suitable for situations where it is necessary to alleviate the network delay in accessing a server and improve the speed of accessing the server. The method can be executed by a data acquisition device, and specifically includes the following steps:

[0111] Step 310: Request a DNS server based on a preset domain name, and receive a first IP address determined by the DNS server according to the preset domain name.

[0112] Specifically, the client can obtain trigger information based on the preset domain name, determine the first DNS access request based on the trigger information, and request the DNS server based on the first DNS access request. After receiving the first DNS access request, the DSN server can determine the first IP address based on the preset domain name and send the first IP address to the client.

[0113] Step 320: Request a background server based on the first IP address, and receive a country list determined by the background server according to the first IP address, wherein the country list includes interface addresses of various countries.

[0114] Specifically, after receiving the first IP address sent by the DNS server, the client can continue to request the background server based on the first IP address. After receiving the first background access request, the background server can determine the country list based on the first IP address and send the country list to the client.

[0115] Step 330: determine the current country and the current interface address of the current country, and request the DNS server based on the current interface address, so that the DNS server determines the second IP address according to the current interface address.

[0116] In one implementation, determining the current country and the current interface address of the current country includes:

[0117] Receive trigger information triggered by a user based on the country list, and determine the current country according to the trigger information; determine the current interface address according to the country list and the current country.

[0118] The trigger information may be a selection trigger.

[0119] Specifically, after receiving the country list, the client can receive the user's selection trigger based on the country list, determine the current country according to the selection trigger, and then determine the current interface address. Of course, after receiving the selection trigger, the client can also compare the selected country corresponding to the selection trigger with the real country corresponding to the current location, and prohibit access to the preset domain name when the selected country is inconsistent with the real country, so as to make access to the preset domain name faster and safer.

[0120] Of course, the client may also make a second DNS access request to the DNS server based on the current interface address, so that the DNS server determines the second IP address according to the current interface address and sends the second IP address to the client.

[0121] Step 340: After receiving the second IP address, request the background server based on the second IP address.

[0122] Step 350: Receive and display data corresponding to the preset domain name sent by the background server.

[0123] Specifically, the client may make a second backend access request to the backend server according to the received second IP address, so that the backend server obtains data corresponding to the preset domain name corresponding to the second IP address, and sends the data to the client.

[0124] In actual applications, the preset domain name can be www.domain.com, and backend servers can be deployed in countries around the world that support this domain name. Global users can access the backend server. When the user's information is independent of the country and region, before the user accesses the backend server, they can uniformly access www.domain.com and perform DNS resolution on www.domain.com to determine the list of countries supported by www.domain.com, and determine the domain name www86.domain.com corresponding to the current country determined by the user based on the country list. The acquired server corresponding to this domain name can be a backend server in the current country, which can not only speed up the response speed of accessing the domain name, but also store user information independently of the country.

[0125] A data acquisition method provided in the third embodiment of the present invention is applied to a client, including: requesting a DNS server based on a preset domain name, and receiving a first IP address determined by the DNS server according to the preset domain name; requesting a background server based on the first IP address, and receiving a country list determined by the background server according to the first IP address, wherein the country list includes the interface addresses of each country; determining the current country and the current interface address of the current country, and requesting the DNS server based on the current interface address, so that the DNS server determines a second IP address according to the current interface address; after receiving the second IP address, requesting the background server based on the second IP address; receiving and displaying the data corresponding to the preset domain name issued by the background server. In the above technical solution, after determining the current country corresponding to the current location, the current interface address can be determined based on the country list, and then the second IP address corresponding to the current country can be determined based on the current interface address. The client can obtain the data corresponding to the preset domain name from the background server based on the second IP address, so that each country can access the preset domain name through a server deployed in its own country, thereby reducing network delay and improving access speed.

[0126] Embodiment 4

[0127] Figure 4 This is a flowchart of a data acquisition method provided in the fourth embodiment of the present invention. The embodiment of the present invention can be applied to the situation where it is necessary to alleviate the network delay of accessing the server and improve the speed of accessing the server. Based on the above embodiment, the embodiment of the present invention mainly embodies the interaction process between the DNS server, the background server and the client in the data acquisition method. Figure 4 , the method specifically comprises the following steps:

[0128] Step 410: The client sends a first DNS access request to the DNS server based on the preset domain name.

[0129] Step 411: The DNS server determines a first IP address according to a preset domain name included in the first DNS access request.

[0130] Step 412: The DNS server sends the first IP address to the client.

[0131] Step 413: The client sends a first backend access request to the backend server based on the first IP address.

[0132] Step 414: The backend server determines a country list corresponding to the preset domain name according to the first IP address included in the first backend access request.

[0133] Step 415: The backend server sends the country list to the client.

[0134] Step 416: The client receives trigger information triggered by the user based on the country list.

[0135] Step 417: The client determines the current country and the current interface address according to the trigger information.

[0136] Step 418: The client sends a second DNS access request to the DNS server based on the current interface address.

[0137] Step 419: The DNS server determines the second IP address for the preset domain name in the current country according to the current interface address included in the second DNS access request.

[0138] Step 420: The DNS server sends the second IP address to the client.

[0139] Step 421: The client sends a second backend access request to the backend server based on the second IP address.

[0140] Step 422: The backend server obtains data corresponding to the preset domain name according to the second IP address included in the second backend access request.

[0141] Step 423: The backend server sends the data to the client.

[0142] Step 424: The client receives and displays data corresponding to the preset domain name.

[0143] Embodiment 4 of the present invention provides a data acquisition method, including: a client sends a first DNS access request to a DNS server based on a preset domain name; the DNS server determines a first IP address according to the preset domain name included in the first DNS access request; the DNS server sends the first IP address to the client; the client sends a first background access request to the background server based on the first IP address; the background server determines a country list corresponding to the preset domain name according to the first IP address included in the first background access request; the background server sends the country list to the client; the client receives trigger information triggered by the user based on the country list; the client determines a current country and a current interface address according to the trigger information; the client sends a second DNS access request to the DNS server based on the current interface address; the DNS server determines a second IP address of the current country for the preset domain name according to the current interface address included in the second DNS access request; the DNS server sends the second IP address to the client; the client sends a second background access request to the background server based on the second IP address; the background server obtains data corresponding to the preset domain name according to the second IP address included in the second background access request; the background server sends the data to the client; the client receives and displays the data corresponding to the preset domain name. The above technical solution, after determining the current country corresponding to the current location, can determine the current interface address based on the country list, and then determine the second IP address corresponding to the current country based on the current interface address. The client can obtain the data corresponding to the preset domain name from the background server based on the second IP address, thereby enabling each country to access the preset domain name through servers deployed in its own country, reducing network delays while improving access speed.

[0144] Embodiment 5

[0145] Figure 5 This is a structural diagram of a data acquisition device provided in Embodiment 5 of the present invention, which can be configured in a DNS server. The device and the data acquisition methods of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiments of the data acquisition device can refer to the embodiments of the above data acquisition methods.

[0146] The specific structure of the data acquisition device is as follows: Figure 5 As shown, including:

[0147] like Figure 5 As shown, the device comprises:

[0148] A first request receiving module 510 is used to receive an access request sent by a client based on a preset domain name, and determine a first IP address according to the domain name information included in the access request;

[0149] A first address sending module 520, configured to send the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, wherein the country list includes interface addresses of various countries;

[0150] The interface address receiving module 530 is used to receive the current interface address of the current country determined by the client based on the country list, and determine the second IP address according to the current interface address;

[0151] The second address sending module 540 is used to send the second IP address to the client, so that the client requests the backend server to obtain the data corresponding to the preset domain name based on the second IP address.

[0152] Based on the above embodiment, determining the first IP address according to the domain name information included in the access request includes:

[0153] Resolving the domain name information to obtain the first IP address;

[0154] Accordingly, determining the second IP address according to the current interface address includes:

[0155] The current interface address is parsed to obtain the second IP address.

[0156] The data acquisition device provided in the embodiment of the present invention can execute the data acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0157] It is worth noting that in the embodiment of the above-mentioned data acquisition device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0158] Embodiment 6

[0159] Figure 6 This is a structural diagram of a data acquisition device provided in Embodiment 6 of the present invention, which can be configured in a background server. The device and the data acquisition methods of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiments of the data acquisition device can refer to the embodiments of the above data acquisition methods.

[0160] The specific structure of the data acquisition device is as follows: Figure 6 As shown, including:

[0161] A second request receiving module 610 is used to receive an access request from a client based on a first IP address, and determine a country list corresponding to a preset domain name according to the first IP address;

[0162] A list sending module 620, configured to send the country list to the client, so that the client obtains a second IP address according to the country list;

[0163] A third request receiving module 630, configured to receive an access request from the client based on the second IP address, and determine data corresponding to the preset domain name according to the second IP address;

[0164] The data sending module 640 is used to send the data to the client.

[0165] Based on the above embodiment, determining the country list corresponding to the preset domain name according to the first IP address includes:

[0166] Determine the domain name information of the preset domain name corresponding to the first IP address; determine the countries supported by the preset domain name and the interface addresses of each of the countries according to the domain name information, and determine the country list according to each of the countries and the interface addresses of each of the countries.

[0167] The data acquisition device provided in the embodiment of the present invention can execute the data acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0168] It is worth noting that in the embodiment of the above-mentioned data acquisition device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0169] Embodiment 7

[0170] Figure 7 This is a structural diagram of a data acquisition device provided in Embodiment 7 of the present invention, which can be configured in a client. The device and the data acquisition methods of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiments of the data acquisition device can refer to the embodiments of the above data acquisition methods.

[0171] The specific structure of the data acquisition device is as follows: Figure 7 As shown, including:

[0172] A first request module 710, configured to request a DNS server based on a preset domain name, and receive a first IP address determined by the DNS server according to the preset domain name;

[0173] A second request module 720 is used to request a background server based on the first IP address, and receive a country list determined by the background server according to the first IP address, wherein the country list includes an interface address of each country;

[0174] A determination module 730, configured to determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address, so that the DNS server determines a second IP address according to the current interface address;

[0175] A third request module 740 is configured to request the background server based on the second IP address after receiving the second IP address;

[0176] The data receiving module 750 is used to receive and display the data corresponding to the preset domain name sent by the background server.

[0177] Based on the above embodiment, determining the current country and the current interface address of the current country includes:

[0178] Receive trigger information triggered by a user based on the country list, and determine the current country according to the trigger information; determine the current interface address according to the country list and the current country.

[0179] The data acquisition device provided in the embodiment of the present invention can execute the data acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0180] It is worth noting that in the embodiment of the above-mentioned data acquisition device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0181] Embodiment 8

[0182] Figure 8 This is a structural diagram of a data acquisition system provided in Embodiment 8 of the present invention. This system and the data acquisition methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the data acquisition system, reference can be made to the embodiments of the above data acquisition methods.

[0183] The specific structure of the data acquisition system is as follows: Figure 8As shown, it includes: a DNS server 810, a background server 820 and a client 830, and the client 830 is respectively connected to the DNS server 810, the background server 820 and the client 830 through network communication.

[0184] The DNS server 810 is used to receive an access request sent by a client based on a preset domain name, and determine a first IP address according to the domain name information contained in the access request; send the first IP address to the client so that the client obtains a country list according to the first Internet protocol address, and the country list includes interface addresses of various countries; receive a current interface address of the current country determined by the client based on the country list, and determine a second IP address according to the current interface address; send the second IP address to the client so that the client requests a background server based on the second IP address to obtain data corresponding to the preset domain name.

[0185] The backend server 820 is used to receive an access request from a client based on a first IP address, and determine a country list corresponding to a preset domain name based on the first IP address; send the country list to the client so that the client obtains a second IP address based on the country list; receive an access request from the client based on the second IP address, and determine data corresponding to the preset domain name based on the second IP address; and send the data to the client.

[0186] The client 830 is used to request a DNS server based on a preset domain name, and receive a first IP address determined by the DNS server based on the preset domain name; request a background server based on the first IP address, and receive a country list determined by the background server based on the first IP address, wherein the country list includes interface addresses of various countries; determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address so that the DNS server determines a second IP address based on the current interface address; after receiving the second IP address, request the background server based on the second IP address; receive and display data corresponding to the preset domain name issued by the background server.

[0187] The data acquisition system provided in the embodiment of the present invention can execute the data acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the data acquisition method.

[0188] Embodiment 9

[0189] Fig. 9 A schematic diagram of the structure of a computer device provided in Embodiment 9 of the present invention. Fig. 9A block diagram of an exemplary computer device 9 suitable for use in implementing embodiments of the present invention is shown. Fig. 9 The computer device 9 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0190] like Fig. 9 As shown, the computer device 9 is in the form of a general-purpose computing electronic device. The components of the computer device 9 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0191] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0192] The computer device 9 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 9, including volatile and non-volatile media, removable and non-removable media.

[0193] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 9 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0194] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0195] The computer device 9 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 9, and / or any device that enables the computer device 9 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the computer device 9 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 20. Fig. 9 As shown, the network adapter 20 communicates with other modules of the computer device 9 via the bus 18. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with computer device 9, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0196] The processing unit 16 executes various functional applications and data acquisition by running the programs stored in the system memory 28, such as implementing the data acquisition method provided in the embodiment of the present invention.

[0197] When the method is applied to a DNS server, the method includes:

[0198] Receiving an access request sent by a client based on a preset domain name, and determining a first IP address according to the domain name information included in the access request;

[0199] Sending the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, wherein the country list includes interface addresses of various countries;

[0200] receiving a current interface address of a current country determined by the client based on the country list, and determining a second IP address according to the current interface address;

[0201] The second IP address is sent to the client, so that the client requests the backend server to obtain the data corresponding to the preset domain name based on the second IP address.

[0202] When the method is applied to a backend server, the method includes:

[0203] Receiving an access request from a client based on a first IP address, and determining a country list corresponding to a preset domain name according to the first IP address;

[0204] Sending the country list to the client, so that the client obtains a second IP address according to the country list;

[0205] receiving an access request from the client based on the second IP address, and determining data corresponding to the preset domain name according to the second IP address;

[0206] The data is sent to the client.

[0207] Wherein, when the method is applied to a client, the method includes:

[0208] Requesting a DNS server based on a preset domain name, and receiving a first IP address determined by the DNS server according to the preset domain name;

[0209] Requesting a backend server based on the first IP address, and receiving a country list determined by the backend server according to the first IP address, the country list including interface addresses of various countries;

[0210] Determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address so that the DNS server determines a second IP address according to the current interface address;

[0211] After receiving the second IP address, requesting the background server based on the second IP address;

[0212] Receive and display the data corresponding to the preset domain name sent by the background server.

[0213] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the data acquisition method provided by any embodiment of the present invention.

[0214] Embodiment 10

[0215] Embodiment 10 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, for example, the data acquisition method provided in the embodiment of the present invention is implemented.

[0216] When the method is applied to a DNS server, the method includes:

[0217] Receiving an access request sent by a client based on a preset domain name, and determining a first IP address according to the domain name information included in the access request;

[0218] Sending the first IP address to the client, so that the client obtains a country list according to the first Internet protocol address, wherein the country list includes interface addresses of various countries;

[0219] receiving a current interface address of a current country determined by the client based on the country list, and determining a second IP address according to the current interface address;

[0220] The second IP address is sent to the client, so that the client requests the backend server to obtain the data corresponding to the preset domain name based on the second IP address.

[0221] When the method is applied to a backend server, the method includes:

[0222] Receiving an access request from a client based on a first IP address, and determining a country list corresponding to a preset domain name according to the first IP address;

[0223] Sending the country list to the client, so that the client obtains a second IP address according to the country list;

[0224] receiving an access request from the client based on the second IP address, and determining data corresponding to the preset domain name according to the second IP address;

[0225] The data is sent to the client.

[0226] Wherein, when the method is applied to a client, the method includes:

[0227] Requesting a DNS server based on a preset domain name, and receiving a first IP address determined by the DNS server according to the preset domain name;

[0228] Requesting a backend server based on the first IP address, and receiving a country list determined by the backend server according to the first IP address, the country list including interface addresses of various countries;

[0229] Determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address so that the DNS server determines a second IP address according to the current interface address;

[0230] After receiving the second IP address, requesting the background server based on the second IP address;

[0231] Receive and display the data corresponding to the preset domain name sent by the background server.

[0232] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0233] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0234] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0235] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0236] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0237] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A data acquisition method, characterized in that: Applied to domain name DNS server, including: Receiving an access request sent by a client based on a preset domain name, and determining a first Internet Protocol IP address according to the domain name information included in the access request; Sending the first IP address to the client, so that the client requests the backend server according to the first IP address, and receives a country list determined by the backend server according to the countries supported by the preset domain name corresponding to the domain name information corresponding to the first IP address and the interface addresses of each country, wherein the country list includes the interface addresses of each country; receiving a current interface address of a current country determined by the client based on the country list, and determining a second IP address according to the current interface address; The second IP address is sent to the client, so that the client requests the backend server to obtain the data corresponding to the preset domain name based on the second IP address.

2. The data acquisition method according to claim 1, characterized in that: Determining the first IP address according to the domain name information included in the access request includes: Resolving the domain name information to obtain the first IP address; Accordingly, determining the second IP address according to the current interface address includes: The current interface address is parsed to obtain the second IP address.

3. A data acquisition method, characterized in that: Applied to the backend server, including: receiving an access request from a client based on a first IP address, and determining a country list corresponding to the preset domain name according to the countries supported by the preset domain name corresponding to the domain name information corresponding to the first IP address and the interface addresses of the countries; Sending the country list to the client, so that the client obtains a second IP address according to the country list; receiving an access request from the client based on the second IP address, and determining data corresponding to the preset domain name according to the second IP address; The data is sent to the client.

4. The data acquisition method according to claim 3, characterized in that: Determining a country list corresponding to a preset domain name according to the first IP address includes: Determine the domain name information of the preset domain name corresponding to the first IP address; The countries supported by the preset domain name and the interface addresses of the countries are determined according to the domain name information, and the country list is determined according to the countries and the interface addresses of the countries.

5. A data acquisition method, characterized in that: Applied to the client, including: Requesting a DNS server based on a preset domain name, and receiving a first IP address determined by the DNS server according to the preset domain name; Requesting a backend server based on the first IP address, and receiving a country list determined by the backend server according to the countries supported by the preset domain name corresponding to the domain name information corresponding to the first IP address and the interface addresses of the countries, wherein the country list includes the interface addresses of the countries; Determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address so that the DNS server determines a second IP address according to the current interface address; After receiving the second IP address, requesting the background server based on the second IP address; Receive and display the data corresponding to the preset domain name sent by the background server.

6. The data acquisition method according to claim 5, characterized in that: Determine the current country and the current interface address of the current country, including: receiving trigger information triggered by a user based on the country list, and determining the current country according to the trigger information; The current interface address is determined according to the country list and the current country.

7. A data acquisition device, characterized in that: Configured on the DNS server, including: A first request receiving module, used to receive an access request sent by a client based on a preset domain name, and determine a first IP address according to the domain name information included in the access request; A first address sending module, configured to send the first IP address to the client, so that the client requests the backend server according to the first Internet Protocol address, and receives a country list determined by the backend server according to the first IP address, wherein the country list includes interface addresses of various countries; an interface address receiving module, configured to receive a current interface address of a current country determined by the client based on the country list, and determine a second IP address according to the current interface address; The second address sending module is used to send the second IP address to the client, so that the client requests the background server to obtain the data corresponding to the preset domain name based on the second IP address.

8. A data acquisition device, characterized in that: Configured on the backend server, including: a second request receiving module, configured to receive an access request from a client based on a first IP address, and determine a country list corresponding to a preset domain name according to the first IP address; A list sending module, used for sending the country list to the client, so that the client obtains the second IP address according to the country list; a third request receiving module, configured to receive an access request from the client based on the second IP address, and determine data corresponding to the preset domain name according to the second IP address; A data sending module is used to send the data to the client.

9. A data acquisition device, characterized in that: Configured on the client, including: A first request module, configured to request a DNS server based on a preset domain name, and receive a first IP address determined by the DNS server according to the preset domain name; A second request module, configured to request a background server based on the first IP address, and receive a country list determined by the background server according to the first IP address, wherein the country list includes an interface address of each country; a determination module, configured to determine a current country and a current interface address of the current country, and request the DNS server based on the current interface address, so that the DNS server determines a second IP address according to the current interface address; A third request module, configured to request the background server based on the second IP address after receiving the second IP address; The data receiving module is used to receive and display the data corresponding to the preset domain name sent by the background server.

10. A data acquisition system, characterized in that: include: DNS server, backend server and client, including: The DNS server is used to execute the data acquisition method according to claim 1 or 2; The backend server is used to execute the data acquisition method as claimed in claim 3 or 4; The client is used to execute the data acquisition method as described in claim 5 or 6.

11. An electronic device, characterized in that: The device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the data acquisition method as described in any one of claims 1 to 6.

12. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the data acquisition method according to any one of claims 1 to 6 when executed by a computer processor.

Citation Information

Patent Citations

  • Method and system for quickly positioning specific server

    CN112087484A