CN113965543B - Access method, device and storage medium of application server - Google Patents

Access method, device and storage medium of application server Download PDF

Info

Publication number
CN113965543B
CN113965543B CN202010634896.4A CN202010634896A CN113965543B CN 113965543 B CN113965543 B CN 113965543B CN 202010634896 A CN202010634896 A CN 202010634896A CN 113965543 B CN113965543 B CN 113965543B
Authority
CN
China
Prior art keywords
domain name
network environment
target client
information
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010634896.4A
Other languages
Chinese (zh)
Other versions
CN113965543A (en
Inventor
李刘腾
宁斌晖
张丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Domain Computer Network Co Ltd
Original Assignee
Shenzhen Tencent Domain Computer Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Domain Computer Network Co Ltd filed Critical Shenzhen Tencent Domain Computer Network Co Ltd
Priority to CN202010634896.4A priority Critical patent/CN113965543B/en
Publication of CN113965543A publication Critical patent/CN113965543A/en
Application granted granted Critical
Publication of CN113965543B publication Critical patent/CN113965543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2557Translation policies or rules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The application provides an access method, an access device and a storage medium of an application server, relates to the cloud technology, relates to the technical field of computers, and is used for realizing access path change and improving test efficiency. The cloud server receives a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client; determining a first corresponding relation corresponding to the stored identification information, and obtaining second network address information in the first corresponding relation between the stored first network environment domain name information and the second network address information, wherein the first network environment domain name information is the network environment domain name information corresponding to the installation version of the target client in the terminal, and the second network address information is the network address information of the second network environment different from the first network environment; and returning the second network address information to the target client so that the target client accesses the application server in the second network environment.

Description

Access method, device and storage medium of application server
Technical Field
The application relates to the technical field of computers, and provides an access method, an access device and a storage medium of an application server.
Background
Along with development of science and technology, application software becomes an indispensable part of life of users, and after each application software is developed to formally online, the application software is tested so as to perform Bug repair and ensure normal operation of the application software.
At present, the test of the application software is mainly performed from a test environment, a pre-release environment and a gray release environment. Therefore, when a tester enters different environments such as a test environment, a pre-release environment, a gray level release environment and the like, only three or even more installation packages of the target client side of the application software can be installed respectively. And as the display image quality of the application software is higher and higher, the inclusion is larger and larger, so that the test progress of the function of the application software can be affected when the installation package of the target client is repeatedly installed for testing when the package is compiled.
Therefore, the related art gives a technical scheme of entering different environments through the installation package of the target client of the same application software:
in the first mode, for example, the application software a determines which environment is entered by reading the content in a fixed file, but this mode requires file modification. When the file is modified, a certain file needs to be copied into a certain fixed directory of the system, and the file copying or the modification is troublesome, so that the test progress is influenced.
In the second mode, for example, a certain application software B defaults to a formal environment but can enter various environments in the test process through a special interface operation. Although the special interface operation is not easy to be touched by mistake, the operation is easy to be found by the outside, and the environment cannot be replaced when the special interface operation fails, so that the test progress is affected.
In summary, the test efficiency is lower when the application software is tested by changing the target client file or the operation mode of the access interface of the target client in the related technology to access the application servers under different environments.
Disclosure of Invention
The embodiment of the application provides an access method, an access device and a storage medium of an application server, which are used for realizing the change of an access path and improving the test efficiency.
In a first aspect, the present application provides an access method for an application server, where the method includes:
the cloud server receives a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client;
when the cloud server determines that a first corresponding relation corresponding to the identification information is stored, obtaining second network address information corresponding to the first network environment domain name information from the first network environment domain name information and the second network address information stored correspondingly to the first corresponding relation, wherein the first network environment domain name information is the network environment domain name information corresponding to the installation version of the target client, and the second network address information is the network address information of the second network environment;
And the cloud server returns the second network address information to the target client so that the target client accesses the application server in the second network environment according to the second network address information.
In a second aspect, an embodiment of the present application provides a method for accessing an application server, where the method includes:
the target client sends a request message to the cloud server, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client;
the target client receives second network address information returned by the cloud server, wherein the second network address information is obtained from the first network environment domain name information and the second network address information stored correspondingly in the first corresponding relation when the cloud server determines that the first corresponding relation corresponding to the identification information is stored, the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
and the target client accesses the application server in the second network environment according to the second network address information.
In a third aspect, the present application provides an access device for an application server, the device comprising: the device comprises a receiving module, a determining module and a returning module, wherein:
the receiving module is used for: receiving a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client;
the determining module is used for: when a first corresponding relation corresponding to the identification information is stored, obtaining second network address information corresponding to the first network environment domain name information from the first network environment domain name information and the second network address information stored corresponding to the first corresponding relation, wherein the first network environment domain name information is the network environment domain name information corresponding to the installation version of the target client, and the second network address information is the network address information of a second network environment different from the first network environment;
the return module is used for: and returning the second network address information to the target client so that the target client accesses the application server in the second network environment according to the second network address information.
In one possible implementation, the second network environment is a network environment that the target client accesses when applying the test, including: at least one of a test environment, a pre-release environment and a gray release environment;
The receiving module is also used for: after receiving a first corresponding relation between the domain name information of the first network environment and the second network address information, establishing or updating the first corresponding relation so that the target client accesses an application server in a test environment, or accesses an application server in a pre-release environment or accesses an application server in a gray level release environment according to the second network address information;
the first corresponding relation is set in a domain name resolution configuration interface of a terminal where the target client is located and submitted to the cloud server; or directly set in a background domain name configuration interface corresponding to the cloud server aiming at the terminal where the target client is located.
In one possible implementation manner, if the second network address information is an IP address of the application server in the second network environment, the cloud server returns the IP address of the application server in the second network environment to the target client, so that the target client accesses the application server corresponding to the IP address in the second network environment according to the IP address.
In one possible implementation manner, if the second network address information is the second network environment domain name information, the cloud server returns the second network environment domain name information to the target client, so that the target client sends a domain name resolution request to the domain name system server according to the second network environment domain name information, obtains an IP address of the application server in the second network environment, and accesses the application server corresponding to the IP address in the second network environment according to the IP address.
In one possible implementation:
the determination module is also for: determining that a first corresponding relation corresponding to the identification information is not stored;
the return module is also for: and returning indication information for indicating the target client to perform domain name resolution according to the domain name of the first network environment to the target client, so that the target client sends a domain name resolution request to a domain name system server according to the domain name of the first network environment, acquires an IP address of an application server in the first network environment, and accesses the application server corresponding to the IP address in the first network environment according to the IP address.
In one possible implementation, the request message is sent by an SDK (Software Development Kit ) component in the target client.
In one possible implementation manner, the IP address of the application server is determined by the second correspondence between the network environment domain name information preset under the province operator and the IP address of the application server according to the network environment domain name information in the domain name request message after the province operator is determined by the domain name system server according to the outlet IP address of the target client.
In a third aspect, an embodiment of the present application provides an access device of an application server, including: a memory and a processor, wherein the memory is for storing computer instructions; and the processor is used for executing the computer instructions to realize the access method of the application server.
In a fourth aspect, an embodiment of the present application provides an access device for an application server, where the device includes: the device comprises a sending module, a receiving module and an access module, wherein:
the sending module is used for: sending a request message to a cloud server, wherein the request message comprises first network environment domain name information which is requested to be accessed by a target client and identification information for determining the target client;
the receiving module is used for: receiving second network address information returned by the cloud server, wherein the second network address information is obtained from the first network environment domain name information and the second network address information stored in correspondence with the first correspondence when the cloud server determines that the first correspondence corresponding to the identification information is stored, the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
the access module is used for: and accessing the application server in the second network environment according to the second network address information.
In a fifth aspect, an embodiment of the present application provides an access device for an application server, where the device includes: a processor and a memory, wherein the memory has stored therein a program code, the processor being adapted to read the program code stored in the memory and to perform the access method of the application server as in the first and second aspects.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium, where computer instructions are stored, where the computer instructions, when executed by a processor, implement an access method for an application server in the first aspect and the second aspect provided in the embodiments of the present application.
The beneficial effects of the application are as follows:
the application provides an access method, an access device and a storage medium of an application server, wherein a cloud server receives a request message which is sent by a target client and contains first network environment domain name information for requesting access and identification information for determining the target client; after the first corresponding relation corresponding to the identification information is determined and stored according to the identification information in the request message, the first network environment domain name information and the second network address information are correspondingly stored in the first corresponding relation, so that the second network address information corresponding to the first network environment domain name information can be searched in the first corresponding relation, wherein the first network environment domain name information is the network environment domain name information corresponding to the installation version of the target client, and the second network address information is the network address information of the second network environment different from the first network environment; and after the second network address information is determined, returning the second network address information to the target client so that the target client accesses the application server in the second network environment according to the second network address information. Therefore, the access path can be changed through the corresponding relation between the set domain name information of the first network environment and the set second network address information, files stored on the terminal are not required to be modified, special interface operation is not required, and at the moment, an application server of the second network environment different from the network environment corresponding to the installation version can be accessed through the installation version of the target client; when the method is applied to the application test process, files stored in the terminal do not need to be modified, a special interface operation is not needed, a network environment in the test process can be accessed through the currently installed target client, test steps are optimized, and test efficiency is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a DNS recursive query in the related art;
fig. 2 is a schematic view of an application scenario for access of an application server according to an embodiment of the present application;
fig. 3 is a flowchart of an access method of an application server according to an embodiment of the present application;
fig. 4 is a schematic diagram of a domain name configuration interface according to an embodiment of the present application;
fig. 5 is a schematic diagram of accessing an application server according to an IP address of the application server in a second network environment according to an embodiment of the present application;
Fig. 6 is a schematic diagram of accessing an application server according to an IP address of the application server in a second network environment according to an embodiment of the present application;
FIG. 7 is a schematic diagram of domain name resolution according to an embodiment of the present application;
fig. 8 is an overall flowchart of an access method of a first application server according to an embodiment of the present application;
fig. 9 is an overall flowchart of an access method of a second application server according to an embodiment of the present application;
fig. 10 is an overall flowchart of an access method of a third application server according to an embodiment of the present application;
fig. 11 is a schematic view of an application scenario of access of another application server according to an embodiment of the present application;
fig. 12 is a schematic diagram of an access system structure of an application server according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an access device of an application server according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an access device of another application server according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an access device of an application server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments, but not all embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following sections of the embodiments of the present application are provided for explanation so as to be understood by those skilled in the art.
1. Cloud technology:
cloud technology (Cloud technology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by Cloud computing business models, and can form a resource pool, so that the Cloud computing business model is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
2. Network environment:
before formally online, the application software needs to be subjected to the processes of application software development, application software testing, formally online application software use and the like, when the application software is developed, a developer is in a development environment, and the initially developed application software can have the problems that the application software cannot be formally operated due to a plurality of loopholes, or is blocked in the operation process, poor in image quality and the like. Testing against developed application software is therefore required to be further perfected.
The test of the application software is carried out in a network environment in the test process, and the test process of the application software is carried out after the development of the application software and before the formal online, so that the test of the application software is mainly carried out in a test environment, a pre-release environment and a gray level release environment. The test environment is after the development environment, and mainly tests the developed application software to perform Bug repair; after the test environment, entering a pre-release environment, wherein the pre-release environment is a network environment configured as the formal environment after the test environment and before the formal environment, and is used for verifying the Bug repair condition of the new version; after the pre-release environment and before the formal environment, a gray release environment is further included, wherein the gray release environment refers to an independent environment in a small-range release of a first version in an independent environment before the formal environment is online, so that the problem of verifying a new version in advance is solved, and serious Bug is avoided to directly discover the whole network users.
After testing and modifying the application software, and determining that the application software can be formally used, the application software is formally online, and the application software accesses the formal environment.
The network environment includes development environment, test environment, pre-release environment, gray release environment and formal environment.
3. DNS (Domain Name Server ) recursive query:
the terminal queries the domain name system server generally by adopting DNS recursive query. So-called recursive queries are: if the domain name system server queried by the terminal does not know the IP address corresponding to the queried domain name, the domain name system server continuously sends query requests to other root domain name system servers (namely, continuously queries for the terminal) according to the identity of the DNS client, and does not let the terminal perform the next query. Thus, the query result returned by the recursive query is the IP address to be queried, or is a misstatement, which indicates that the desired IP address cannot be queried. As shown in fig. 1, a schematic diagram of DNS recursive query in the related art is shown.
Among them, DNS is a server that performs domain name (domain name) and IP address (IP address) conversion corresponding thereto, wherein converting a domain name into an IP address is also called a domain name resolution service. The DNS maintains a table of domain names (IP addresses) and corresponding IP addresses (domain names) to resolve domain names of messages.
4. Domain name hijacking prevention:
in the process of DNS recursion, the middle cache node returns incorrect IP for various purposes, which is called domain hijacking at this time, and the technical scheme proposed for solving the problems is called domain hijacking prevention, so the domain hijacking prevention is to return correct IP in the process of domain name resolution.
5、Httpdns:
Httpdns is a method for performing DNS resolution on the basis of Http protocol through a proprietary encryption protocol, and because the traditional DNS recursion resolution process is bypassed, domain name resolution logic is directly performed with the background, the problem of domain name hijacking can be avoided.
6、Httpdns-sdk:
Httpdns-SDK is an SDK component for realizing Httpdns, which is generally accessed before application software is online, and all domain name resolution requests needing hijacking prevention are called to realize interfaces of the component so as to realize key domain name hijacking prevention.
The following briefly describes the design concept of the embodiment of the present application.
In order to ensure the normal operation of the application software, the application software needs to be tested when the application software is formally online or has version update so as to carry out Bug repair.
Currently, a tester needs to install a corresponding target client installation package to enter different network environments. If the test environment is entered, a target client installation package corresponding to the application software in the test environment needs to be installed; and entering a pre-release environment, and installing a target client installation package corresponding to the application software in the pre-release environment.
Along with the increasing image quality of application software, the inclusion is bigger and bigger, so that not only is the compiling of the package troublesome, but also the repeated installation of the target client installation package for a plurality of times influences the testing progress of the game function.
Thus, the related art has a scheme that part of the same installation package enters different environments: for example, the application software A judges which network environment is accessed by reading the content in a fixed file; the application software B enters a formal environment, but enters other network environments through a special interface operation (such as five-finger method: five fingers touch the display screen of the terminal at the same time; single-point multiple touch: N is a positive integer under continuous touch of a special position of the terminal screen).
However, the current method is still complex, such as a method of reading the content of a fixed file, requires file modification, and requires copying a special file into a fixed directory of the system, which is troublesome to copy or modify. Although the problem of false touch entering does not occur in the special interface operation mode, the operation is relatively easy to be found by the outside, the special interface operation is not easy to be replaced in the replacing process, and the situation that the special interface operation fails and cannot be replaced exists, so that the testing efficiency still cannot be improved.
In view of this, the embodiments of the present application provide an access method, an apparatus, and a storage medium for an application server, where different environments can be accessed during an application software test process without modifying an access interface operation manner of a target client of an application software target client file, so as to improve test efficiency.
In the method, a cloud server receives a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client;
when the cloud server determines that a first corresponding relation corresponding to the terminal identification information is stored, correspondingly storing first network environment domain name information and second network address information in the first corresponding relation, and obtaining second network address information corresponding to the first network environment domain name information according to the received first network environment domain name information in the first corresponding relation, wherein the first network environment domain name information is network environment domain name information of a network environment corresponding to an installation version of a target client in the terminal, and the second network address information is network address information of a second network environment different from the first network environment;
And the cloud server returns the second network address information to the target client after determining the second network address information, so that the target client accesses the application server in the second network environment according to the second network address information.
In one possible implementation, the second network environment is a network environment that the target client accesses when applying the test, including: at least one of a test environment, a pre-release environment and a gray release environment;
before receiving a request message sent by a target client, the cloud server receives a first corresponding relation between first network environment domain name information and second network address information, and establishes or updates the first corresponding relation; when the accessed application server needs to be established or updated, a tester sets up and submits the first corresponding relation to the cloud server in a domain name resolution configuration interface of a terminal where the target client is located; or directly set in a background domain name configuration interface corresponding to the cloud server aiming at the terminal where the target client is located.
In one possible implementation, the second network address information is one or a combination of an IP address of an application server in the second network environment and domain name information of the second network environment.
In the application, after the cloud server determines to store the first corresponding relation according to the terminal identifier of the target client in the target client request message, in the first corresponding relation storing the first network environment domain name information and the second network address information, determining the second network address information corresponding to the first network environment domain name information in the request message, wherein the second network address information can be an application server IP address and second network environment domain name information in the second network environment, and because the second network environment is a test environment, a pre-release environment and a gray release environment, the first corresponding relation can be established or updated as required, the IP address and the network environment domain name of the application server in different network environments can be determined by modifying the first corresponding relation, and the determined second network address information is returned to the target client, so that the target client can access the application server in the test environment, or the application server in the pre-release environment or the application server in the gray release environment; therefore, the application server under different network environments corresponding to the test process can be controlled by the target client side only by configuring the first corresponding relation, files on the terminal do not need to be modified, the test steps of the tester do not need to be optimized through specific interface operation, and the test efficiency is improved.
After the design concept of the embodiment of the present application is introduced, the application scenario set in the present application is briefly described below.
Fig. 2 is a schematic view of an application scenario for access of an application server according to an embodiment of the present application. The application scenario includes a terminal 20 and a server 21.
The terminal 20, which is a hardware device that supports installation of the target client and is capable of running the target client, may be a terminal device such as a Personal computer (Personal Computer, PC), a tablet computer, a Personal digital assistant (Personal DigitalAssistant, PDA), a notebook, a mobile phone, or the like, or may be a computer having a mobile terminal device, including various portable, pocket, hand-held, built-in or vehicle-mounted mobile devices, which are devices capable of providing voice, data, or voice and data connectivity to a user, and exchanging voice, data, or voice and data with a radio access network.
The server 21 includes application servers under different network environments, specifically includes an application server under a formal environment, an application server under a test environment, an application server under a pre-release environment, an application server under a gray release environment, and the like; a cloud server; a domain name system server, etc. are also included.
Each of the servers 21 may be independent, may be any single background running device or a cluster or a distributed system formed by a plurality of background running devices capable of providing internet services, and may also be devices providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), and basic cloud computing services such as big data and artificial intelligence platforms.
In practical applications, the terminal 20 and the server 21 are in communication connection, and the network may be, but not limited to, a local area network, a metropolitan area network, or a wide area network.
In the present application, when a target client in the terminal 20 is started, a request message is sent to a cloud server, where the request message includes first network environment domain name information that the target client requests to access and identification information of the terminal 20; the cloud server determines whether the target client needs to send an analysis request to the domain name system server according to the request message, and a used sent protocol;
after the cloud server determines that the identification information of the terminal 20 is stored and a first corresponding relation corresponding to the identification information of the terminal 20 is stored, determining first network environment domain name information and second network address information which are correspondingly stored in the first corresponding relation, determining second network address information corresponding to the first network environment domain name information in the request message, and returning the second network address information to the target client in the terminal 20;
If the second network address information is the IP address of the application server in the second network environment, determining that the target client does not need to send a domain name resolution request to the domain name system server, and at this time, sending the IP address of the application server in the second network environment to the target client in the terminal 20, and possibly sending information that does not need to perform domain name resolution; the target client side directly accesses the corresponding application server according to the IP address of the application server in the second network environment;
if the second network address information is the second network environment domain name information, determining that the target client needs to send a domain name resolution request to the domain name system server, and sending indication information for performing domain name resolution through the second network environment domain name information to the target client in the terminal 20 at this time, and also sending protocol parameters; and the target client sends a domain name resolution request containing domain name information of the second network environment to the domain name system server through the protocol parameter, acquires the returned IP address of the application server in the second network environment, and accesses the application server in the second network environment according to the IP address.
Determining that the identification information of the terminal 20 is not stored in the cloud server, determining that the target client in the terminal 20 needs to perform domain name resolution for the first network environment domain name information, and sending indication information for performing domain name resolution through the first network environment domain name information to the target client in the terminal 20 at this time, and also sending protocol parameters; and the target client sends a domain name resolution request containing the domain name information of the first network environment to the domain name system server through the protocol parameter, acquires the returned IP address of the application server in the first network environment, and accesses the application server in the first network environment according to the IP address.
In one possible application scenario, the application may be implemented based on cloud technology, and in particular relates to cloud storage technology in cloud technology.
Cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network to work cooperatively through application software or application interfaces through functions such as cluster application, grid technology, and a distributed storage file system, so as to provide data storage and service access functions for the outside.
In one possible implementation manner, the cloud server stores the terminal identifier of the target client and the corresponding first corresponding relation in a cloud storage manner, and when the request message is received, determines whether the terminal identifier of the target client in the request message and the corresponding first corresponding relation are stored in a storage system corresponding to the cloud storage.
In one possible application scenario, in order to facilitate reducing the communication latency, the servers 21 may be deployed in respective regions, or for load balancing, different servers 21 may serve respective regions corresponding to the respective terminals 20. The plurality of servers 21 share data by a blockchain, and the plurality of servers 21 correspond to a data sharing system constituted by the plurality of servers 21. For example, the terminal 20 is located at the site a and is in communication connection with the server 21, and the terminal 20 is located at the site b and is in communication connection with other servers 21.
For each server 21 in the data sharing system, having a node identifier corresponding to the server 21, each server 21 in the data sharing system may store the node identifiers of other servers 21 in the data sharing system, so as to broadcast the generated block to other servers 21 in the data sharing system according to the node identifiers of the other servers 21. Each server 21 may maintain a list of node identifiers as shown in the following table, and the server 21 name and node identifier are stored in the list of node identifiers. The node identifier may be an IP (Internet Protocol, protocol of interconnection between networks) address, and any other information that can be used to identify the node, and the IP address is only illustrated in table 1.
TABLE 1
Server name Node identification
Node 1 119.115.151.174
Node 2 118.116.189.145
Node N 119.124.789.258
Therefore, in order to improve the test efficiency, the cloud server stores the terminal identifier of the target client and the corresponding first corresponding relation, and the first corresponding relation correspondingly stores first network environment domain name information and second network address information, wherein the first network environment domain name information is the domain name information of the network environment corresponding to the installation version of the target client in the terminal, and the second network address information is the network address information of the second network environment which the target client needs to access when applying the test; therefore, no matter what kind of installation package under the network environment is installed on the target client, the application server under the network environment in the test process can be accessed, and the test steps of the testers are optimized.
The access method of the application server provided in the exemplary embodiment of the present application is described below with reference to the accompanying drawings in conjunction with the application scenario described above, and it should be noted that the application scenario described above is only shown for the convenience of understanding the spirit and principles of the present application, and embodiments of the present application are not limited in any way in this respect.
Embodiment one: the access method of the application server is applied to the cloud server.
As shown in fig. 3, a flowchart of an access method of an application server according to an embodiment of the present application includes the following steps:
in step S300, the cloud server receives a request message sent by the target client, where the request message includes first network environment domain name information that the target client requests to access, and identification information for determining the target client.
The identification information used for determining the target client may be identification information of the terminal where the target client is located.
In the application, in order to realize domain name hijacking prevention, an HttpDS-SDK component is accessed into a target client side and used for hosting domain name resolution logic of the target client side. That is, all domain name resolution in the target client is achieved by calling the relevant interface of the SDK component, so the SDK component needs to pull necessary parameters from the cloud server, and the parameters can be used to control domain name resolution.
Therefore, in the application, the SDK component of the target client sends a request message to the cloud server, where the request message includes the first network environment domain name information that the target client requests to access and the identification information for determining the target client.
It should be noted that, the SDK component sends the request message to the cloud server, which is sent to the cloud server each time the target client is started, or sent to the cloud server at the beginning of the SDK component.
In step S310, when the cloud server determines that the first correspondence corresponding to the identification information in the request message is stored, the cloud server obtains the second network address information corresponding to the first network environment domain name information in the request message from the first network environment domain name information and the second network address information stored in correspondence with the first correspondence.
The first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment.
In the application, the cloud server stores identification information for determining the target client and a corresponding first corresponding relation, and the first corresponding relation correspondingly stores first network environment domain name information and second network address information, wherein the second network address information is one or a combination of an application server IP address and second network environment domain name information in the second network environment.
Therefore, the cloud server stores a correspondence relationship between the identification information for determining the target client, the domain name information of the first network environment, and the second network address information, where the correspondence relationship may be stored in a table form, as shown in table 2, the identification information for determining the target client is 12345678, the domain name information of the first network environment is format.
TABLE 2
Identification information First network environment domain name information Second network address information (IP address)
123456789 formal.game.qq.com 9.9.9.9
Therefore, after receiving the request message of the target client, the cloud server first determines whether the terminal identification information stored in the cloud server and the corresponding first corresponding relation store the identification information used for determining the target client in the request message.
Case one: the cloud server stores identification information for determining the target client.
The cloud server determines the identification information stored in the request message and used for determining the target client, further determines a first corresponding relation corresponding to the identification information of the terminal, and determines second network address information corresponding to the first network environment domain name information in the request message in the first corresponding relation.
Because the second network address information is one or a combination of the IP address of the application server in the second network environment and the domain name information of the second network environment.
Therefore, when the first correspondence relationship correspondingly stores the first network environment domain name information and the IP address of the application server under the second network environment, and the first correspondence relationship determines that the IP address of the application server under the second network environment corresponding to the first network environment domain name information in the request message is stored; and returning the determined IP address of the application server under the second network environment to the target client, wherein the SDK component is determined not to need Httpdns analysis because the application server corresponding to the IP address can be directly accessed according to the IP address. Therefore, the cloud server only needs to return the IP address of the application server in the second network environment to the target client.
When the first network environment domain name information and the second network environment domain name information are correspondingly stored in the first corresponding relation, and the second network environment domain name information corresponding to the first network environment domain name information in the request message is determined to be stored in the first corresponding relation; and returning the determined second network environment domain name information to the target client. Because the application server cannot be directly accessed according to the second network environment domain name information, domain name resolution needs to be performed on the second network environment domain name information to acquire an IP address corresponding to the second network environment domain name information, and the corresponding application server can be accessed according to the IP address acquired after resolution, so that it is determined that the SDK component needs to perform Httpdns resolution, at the moment, not only the second network environment domain name information is returned to the target client, but also indication information for performing Httpdns resolution on the second network environment domain name information is returned to the target client.
In one possible case, the first network environment domain name information in the request message is not stored in the first corresponding relation, it is determined that the first network environment domain name information needs to be resolved, and an IP address corresponding to the first network environment domain name information is determined, so that the cloud server needs to return indication information for performing domain name resolution on the first network environment domain name information to the target client.
It should be noted that, there is also a possible implementation manner in this application, that is, after determining the first corresponding relationship corresponding to the terminal identifier where the target client is located in the request message, the cloud server directly returns the first corresponding relationship to the target client, so that the target client determines whether to perform domain name resolution according to the first corresponding relationship.
In the application, the parameters that the cloud service determines needs to return according to the request message also include default timeout time of domain name resolution, protocol adopted by domain name resolution, and the like.
In the present application, the first correspondence stored in the cloud server is established or updated by:
after receiving the first corresponding relation between the first network environment domain name information and the second network address information, the cloud server establishes or updates the first corresponding relation.
The first corresponding relation is set in a domain name resolution configuration interface of a terminal where the target client is located and submitted to the cloud server; or the mapping relation between the identification information of the target client, namely the identification information of the terminal of the target client and the first corresponding relation is directly set in a background domain name configuration interface corresponding to the cloud server aiming at the terminal of the target client, so that the mapping relation between the identification information of the target client and the first corresponding relation is also stored in the cloud server.
Fig. 4 is a schematic diagram of a domain name configuration interface according to an embodiment of the present application. Setting the configuration interface as a domain name resolution configuration interface in the terminal; the first network environment domain name information and the second network address information may be established or updated in the configuration interface. As shown in fig. 4, the first network environment domain name information is format.name.qq.com, the second network address information is 9.9.9.9, and after determining to submit, the cloud server receives submitted information, where the submitted information further includes identification information of the terminal where the target client is located, and determines and stores identification information of the terminal (123456789), the first network environment domain name information (format.name.qq.com), and the second network address information (9.9.9.9). Assuming 9.9.9.9 as the IP address of the application server under test environment, when receiving the request message including the terminal identification information (123456789) and the first network environment domain name information (format. Name. Qq. Com), the application server returns the second network address information (9.9.9.9) to the target client, and thus accesses the application server under test environment according to the second network address information (9.9.9.9), and the application server returns the data under test environment to the target client, and at this time, various tests of test environment can be performed.
When it is determined that the pre-release environment needs to be entered, the second network address information may be modified in the configuration interface to be network address information of the pre-release environment, for example, the second network address information may be modified to be an IP address of an application server in the pre-release environment, or may be modified to be domain name information of the release environment, and then the application server in the pre-release environment may be accessed. The same gray level distribution environment or other network environments are applicable, and will not be described in detail herein.
In step S320, the cloud server returns the second network address information to the target client, so that the target client accesses the application server in the second network environment according to the second network address information.
In this application, since the second network address information includes the IP address of the application server in the second network environment or the domain name information of the second network environment, there are two cases of information returned to the target client, corresponding to the first case and the second case.
Case one: if the cloud server determines the IP address of the application server in the second network environment, the IP address is only required to be returned to the target client;
Correspondingly, the target client accesses the application server corresponding to the IP address in the second network environment according to the IP address of the application server in the second network environment.
Fig. 5 is a schematic diagram of accessing an application server according to an IP address of the application server in a second network environment, and if the second network environment is a test environment, the IP address is an IP address of the application server in the test environment, and at this time, the target client accesses the application server corresponding to the IP address in the test environment. It should be noted that each network environment is composed of at least one application server.
When the target client is a game client, as game plays, the game plays a game player, after acquiring a currently available large area list, the game player selects a large area or a small area according to the currently available large area list, and after the selection is completed, the game player can enter an application server of a game suit corresponding to the selected large area or small area, so that main logic of the game suit is acquired. Thus, each network environment includes a large area list server and a counter server in the network environment.
As shown in fig. 6, another schematic diagram of accessing an application server according to an IP address of the application server in a second network environment is provided in this embodiment, if the second network environment is a test environment, the IP address is an IP address of the application server in the test environment, at this time, after the game client starts up (whether a game for separate and distinct services or a game for full service in a full area), according to the IP address of the application server in the test environment returned by the cloud server, a request for a large area list is sent to the application server in the test environment, at this time, one large area list server is connected to perform logic such as large area list pulling and client version verification, so that the connected large area list server returns the large area list of the current environment (or the current available large area list) to the game client for the game player to select, after the game player selects the favorite large area or the cell, the game client will be connected to the game server corresponding to the selected large area or the selected large area, at this time, the game player can obtain the main logic of the game for testing.
And a second case: and if the cloud server determines the second network environment domain name information, returning the second network environment domain name information to the target client.
Because the second network environment domain name information cannot directly access the application server in the second network environment according to the second network environment domain name information, domain name resolution needs to be performed on the second network environment domain name information, and an IP address of the application server in the second network environment is acquired, the cloud server further sends indication information indicating that the second network environment domain name is resolved, default timeout time of domain name resolution, a protocol adopted by domain name resolution, and the like to the target client, wherein the protocol is a protocol used when a domain name resolution request is sent to the domain name system server, and specifically comprises an HTTP (HyperText Transfer Protocol ) protocol or a UDP (User Datagram Protocol, user datagram protocol) protocol.
Correspondingly, after receiving the second network environment domain name information and the indication information indicating domain name resolution sent by the cloud server, the target client sends a domain name resolution request to the domain name system server, wherein the domain name resolution request contains the second network environment domain name information, and receives an IP address of the application server in the second network environment returned by the domain name system server aiming at the second network environment domain name information, so that the target client accesses the application server in the second network environment according to the IP address. Fig. 7 is a schematic diagram of domain name resolution according to an embodiment of the present application.
In the application, the domain name system server analyzes the second network environment domain name information in the domain name analysis request sent by the target client in the following manner:
since an egress IP does not cover multiple operators (e.g., access layer IPs of operators such as telecom, unicom, mobile, etc.) it is necessary to obtain a resolved IP (i.e., an IP address corresponding to network environment domain name information) corresponding to the current operator of the target client.
Therefore, after receiving a domain name resolution request containing second network environment domain name information sent by a target client, the domain name system server firstly determines an export IP of the target client, and determines a province operator corresponding to the target client according to the export IP; and further searching the IP address corresponding to the second network environment domain name information in the domain name resolution request in the second network environment domain name information stored correspondingly under the province operator and the IP address of the application server under the second network environment.
It should be noted that, when the application server IP address is queried in the second network environment, a DNS recursion query manner is adopted, that is, after the domain name system server determines that the IP address corresponding to the domain name information of the second network environment is not queried by itself, the domain name system server sends the export IP and the domain name information of the second network environment in the domain name resolution request to the next-stage domain name system server (that is, the root domain name system server) to query until the domain name system server responds to the domain name resolution request, and returns the determined IP address of the application server in the second network environment to the target client, so that the target client accesses the corresponding server according to the IP address, which is specifically referred to the description of fig. 5 and 6 and is not repeated herein.
In one possible implementation manner, when the cloud server determines that the first network environment domain name information in the request message is not stored in the first correspondence, the cloud server returns indication information indicating that the target client performs domain name resolution on the first network environment domain name, where the returned parameter further includes default timeout time of domain name resolution, protocol adopted by domain name resolution, and the like, and corresponds to the third case. At this time, the target client sends a domain name resolution request to the domain name system server, where the domain name resolution request includes domain name information of the first network environment, and receives an IP address of the application server in the first network environment returned by the domain name system server, so as to access the corresponding application server according to the IP address, and a specific resolution manner may be referred to the description in the second case, and a manner of accessing the application server may be referred to the description in the first case, which is not repeated herein.
And a second case: the cloud server does not store identification information for determining the target client in the request message.
And the cloud server receives the request message sent by the target client, and determines the identification information for determining the target client and the first network environment domain name information which the target client requests to access in the request message.
The cloud server determines whether a first corresponding relation corresponding to the identification information in the request message is stored or not, determines that domain name resolution is required for the domain name information of the first network environment after determining that the identification information in the request message is not stored, returns indication information for indicating the target client to perform domain name resolution for the domain name information of the first network environment, and possibly returns default timeout time of domain name resolution, parameters such as protocols adopted by domain name resolution and the like to the target client.
Correspondingly, the target client sends a domain name resolution request to the domain name system service, wherein the domain name resolution request contains domain name information of a first network environment, and receives an IP address of an application server in the first network environment returned by the domain name system server, so as to access the application server in the first network environment according to the IP address.
It should be noted that, the IP address obtained by domain name resolution in the present application may be IPv4 or IPv6, and the technical solution of the present application is described by using IPv4 in the present application, and IPv6 is also applicable and is not described herein again.
As shown in fig. 8, an overall flowchart of an access method of a first application server according to an embodiment of the present application is mainly performed according to an IP address of an application server in a second network environment returned by a cloud server during an access process of the application server, and includes the following steps:
Step S800, a target client sends a request message to a cloud server, wherein the request message contains identification information for determining the target client, and the target client requests access to first network environment domain name information;
step S801, a cloud server determines a first corresponding relation corresponding to the identification information of a terminal, and acquires an IP address of an application server in a second network environment corresponding to the first network environment domain name information in the first corresponding relation corresponding to the IP address of the application server in the second network environment corresponding to the first network environment domain name information;
step S802, the cloud server returns the IP address of the application server in the determined second network environment to the target client;
in step S803, the target client accesses the application server corresponding to the IP address in the second network environment according to the IP address of the application server in the second network environment.
As shown in fig. 9, an overall flowchart of an access method of a second application server according to an embodiment of the present application is mainly performed according to second network environment domain name information returned by a cloud server in an access process of the application server, and includes the following steps:
step S900, a target client sends a request message to a cloud server, wherein the request message contains identification information for determining the target client, and the target client requests first network environment domain name information accessed;
Step S901, a cloud server determines a first correspondence relationship corresponding to identification information stored with a terminal, and obtains second network environment domain name information corresponding to the first network environment domain name information in the first correspondence relationship corresponding to the first network environment domain name information and the second network environment domain name information;
step S902, the cloud server returns the determined second network environment domain name information and indication information for indicating domain name resolution aiming at the second network environment domain name information to the target client;
step S903, the target client sends a domain name resolution request containing the second network environment domain name information to the domain name system server according to the second network environment domain name information and the indication information indicating that domain name resolution is performed on the second network environment domain name information;
step S904, the domain name system server analyzes the domain name information of the second network environment in the domain name analysis request to obtain the IP address of the application server in the second network environment;
step S905, the domain name system server returns the IP address of the application server under the second network environment obtained by analysis to the target client;
in step S906, the target client accesses the application server corresponding to the IP address in the second network environment according to the IP address of the application server in the second network environment.
As shown in fig. 10, an overall flowchart of a third method for accessing an application server according to an embodiment of the present application is mainly performed according to domain name information of a first network environment during the accessing process of the application server, and includes the following steps:
step S1000, a target client sends a request message to a cloud server, wherein the request message contains identification information for determining the target client, and the target client requests first network environment domain name information accessed;
step S1001, the cloud server determines that a first correspondence corresponding to the identification information of the terminal is not stored, and determines that domain name resolution needs to be performed for domain name information of a first network environment;
step S1002, a cloud server returns indication information for indicating domain name resolution aiming at first network environment domain name information to a target client;
step S1003, the target client sends a domain name resolution request containing first network environment domain name information to a domain name system server;
step S1004, the domain name system server analyzes the domain name information of the first network environment in the domain name analysis request to obtain the IP address of the application server in the first network environment;
step S1005, the domain name system server returns the IP address of the application server under the first network environment obtained by analysis to the target client;
In step S1006, the target client accesses the application server corresponding to the IP address in the first network environment according to the IP address of the application server in the first network environment.
Embodiment two: application of the access method of the application server in the target client.
As shown in fig. 11, a flowchart of an access method of an application server according to an embodiment of the present application includes the following steps:
in step S1101, the target client sends a request message to the cloud server, where the request message includes the first network environment domain name information that the target client requests to access and identification information for determining the target client.
In one possible implementation, the SDK component in the target client sends a request message to the cloud server.
In step S1102, the target client receives second network address information returned by the cloud server, where the second network address information is obtained from the first network environment domain name information and the second network address information stored in correspondence with the first correspondence when the cloud server determines that the first correspondence corresponding to the identification information is stored, the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment.
In step 1103, the target client accesses the application server in the second network environment according to the second network address information.
In one possible implementation manner, when the second network address information received by the target client is the IP address of the application server in the second network environment, the target client directly accesses the application server corresponding to the IP address in the second network environment according to the IP address.
In one possible implementation manner, when the second network address information received by the target client is the second network environment domain name information, the target client sends a domain name resolution request containing the second network environment domain name information to the domain name resolution system, receives an IP address of an application server in the second network environment returned by the domain name resolution server for the second network environment domain name information, and accesses the application server corresponding to the IP address in the second network environment according to the IP address returned by the domain name resolution server.
In one possible implementation manner, the target client receives indication information returned by the cloud server, which indicates the target client to perform domain name resolution according to the first network environment domain name, wherein the indication information is sent by the cloud server after determining that a first corresponding relation corresponding to the identification information in the request message is not stored;
The target client sends a domain name resolution request to a domain name system server according to the domain name of the first network environment, acquires the IP address of the application server in the first network environment, and accesses the application server corresponding to the IP address in the first network environment according to the IP address.
It should be noted that, the access method of the application server corresponding to the target client is not described in detail, and specific reference may be made to an embodiment in the cloud server.
Embodiment III: the access method of the application server is used for accessing the application in the system.
As shown in fig. 12, a schematic structural diagram of an access system 1200 of an application server according to an embodiment of the present application is provided, where the system includes a cloud server 1201, a domain name resolution server 1202, and an application server 1203, where:
the cloud server 1201 is configured to: receiving a request message which is sent by a terminal 1204 provided with a target client and contains first network environment domain name information and is used for determining identification information of the target client;
domain name resolution server 1202 is configured to: receiving a domain name resolution request containing network environment domain name information sent by a terminal 1204 provided with a target client;
the application server 1203 is configured to: after receiving the access by the terminal 1204 on which the target client is installed according to the IP address, the data stored in the application server is returned to the target client.
Based on the same inventive concept, the embodiment of the present application further provides an access device 1300 of an application server, as shown in fig. 13, the device 1300 includes: a receiving module 1301, a determining module 1302 and a returning module 1303, wherein:
the receiving module 1301 is configured to: receiving a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client;
the determining module 1302 is configured to: when a first corresponding relation corresponding to the identification information is stored, obtaining second network address information corresponding to the first network environment domain name information from the first network environment domain name information and the second network address information stored corresponding to the first corresponding relation, wherein the first network environment domain name information is the network environment domain name information corresponding to the installation version of the target client, and the second network address information is the network address information of a second network environment different from the first network environment;
the return module 1303 is configured to: and returning the second network address information to the target client so that the target client accesses the application server in the second network environment according to the second network address information.
In one possible implementation, the second network environment is a network environment that the target client accesses when applying the test, including: at least one of a test environment, a pre-release environment and a gray release environment;
the receiving module 1301 is further configured to: after receiving a first corresponding relation between the domain name information of the first network environment and the second network address information, establishing or updating the first corresponding relation so that the target client accesses an application server in a test environment, or accesses an application server in a pre-release environment or accesses an application server in a gray level release environment according to the second network address information;
the first corresponding relation is set in a domain name resolution configuration interface of a terminal where the target client is located and submitted to the cloud server; or directly set in a background domain name configuration interface corresponding to the cloud server aiming at the terminal where the target client is located.
In one possible implementation manner, if the second network address information is an IP address of the application server in the second network environment, the cloud server returns the IP address of the application server in the second network environment to the target client, so that the target client accesses the application server corresponding to the IP address in the second network environment according to the IP address.
In one possible implementation manner, if the second network address information is the second network environment domain name information, the cloud server returns the second network environment domain name information to the target client, so that the target client sends a domain name resolution request to the domain name system server according to the second network environment domain name information, obtains an IP address of the application server in the second network environment, and accesses the application server corresponding to the IP address in the second network environment according to the IP address.
In one possible implementation:
the determination module 1302 is further configured to: determining that a first corresponding relation corresponding to the identification information is not stored;
the return module 1303 is further configured to: and returning indication information for indicating the target client to perform domain name resolution according to the domain name of the first network environment to the target client, so that the target client sends a domain name resolution request to a domain name system server according to the domain name of the first network environment, acquires an IP address of an application server in the first network environment, and accesses the application server corresponding to the IP address in the first network environment according to the IP address.
In one possible implementation, the request message is sent by an SDK component in the target client.
In one possible implementation manner, the IP address of the application server is determined by the second correspondence between the network environment domain name information preset under the province operator and the IP address of the application server according to the network environment domain name information in the domain name request message after the province operator is determined by the domain name system server according to the outlet IP address of the target client.
Based on the same inventive concept, the embodiments of the present application further provide an access device 1400 of an application server, as shown in fig. 14, the device 1400 includes: a transmitting module 1401, a receiving module 1402 and an accessing module 1403, wherein:
the transmitting module 1401 is configured to: sending a request message to a cloud server, wherein the request message comprises first network environment domain name information which is requested to be accessed by a target client and identification information for determining the target client;
the receiving module 1402 is configured to: receiving second network address information returned by the cloud server, wherein the second network address information is obtained from the first network environment domain name information and the second network address information stored in correspondence with the first correspondence when the cloud server determines that the first correspondence corresponding to the identification information is stored, the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
The access module 1403 is configured to: and accessing the application server in the second network environment according to the second network address information.
In one possible implementation, the SDK component in the target client sends a request message to the cloud server.
In one possible implementation, the access module 1403 is specifically configured to:
when the received second network address information is the IP address of the application server in the second network environment, the application server corresponding to the IP address in the second network environment is directly accessed according to the IP address.
In one possible implementation, the access module 1403 is specifically configured to:
when the received second network address information is the second network environment domain name information, a domain name resolution request containing the second network environment domain name information is sent to a domain name resolution system, an IP address of an application server in a second network environment returned by a domain name resolution server aiming at the second network environment domain name information is received, and the application server corresponding to the IP address in the second network environment is further accessed according to the IP address returned by the domain name resolution server.
In one possible implementation, the access module 1403 is specifically configured to:
receiving indication information which is returned by the cloud server and indicates domain name resolution according to the first network environment domain name, wherein the indication information is sent by the cloud server after determining that a first corresponding relation corresponding to the identification information in the request message is not stored;
And sending a domain name resolution request to a domain name system server according to the domain name of the first network environment, acquiring the IP address of the application server in the first network environment, and accessing the application server corresponding to the IP address in the first network environment according to the IP address.
For convenience of description, the above parts are respectively described as functionally divided into units (or modules). Of course, the functions of each unit (or module) may be implemented in the same piece or pieces of software or hardware when implementing the present application.
Having introduced the method and apparatus for accessing an application server according to an exemplary embodiment of the present application and the corresponding terminal and server, next, an access device for an application server according to another exemplary embodiment of the present application is introduced.
In one possible implementation manner, the embodiment of the application provides an access device of an application server, at least including a processor and a memory, where the memory stores program code, and when the program code is executed by the processor, causes the processor to execute any step of the access method of the application server in various exemplary embodiments of the application.
An access device 1500 according to this embodiment of the present application is described below with reference to fig. 15. The access device 1500 of fig. 15 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present application.
As shown in fig. 15, the access device 1500 is embodied in the form of a general purpose computing apparatus. The components of access device 1500 may include, but are not limited to: the at least one processor 1501, the at least one memory unit 1502, and a bus 1503 connecting the various system components, including the memory unit 1502 and the processor 1501.
Bus 1503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
The storage unit 1502 may include a readable medium in the form of volatile memory, such as Random Access Memory (RAM) 15021 and/or cache memory unit 15022, and may further include Read Only Memory (ROM) 15023.
The storage unit 1502 may also include a program/utility 15025 having a set (at least one) of program modules 15024, such program modules 15024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The access device 1500 may also communicate with one or more external devices 1504 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the access device 1500, and/or any device (e.g., router, modem, etc.) that enables the access device 1500 to communicate with one or more other access devices. Such communication may occur through an input/output (I/O) interface 1505. Also, the access device 1500 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, e.g., the internet, through the network adapter 1506. As shown, the network adapter 1406 communicates with other modules for accessing the device 1500 via bus 1503. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with access device 1500, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In some possible implementations, the present embodiments also provide a computer-readable storage medium including computer instructions which, when executed by a processor, implement the steps of the access method of any of the above embodiments.
In some possible embodiments, aspects of the access method of an application server provided herein may also be implemented in the form of a program product comprising program code for causing a computer device to carry out the steps of the access method of an application server of any of the embodiments described above, when the program product is run on a computer device.
Wherein the program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable signal medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (not exhaustive) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. A method for accessing an application server, the method comprising:
the cloud server receives a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information for determining the target client;
when the cloud server determines that a first corresponding relation corresponding to the identification information is stored, obtaining second network address information corresponding to the first network environment domain name information from the first network environment domain name information and the second network address information corresponding to the first network environment domain name information stored in the corresponding relation, wherein the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
And the cloud server returns the second network address information to the target client so that the target client accesses an application server in a second network environment according to the second network address information.
2. The method of claim 1, wherein the second network environment is a network environment that the target client accesses at application testing, comprising: at least one of a test environment, a pre-release environment and a gray release environment;
before the cloud server receives the request message sent by the target client, the cloud server further comprises:
after receiving the first corresponding relation between the domain name information of the first network environment and the second network address information, the cloud server establishes or updates the first corresponding relation so that the target client accesses an application server in a test environment, or accesses an application server in a pre-release environment or accesses an application server in a gray level release environment according to the second network address information;
the first corresponding relation is set in a domain name resolution configuration interface of a terminal where the target client is located and submitted to the cloud server; or the terminal is directly set in a background domain name configuration interface corresponding to the cloud server aiming at the terminal where the target client is located.
3. The method of claim 1, wherein if the second network address information is an IP address of an application server in the second network environment, the cloud server returns the IP address of the application server in the second network environment to the target client, so that the target client accesses the application server corresponding to the IP address in the second network environment according to the IP address; or (b)
And if the second network address information is the second network environment domain name information, the cloud server returns the second network environment domain name information to the target client so that the target client sends a domain name resolution request to a domain name system server according to the second network environment domain name information, acquires an IP address of an application server in a second network environment, and accesses the application server corresponding to the IP address in the second network environment according to the IP address.
4. The method of claim 1, wherein the method further comprises:
the cloud server determines that a first corresponding relation corresponding to the identification information is not stored;
and the cloud server returns indication information for indicating the target client to conduct domain name resolution according to the first network environment domain name to the target client, so that the target client sends a domain name resolution request to a domain name system server according to the first network environment domain name, acquires an IP address of an application server under a first network environment, and accesses the application server corresponding to the IP address under the first network environment according to the IP address.
5. The method of any of claims 1-4, wherein the request message is sent by a software development kit, SDK, component in the target client.
6. The method of claim 3 or 4, wherein the IP address of the application server is determined by the domain name system server according to a second correspondence between network environment domain name information preset under the province operator and the IP address of the application server according to the network environment domain name information in the domain name request message after determining the corresponding province operator according to the exit IP address of the target client.
7. A method for accessing an application server, the method comprising:
the method comprises the steps that a target client sends a request message to a cloud server, wherein the request message comprises first network environment domain name information which is requested to be accessed by the target client and identification information used for determining the target client;
the target client receives second network address information returned by the cloud server, wherein the second network address information is obtained from the first network environment domain name information and second network address information stored correspondingly in the first corresponding relation when the cloud server determines that the first corresponding relation corresponding to the identification information is stored, the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
And the target client accesses an application server in a second network environment according to the second network address information.
8. An access device for an application server, the device comprising: the device comprises a receiving module, a determining module and a returning module, wherein:
the receiving module is used for: receiving a request message sent by a target client, wherein the request message comprises first network environment domain name information which the target client requests to access and identification information used for determining the target client;
the determining module is used for: when a first corresponding relation corresponding to the identification information is stored, obtaining second network address information corresponding to the first network environment domain name information in the first network environment domain name information and second network address information corresponding to the first corresponding relation, wherein the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
the return module is used for: and returning the second network address information to the target client so that the target client accesses an application server in a second network environment according to the second network address information.
9. An access device for an application server, the device comprising: the device comprises a sending module, a receiving module and an access module, wherein:
the sending module is used for: sending a request message to a cloud server, wherein the request message comprises first network environment domain name information which is requested to be accessed by a target client and identification information for determining the target client;
the receiving module is used for: receiving second network address information returned by the cloud server, wherein the second network address information is obtained from the first network environment domain name information and second network address information stored correspondingly in the first corresponding relation when the cloud server determines that the first corresponding relation corresponding to the identification information is stored, the first network environment domain name information is network environment domain name information corresponding to an installation version of the target client, and the second network address information is network address information of a second network environment different from the first network environment;
the access module is used for: and accessing an application server in the second network environment according to the second network address information.
10. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of accessing an application server according to any one of claims 1-6, and implement the method of accessing an application server according to claim 7.
CN202010634896.4A 2020-07-03 2020-07-03 Access method, device and storage medium of application server Active CN113965543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010634896.4A CN113965543B (en) 2020-07-03 2020-07-03 Access method, device and storage medium of application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010634896.4A CN113965543B (en) 2020-07-03 2020-07-03 Access method, device and storage medium of application server

Publications (2)

Publication Number Publication Date
CN113965543A CN113965543A (en) 2022-01-21
CN113965543B true CN113965543B (en) 2024-01-16

Family

ID=79459133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010634896.4A Active CN113965543B (en) 2020-07-03 2020-07-03 Access method, device and storage medium of application server

Country Status (1)

Country Link
CN (1) CN113965543B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598680B (en) * 2022-03-28 2024-02-23 中国银行股份有限公司 Domain name management method, device and storage medium
CN114915610B (en) * 2022-04-29 2024-04-19 北京字跳网络技术有限公司 Method, device, electronic equipment and storage medium for sending network request
CN114938396A (en) * 2022-05-09 2022-08-23 阿里巴巴(中国)有限公司 Routing method of service call request, method and device for creating service

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN104580540A (en) * 2013-10-09 2015-04-29 腾讯科技(深圳)有限公司 Method and device for achieving website access
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
CN107402880A (en) * 2016-05-20 2017-11-28 腾讯科技(北京)有限公司 A kind of method of testing and electronic equipment
CN107580080A (en) * 2017-09-15 2018-01-12 北京奇艺世纪科技有限公司 A kind of connection method of test environment and device
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN110149423A (en) * 2019-07-04 2019-08-20 深圳市珍爱捷云信息技术有限公司 Domain name processing method, device, readable storage medium storing program for executing and electronic equipment
CN111277457A (en) * 2020-01-15 2020-06-12 平安银行股份有限公司 Method, device and equipment for switching network environment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10700972B2 (en) * 2018-08-29 2020-06-30 ColorTokens, Inc. Computer implemented system and method for preserving mapping information in IP-options

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN104580540A (en) * 2013-10-09 2015-04-29 腾讯科技(深圳)有限公司 Method and device for achieving website access
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal
CN107402880A (en) * 2016-05-20 2017-11-28 腾讯科技(北京)有限公司 A kind of method of testing and electronic equipment
CN107580080A (en) * 2017-09-15 2018-01-12 北京奇艺世纪科技有限公司 A kind of connection method of test environment and device
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN110149423A (en) * 2019-07-04 2019-08-20 深圳市珍爱捷云信息技术有限公司 Domain name processing method, device, readable storage medium storing program for executing and electronic equipment
CN111277457A (en) * 2020-01-15 2020-06-12 平安银行股份有限公司 Method, device and equipment for switching network environment and readable storage medium

Also Published As

Publication number Publication date
CN113965543A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN113965543B (en) Access method, device and storage medium of application server
US10812566B2 (en) Distributed steam processing
US10257115B2 (en) Cloud-based service resource provisioning based on network characteristics
US9002932B2 (en) Cloud computing access gateway and method for providing a user terminal access to a cloud provider
CN111327647B (en) Method and device for providing service to outside by container and electronic equipment
US20180146072A1 (en) Creation of a binding based on a description associated with a server
US20170289243A1 (en) Domain name resolution method and electronic device
WO2020088170A1 (en) Domain name system configuration method and related apparatus
JP2023542673A (en) Sharing cached class data in containerized environments
CN111510330B (en) Interface management device, method and storage medium
CN111556135A (en) Request scheduling method, system and device and electronic equipment
CN114040025A (en) Method and device for controlling switching of network environment and electronic equipment
CN112492060B (en) Service resource processing method and system, proxy equipment and request equipment
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
CN114301872B (en) Domain name based access method and device, electronic equipment and storage medium
CN111488286B (en) Method and device for independently developing Android modules
CN114584545A (en) Data management method, device, system, storage medium and electronic equipment
CN114285859A (en) Data processing method, device, equipment and storage medium for interlayer zone block chain service
CN113704120A (en) Data transmission method, device, equipment and storage medium
US11941543B2 (en) Inferencing endpoint discovery in computing systems
CN116431422B (en) Access verification system, method and related equipment for multi-simulation environment
CN113315849B (en) Data processing method, device, equipment and storage medium
CN113342664A (en) Dial testing method and device, storage medium and computer equipment
CN115086321A (en) Multi-cluster traffic forwarding method and device, and electronic device
CN117097648A (en) Test flow distribution method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant