Server access method, device, equipment and storage medium

By introducing a DOH server and a pre-built domain name resolution module into the APP, the access problems caused by telecom operator server failures or domain name hijacking are resolved, achieving high availability and secure access in failure situations.

CN115834536BActive Publication Date: 2024-11-12INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211361050.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-02
Publication Date
2024-11-12
Estimated Expiration
2042-11-02

AI Technical Summary

Technical Problem

When telecom operators' servers malfunction or domain name hijacking occurs, users are unable to access business transaction servers, causing a wide range of apps to malfunction.

Method used

By introducing a DOH server into the APP, a domain name resolution module is pre-built to determine the IP address of the DOH server. The domain name of the business transaction server is sent to the DOH server and the telecom operator server for resolution. The two IP addresses are compared. If they are the same, either IP address is used for access. If they are different and the IP address resolved by the telecom operator server is abnormal, the IP address resolved by the DOH server is used for access.

Benefits of technology

When telecom operator servers malfunction or domain name hijacking occurs, the app can still access business transaction servers, improving the availability and security of domain name resolution and protecting user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834536B_ABST
    Figure CN115834536B_ABST
Patent Text Reader

Abstract

The present application belongs to the financial field and the communication field, and specifically relates to a server access method, device, equipment and storage medium. The present application obtains the first domain name of the business transaction server by responding to the access request to the business transaction server corresponding to the target business of the target application APP; based on the first protocol, the first domain name is sent to the DOH server, and based on the second protocol, the first domain name is sent to the telecom operator server; the first IP address from the DOH server and the second IP address from the telecom operator server are received; the first IP address and the second IP address are compared and processed to obtain a comparison result; based on the comparison result, the first IP address or the second IP address is used to access the business transaction server. The present application can achieve the purpose that the APP can still access the business transaction server when the telecom operator server fails or the domain name is hijacked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the financial field and the communication field, and in particular to a server access method, device, equipment and storage medium. Background Art

[0002] Domain name resolution refers to a service that points a domain name to a website space IP address, allowing users to easily access the website through the registered domain name, that is, the conversion process from domain name to IP address. With the popularization and development of mobile Internet, the number of users using mobile Internet has increased sharply, and various applications have successively developed corresponding mobile application APPs to meet the needs of a large number of users.

[0003] In the related art, when a user uses an APP to access a business transaction server, what is actually accessed is the domain name corresponding to the business transaction server written by the APP developer in the APP. Before a user accesses a business transaction server corresponding to a business of the APP, the terminal device can first send the domain name of the business transaction server to be accessed to the telecom operator's server for domain name resolution. The telecom operator server will resolve the domain name string into an exact IP address and provide it to the user's terminal device to send the user's access request to the corresponding IP address, so that the user can access the business transaction server. However, in actual use, if the telecom operator server fails or the domain name is hijacked, a large range of APPs will be unable to access the business transaction server. Summary of the invention

[0004] The present application provides a server access method, apparatus, device and storage medium, which are used to achieve the purpose of enabling the APP to still access the business transaction server when a telecommunications operator server fails or a domain name hijacking problem occurs.

[0005] In a first aspect, the present application provides a server access method, comprising: in response to an access request to a business transaction server corresponding to a target business of a target application APP, obtaining a first domain name of the business transaction server; based on a first protocol, sending the first domain name to a DOH server, and based on a second protocol, sending the first domain name to a telecom operator server, the DOH server is used to resolve the first domain name through the first protocol to obtain a first IP address of the business transaction server, and the telecom operator server is used to resolve the first domain name through the second protocol to obtain a second IP address of the business transaction server; receiving a first IP address from the DOH server and a second IP address from the telecom operator server; comparing the first IP address and the second IP address to obtain a comparison result; based on the comparison result, using the first IP address or the second IP address to access the business transaction server.

[0006] In a possible implementation, based on the first protocol, a first domain name is sent to a DOH server, including: determining a target IP address of the DOH server through a pre-built domain name resolution module, the domain name resolution module being used to resolve a second domain name of the DOH server to obtain a target IP address; based on the first protocol and the target IP address, sending the first domain name to the DOH server.

[0007] In one possible implementation, based on the comparison result, the first IP address or the second IP address is used to access the business transaction server, including: if the comparison result indicates that the first IP address and the second IP address are different, the second IP address is sent to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality with the second IP address; receiving the judgment result from the developer terminal; if the judgment result indicates that there is no abnormality with the second IP address, the first IP address or the second IP address is used to access the business transaction server; if the judgment result indicates that there is an abnormality with the second IP address, the first IP address is used to access the business transaction server.

[0008] In a possible implementation, based on the comparison result, using the first IP address or the second IP address to access the business transaction server includes: if the comparison result indicates that the first IP address and the second IP address are the same, using the first IP address or the second IP address to access the business transaction server.

[0009] In a possible implementation, after sending the first domain name to the DOH server based on the first protocol and sending the first domain name to the telecom operator server based on the second protocol, it also includes: if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is used to access the business transaction server.

[0010] In one possible implementation, if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is used to access the business transaction server, including: if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is sent to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality with the second IP address; receive the judgment result from the developer terminal; if the judgment result indicates that there is no abnormality with the second IP address, the second IP address is used to access the business transaction server.

[0011] In a possible implementation, the method further includes: if the determination result indicates that an abnormality occurs in the second IP address, reporting the abnormality to a telecommunications operator server so that the telecommunications operator server performs abnormality processing on the abnormality.

[0012] In a second aspect, the present application provides a server access device, comprising: an acquisition module, used to obtain a first domain name of a business transaction server in response to an access request to a business transaction server corresponding to a target business of a target application APP; a sending module, used to send the first domain name to a DOH server based on a first protocol, and to send the first domain name to a telecom operator server based on a second protocol, the DOH server is used to resolve the first domain name through the first protocol to obtain a first IP address of the business transaction server, and the telecom operator server is used to resolve the first domain name through the second protocol to obtain a second IP address of the business transaction server; a receiving module, used to receive a first IP address from the DOH server and a second IP address from the telecom operator server; a comparison module, used to compare the first IP address and the second IP address to obtain a comparison result; an access module, used to access the business transaction server using the first IP address or the second IP address based on the comparison result.

[0013] In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the server access method of the first aspect.

[0014] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the server access method of the first aspect.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the server access method of the first aspect when the computer program is executed by a processor.

[0016] The server access method, apparatus, device and storage medium provided in the present application provide a domain name resolution path controllable by the developer, that is, through a pre-built domain name resolution module, the IP address of the DOH server is determined in advance, and then the domain name of the business transaction server to be accessed is sent to the DOH server and the telecom operator server. The DOH server and the telecom operator server respectively resolve the domain name of the business transaction server to obtain two IP addresses, and compare the two IP addresses. If the two IP addresses are the same, use any one of the IP addresses to access the business transaction server. If the two IP addresses are different and the IP address resolved by the telecom operator server is abnormal, use the IP address resolved by the DOH server to access the business transaction server, thereby achieving that when the telecom operator server fails or the domain name is hijacked, the APP can still access the business transaction server. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] Figure 1 A schematic diagram of a scenario of a server access method provided in an embodiment of the present application;

[0019] Figure 2 A flow chart of a server access method provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of a mobile terminal APP architecture provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of the structure of a server access device provided in an embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0023] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor. DETAILED DESCRIPTION

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0025] First, the terms involved in this application are explained:

[0026] Mobile terminal APP: An application service developed for mobile terminals such as smartphones and PADs. It is developed by developers and installed on users' smart mobile terminals to realize application service functions.

[0027] DNS (Domain Name System): A conventional resolution system that provides domain name resolution services through TCP and UDP protocols, which can map domain names and IP addresses to each other.

[0028] DOH (DNS over HTTP(S)): encapsulates DNS requests through HTTP or HTTPS protocol, that is, uses application layer HTTP or HTTPS protocol to encapsulate network layer DNS requests.

[0029] The related technologies provided in the background technology have at least the following technical problems:

[0030] With the popularization of mobile Internet and the development of related technologies, the number of users using mobile Internet has increased sharply, and each application has developed its own mobile terminal APP to meet the needs of a large number of users. When a user uses an APP to access a business transaction server, what is actually accessed is the domain name corresponding to the business transaction server written by the APP developer in the APP. Before a user accesses a business transaction server corresponding to a certain business of the APP, the terminal device can first send the domain name of the business transaction server to be accessed to the telecom operator's telecom operator server for domain name resolution. The telecom operator server resolves the domain name string into an exact IP address and provides it to the user's terminal device to send the user's access request to the corresponding IP address, so that the user can access the business transaction server. However, in actual use, if the telecom operator server fails or the domain name is hijacked, a large range of APPs will be unable to access the business transaction server.

[0031] In response to the problems in the related technology, this application proposes a server access method, which adds a new domain name resolution method in the APP on the basis of the original domain name resolution process, that is, through a pre-built domain name resolution module, the IP address of the DOH server is determined in advance, and then the domain name of the business transaction server to be accessed is sent to the DOH server and the telecom operator server. The DOH server and the telecom operator server respectively resolve the domain name of the business transaction server to obtain two IP addresses, and compare the two IP addresses. If the two IP addresses are the same, use any one of the IP addresses to access the business transaction server. If the two IP addresses are different and the IP address resolved by the telecom operator server is abnormal, use the IP address resolved by the DOH server to access the business transaction server, so that when the telecom operator server fails or the domain name hijacking problem occurs, the APP can still access the business transaction server. Therefore, the problem of unavailability of the domain name resolution service of the telecom operator server and / or domain name hijacking attack can be solved, forming a highly available domain name resolution solution to ensure user use.

[0032] In one embodiment, the server access method may be applied in an application scenario. Figure 1 A schematic diagram of a scenario of a server access method provided in an embodiment of the present application, such as Figure 1As shown, a target APP is installed in the terminal device, and a DOH domain name resolution module and a traditional domain name resolution module are designed in the target APP. The DOH domain name resolution module can determine the IP address of the DOH server, and the traditional domain name resolution module can determine the IP address of the telecom operator server. When the user opens the target APP and wants to access the business transaction server corresponding to the target business in the target APP, the terminal device can obtain the domain name of the business transaction server, and send the domain name to the DOH server through the DOH domain name resolution module, and send the domain name to the telecom operator server through the traditional domain name resolution module. The DOH server resolves the domain name of the business transaction server to obtain the first IP address of the business transaction server, and then the telecom operator server resolves the domain name of the business transaction server to obtain the second IP address of the business transaction server. The DOH domain name resolution module in the terminal device compares the first IP address with the second IP address to determine whether to use the first IP address or the second IP address to access the business transaction server.

[0033] In the above scenario, if the first IP address is the same as the second IP address, you can choose one of the first IP address and the second IP address to access the business transaction server. If the first IP address and the second IP address are different, and there is no abnormality in the second IP address, you can choose one of the first IP address and the second IP address to access the business transaction server. If the first IP address and the second IP address are different, and there is an abnormality in the second IP address, the first IP address is used to access the business transaction server. If the DOH domain name resolution module does not detect the first IP address returned by the DOH server, the second IP address is used to access the business transaction server.

[0034] In the above scenario, by adding a DOH domain name resolution module, another way to resolve the domain name of the business transaction server can be added, that is, the domain name of the business transaction server is resolved through the DOH server, so that the business transaction server can be accessed in two ways. In this way, when the telecom operator server fails, the terminal device can also access the business transaction server through the IP address resolved by the DOH server.

[0035] In conjunction with the above scenarios, the technical solution of the present application and how the technical solution of the present application solves the above technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0036] The present application provides a server access method. Figure 2 A flow chart of a server access method provided in an embodiment of the present application, such as Figure 2As shown, the method comprises the following steps:

[0037] S201: In response to an access request to a business transaction server corresponding to a target business of a target application APP, a first domain name of the business transaction server is obtained.

[0038] In this step, the user can request access to the business transaction server by opening the target APP on the mobile terminal. After responding to the access request to the business transaction server, the terminal device can obtain the first domain name of the business transaction server to determine the IP address of the business transaction server.

[0039] Optionally, the target APP architecture can be as follows Figure 3 As shown, Figure 3 A schematic diagram of the mobile terminal APP architecture provided in the embodiment of the present application, in Figure 3 In the APP architecture, the innermost layer can be the business transaction server, which is the server that actually performs actual application business transaction services. The outer layer of the business transaction server is the DOH domain name resolution module and the traditional domain name resolution module. The outermost layer of the APP architecture is the APP code obfuscation and shell module. By shelling and code obfuscating the APP, the APP can be prevented from being reverse cracked.

[0040] S202: Based on the first protocol, send the first domain name to the DOH server, and based on the second protocol, send the first domain name to the telecommunications operator server.

[0041] In this step, the DOH server is used to resolve the first domain name through the first protocol to obtain the first IP address of the business transaction server, and the telecom operator server is used to resolve the first domain name through the second protocol to obtain the second IP address of the business transaction server.

[0042] Optionally, the first protocol may be a hypertext transfer protocol HTTP or HTTPS, and the second protocol may be a DNS protocol. The DOH server may resolve the first domain name through HTTP or HTTPS, thereby obtaining a first IP address of a business transaction server resolved by the DOH server, and the telecom operator server may resolve the first domain name through the DNS protocol, thereby obtaining a second IP address of the business transaction server resolved by the telecom operator server. After resolving and obtaining the first IP address, the DOH returns the first IP address to the terminal device, and after resolving and obtaining the second IP address, the telecom operator server returns the second IP address to the terminal device.

[0043] S203: Receive a first IP address from a DOH server and a second IP address from a telecommunications operator server.

[0044] S204: Compare the first IP address and the second IP address to obtain a comparison result.

[0045] In this step, after receiving the first IP address and the second IP address, the terminal device may compare the first IP address and the second IP address to determine the consistency of the first IP address and the second IP address.

[0046] S205: Based on the comparison result, the business transaction server is accessed using the first IP address or the second IP address.

[0047] In this step, the comparison result may include that the first IP address and the second IP address are the same, or the first IP address and the second IP address are different. Therefore, based on the comparison result, it can be determined whether to use the first IP address or the second IP address to access the business transaction server.

[0048] The server access method provided in this embodiment sends the domain name of the business transaction server to be accessed to the DOH server and the telecom operator server, and the DOH server and the telecom operator server respectively resolve the domain name of the business transaction server to obtain two IP addresses, and compare the two IP addresses. If the two IP addresses are the same, use any one of the IP addresses to access the business transaction server. If the two IP addresses are different and the IP address resolved by the telecom operator server is abnormal, use the IP address resolved by the DOH server to access the business transaction server. This ensures that when the telecom operator server fails or the domain name is hijacked, the APP can still access the business transaction server.

[0049] In one embodiment, based on the first protocol, a first domain name is sent to a DOH server, including: determining a target IP address of the DOH server through a pre-built domain name resolution module, the domain name resolution module is used to resolve a second domain name of the DOH server to obtain the target IP address; based on the first protocol and the target IP address, the first domain name is sent to the DOH server.

[0050] In this solution, a domain name resolution module can be pre-designed in the target APP, and the domain name resolution module can be a DOH domain name resolution module. The DOH domain name resolution module can resolve the second domain name of the DOH server to obtain the target IP address of the DOH server, so that after the terminal device determines the target IP address of the DOH server, it can send the first domain name to the DOH server based on the first protocol according to the target IP address.

[0051] Optionally, each time the user logs in to the target APP, the terminal device can confirm the target IP address of the DOH server and write the target IP address into the cache, so that the terminal device can send the first domain name to the DOH server according to the target IP address after encapsulating the first domain name of the business transaction server through the HTTP or HTTPS protocol.

[0052] Optionally, the target IP address of the DOH server is determined in advance through a pre-built domain name resolution module so that the domain name of the business transaction server can be sent to the DOH server. In this way, the domain name of the business transaction server can be resolved by the DOH server to obtain the IP address of the business transaction server, and the business transaction server can be accessed using the IP address resolved by the DOH server. This ensures that when the telecom operator's server fails or the domain name is hijacked, the APP can still access the business transaction server.

[0053] In one embodiment, based on the comparison result, the first IP address or the second IP address is used to access the business transaction server, including: if the comparison result indicates that the first IP address and the second IP address are different, the second IP address is sent to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality in the second IP address; receive the judgment result from the developer terminal; if the judgment result indicates that there is no abnormality in the second IP address, the first IP address or the second IP address is used to access the business transaction server; if the judgment result indicates that there is an abnormality in the second IP address, the first IP address is used to access the business transaction server.

[0054] In this solution, the comparison result includes whether the first IP address is the same as the second IP address, or whether the first IP address is different from the second IP address. If the first IP address is different from the second IP address, it can be explained that the telecom operator server may have a fault or a domain name hijacking may have occurred. Therefore, the second IP address can be sent to the developer terminal of the target APP, and the developer terminal can determine whether the second IP address is abnormal. If the second IP address is normal, the business transaction server can be accessed using the first IP address or the second IP address. If the second IP address is abnormal, the business transaction server can be accessed using the first IP address.

[0055] Optionally, since the DOH server can run DNS using a secure HTTP or HTTPS protocol, which can enhance user security and privacy, when the terminal device receives a first IP address from the DOH server and a second IP address from a telecom operator server, the first IP address is used preferentially to access the business transaction server.

[0056] Optionally, when a user accesses a business transaction server through an APP in a terminal device such as a laptop or desktop computer, the user cannot use the first IP address resolved by the DOH server and can only use the second IP address resolved by the telecom operator server. Therefore, in order to better meet user needs, when the mobile terminal device receives the first IP address from the DOH server and the second IP address from the telecom operator server, in addition to giving priority to using the first IP address to access the business transaction server, the second IP address can also be sent to the developer terminal of the target APP, and the developer terminal determines whether there is an abnormality with the second IP address. If there is no abnormality with the second IP address, the terminal device such as the laptop or desktop computer can safely use the second IP address to access the business transaction server. If there is an abnormality with the second IP address, the abnormality needs to be reported to the telecom operator server so that the telecom operator server can promptly resolve the abnormality, thereby ensuring that the terminal device such as the laptop or desktop computer can use the second IP address to access the business transaction server.

[0057] Optionally, by using the IP address resolved by the DOH server to access the business transaction server, it can be achieved that when the telecom operator's server fails or the domain name is hijacked, the APP can still access the business transaction server.

[0058] In one embodiment, based on the comparison result, using the first IP address or the second IP address to access the business transaction server includes: if the comparison result indicates that the first IP address and the second IP address are the same, using the first IP address or the second IP address to access the business transaction server.

[0059] In this solution, if the first IP address and the second IP address are the same, it can indicate that the telecommunications operator server has not failed or the domain name has been hijacked. Therefore, either the first IP address or the second IP address can be used to access the business transaction server.

[0060] Optionally, since the security of the DOH server is higher than that of the telecommunications operator server, the first IP address may be preferably used to access the business transaction server, thereby improving the security and high availability of access to the business transaction server.

[0061] In one embodiment, after sending the first domain name to the DOH server based on the first protocol and sending the first domain name to the telecom operator server based on the second protocol, it also includes: if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is used to access the business transaction server.

[0062] In this scheme, if the terminal device does not receive the first IP address sent by the DOH server, it may indicate that an abnormality may have occurred in the DOH server. Therefore, the second IP address sent by the telecom operator server can be used to access the business transaction server. In this way, when an abnormality occurs in one of the DOH server and the telecom operator server, the IP address of the business transaction server resolved by the other server can be used to access the business transaction server, thereby improving the high availability of access to the business transaction server.

[0063] In one embodiment, if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is used to access the business transaction server, including: if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is sent to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality with the second IP address; receive the judgment result from the developer terminal; if the judgment result indicates that there is no abnormality with the second IP address, the second IP address is used to access the business transaction server.

[0064] In this solution, if the DOH server is abnormal, causing the terminal device to be unable to receive the first IP address sent by the DOH server, then after receiving the second IP address sent by the telecom operator server, in order to improve the security of accessing the business transaction server, the second IP address can be sent to the developer terminal of the target APP, and the developer terminal of the target APP determines whether the second IP address is abnormal. If the second IP address is not abnormal, the second IP address can be safely used to access the business transaction server, thereby improving the security of accessing the business transaction server.

[0065] In one embodiment, the method further includes: if the judgment result indicates that an abnormality occurs in the second IP address, reporting the abnormality to the telecommunications operator server so that the telecommunications operator server performs abnormal processing on the abnormality.

[0066] In this solution, if an exception occurs in the DOH server, causing the terminal device to be unable to receive the first IP address sent by the DOH server, and an exception occurs in the second IP address sent by the telecom operator server, then the business transaction server cannot be accessed. Therefore, the exception can be sent to the telecom operator server, and the telecom operator server will resolve the exception, thereby ensuring the privacy and security of the user.

[0067] Optionally, if the terminal device does not receive the first IP address sent by the DOH server, the terminal device may report the abnormal problem to the DOH server through the DOH domain name resolution module so that the DOH server can solve the abnormal problem in time.

[0068] The server access method provided in this embodiment adopts two domain name resolution methods, namely, the DOH server resolves the domain name of the business transaction server and the telecom operator server resolves the domain name of the business transaction server, thereby obtaining a mutually redundant and highly available solution for accessing the business transaction server, avoiding the problem that a large range of APPs cannot access the business transaction server due to failures or domain name hijacking of the telecom operator server, or abnormalities in the DOH server, and timely resolving possible domain name hijacking problems on the telecom operator server to avoid users from being phished and ensure the privacy and security of users.

[0069] Generally speaking, the technical solution provided by this application is a technical solution that can ensure that the APP can still access the business transaction server when a telecommunications operator server fails or a domain name hijacking problem occurs, and can also ensure the privacy and security of users when accessing the business transaction server.

[0070] The embodiment of the present application also provides a server access device. Figure 4 A schematic diagram of the structure of the server access device provided in the embodiment of the present application, such as Figure 4 As shown, the server access device 400 includes:

[0071] The acquisition module 401 is used to obtain a first domain name of the business transaction server in response to an access request to the business transaction server corresponding to the target business of the target application APP;

[0072] The sending module 402 is used to send the first domain name to the DOH server based on the first protocol, and send the first domain name to the telecom operator server based on the second protocol, the DOH server is used to resolve the first domain name through the first protocol to obtain the first IP address of the business transaction server, and the telecom operator server is used to resolve the first domain name through the second protocol to obtain the second IP address of the business transaction server;

[0073] A receiving module 403, configured to receive a first IP address from a DOH server and a second IP address from a telecommunications operator server;

[0074] A comparison module 404 is used to compare the first IP address and the second IP address to obtain a comparison result;

[0075] The access module 405 is used to access the business transaction server using the first IP address or the second IP address based on the comparison result.

[0076] Optionally, when the sending module 402 sends the first domain name to the DOH server based on the first protocol, it is specifically used to: determine the target IP address of the DOH server through a pre-built domain name resolution module, the domain name resolution module is used to resolve the second domain name of the DOH server to obtain the target IP address; based on the first protocol and the target IP address, send the first domain name to the DOH server.

[0077] Optionally, when the access module 405 uses the first IP address or the second IP address to access the business transaction server based on the comparison result, it is specifically used to: if the comparison result indicates that the first IP address and the second IP address are different, send the second IP address to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality with the second IP address; receive the judgment result from the developer terminal; if the judgment result indicates that there is no abnormality with the second IP address, use the first IP address or the second IP address to access the business transaction server; if the judgment result indicates that there is an abnormality with the second IP address, use the first IP address to access the business transaction server.

[0078] Optionally, when the access module 405 uses the first IP address or the second IP address to access the business transaction server based on the comparison result, it is also specifically used to: if the comparison result indicates that the first IP address and the second IP address are the same, then use the first IP address or the second IP address to access the business transaction server.

[0079] Optionally, the server access device 400 may also include a first processing module (not shown), which is specifically used to: after sending the first domain name to the DOH server based on the first protocol and sending the first domain name to the telecom operator server based on the second protocol, if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, use the second IP address to access the business transaction server.

[0080] Optionally, when the processing module does not receive the first IP address from the DOH server and receives the second IP address from the telecom operator server, it uses the second IP address to access the business transaction server. Specifically, if the first IP address from the DOH server is not received and the second IP address from the telecom operator server is received, the second IP address is sent to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality with the second IP address; receive the judgment result from the developer terminal; if the judgment result indicates that there is no abnormality with the second IP address, the second IP address is used to access the business transaction server.

[0081] Optionally, the server access device 400 may further include a second processing module (not shown), which is specifically used to: if the judgment result indicates that an abnormality occurs in the second IP address, report the abnormality to the telecommunications operator server so that the telecommunications operator server performs abnormal processing on the abnormality.

[0082] The server access device provided in this embodiment is used to execute the technical solution of the server access method in the aforementioned method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0083] An embodiment of the present application also provides an electronic device. Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device 500 includes:

[0084] A processor 511, a memory 512 communicatively connected to the processor 511, and an interactive interface 513;

[0085] The memory 512 is used to store computer-executable instructions executable by the processor 511;

[0086] The processor 511 is configured to execute computer-executable instructions stored in the memory 512 to implement the technical solution of the above-mentioned server access method.

[0087] In the electronic device 500, the memory 512, the processor 511, and the interactive interface 513 are directly or indirectly electrically connected to each other to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 512 stores computer-executable instructions for implementing the server access method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor 511 executes various functional applications and data processing by running the software programs and modules stored in the memory 512.

[0088] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0089] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0090] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the technical solution of the server access method provided in the aforementioned method embodiment.

[0091] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solution of the server access method provided in the aforementioned method embodiment.

[0092] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims of the present application.

[0093] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A server access method, characterized in that: include: In response to an access request to a business transaction server corresponding to a target business of a target application program APP, obtaining a first domain name of the business transaction server; Based on the first protocol, the first domain name is sent to the DOH server, and based on the second protocol, the first domain name is sent to the telecom operator server, the DOH server is used to resolve the first domain name through the first protocol to obtain the first IP address of the business transaction server, and the telecom operator server is used to resolve the first domain name through the second protocol to obtain the second IP address of the business transaction server; Receiving the first IP address from the DOH server and the second IP address from the telecommunications operator server; Compare the first IP address and the second IP address to obtain a comparison result; Based on the comparison result, the business transaction server is accessed using the first IP address or the second IP address.

2. The server access method according to claim 1, characterized in that: The sending the first domain name to the DOH server based on the first protocol includes: Determine the target IP address of the DOH server through a pre-built domain name resolution module, wherein the domain name resolution module is used to resolve the second domain name of the DOH server to obtain the target IP address; Based on the first protocol and the target IP address, the first domain name is sent to the DOH server.

3. The server access method according to claim 1, characterized in that: The using the first IP address or the second IP address to access the business transaction server based on the comparison result includes: If the comparison result indicates that the first IP address and the second IP address are different, sending the second IP address to the developer terminal of the target APP, and the developer terminal is used to determine whether there is an abnormality in the second IP address; Receiving a determination result from the developer terminal; If the judgment result indicates that the second IP address is normal, the first IP address or the second IP address is used to access the business transaction server; If the judgment result indicates that the second IP address is abnormal, the first IP address is used to access the business transaction server.

4. The server access method according to claim 1, characterized in that: The using the first IP address or the second IP address to access the business transaction server based on the comparison result includes: If the comparison result indicates that the first IP address and the second IP address are the same, the first IP address or the second IP address is used to access the business transaction server.

5. The server access method according to any one of claims 1 to 4, characterized in that: After sending the first domain name to the DOH server based on the first protocol and sending the first domain name to the telecom operator server based on the second protocol, the method further includes: If the first IP address from the DOH server is not received, and the second IP address from the telecom operator server is received, the second IP address is used to access the business transaction server.

6. The server access method according to claim 5, characterized in that: If the first IP address from the DOH server is not received, and the second IP address from the telecommunications operator server is received, accessing the business transaction server using the second IP address includes: If the first IP address from the DOH server is not received, and the second IP address from the telecom operator server is received, the second IP address is sent to the developer terminal of the target APP, and the developer terminal is used to determine whether the second IP address is abnormal; Receiving a determination result from the developer terminal; If the judgment result indicates that there is no abnormality in the second IP address, the second IP address is used to access the business transaction server.

7. The server access method according to claim 6, characterized in that: Also includes: If the judgment result indicates that an abnormality occurs in the second IP address, the abnormality is reported to the telecommunications operator server so that the telecommunications operator server performs abnormal processing on the abnormality.

8. A server access device, characterized in that: include: an acquisition module, configured to acquire a first domain name of a business transaction server in response to an access request to the business transaction server corresponding to the target business of the target application APP; a sending module, configured to send the first domain name to a DOH server based on a first protocol, and to send the first domain name to a telecom operator server based on a second protocol, wherein the DOH server is configured to resolve the first domain name through the first protocol to obtain a first IP address of the business transaction server, and the telecom operator server is configured to resolve the first domain name through the second protocol to obtain a second IP address of the business transaction server; A receiving module, configured to receive the first IP address from the DOH server and the second IP address from the telecommunications operator server; A comparison module, used for comparing the first IP address and the second IP address to obtain a comparison result; An access module is used to access the business transaction server using the first IP address or the second IP address based on the comparison result.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the server access method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the server access method according to any one of claims 1 to 7.