A method and device for self-service query of internet information

By integrating the Internet domain name resolution system, load balancing system, etc., automated query of full-link network information is realized, and the complex and lengthy query process in the existing technology is solved, which significantly improves query efficiency and operation and maintenance efficiency.

CN113094570BActive Publication Date: 2025-02-18INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110386823.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-12
Publication Date
2025-02-18
Estimated Expiration
2041-04-12

AI Technical Summary

Technical Problem

In the prior art, the query process of Internet information is complex, lengthy, time-consuming and labor-intensive, and it is difficult to achieve efficient network operation and maintenance.

Method used

Through a self-service Internet information query method, domain name resolution system, load balancing system, soft load system, etc. are integrated to automatically query and display the full-link network information to realize linkage query of information.

Benefits of technology

It realizes automated query of Internet information, avoids repeated and lengthy query processes, improves query efficiency, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113094570B_ABST
    Figure CN113094570B_ABST
Patent Text Reader

Abstract

The present invention provides a self-service query method and device for Internet information, which can be applied to the financial field. The method includes: resolving the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type; determining the corresponding virtual address in the load balancing device according to the IP address and the pre-configured interface in the load balancing device; obtaining the server IP according to the virtual address; resolving the server IP in a corresponding manner according to whether the server IP passes through the WAF device; judging whether the resolved server IP passes the soft load system and determining the final address of the server. The present application realizes the automatic query of the whole-link network information, displays the complex configuration information in the whole link, realizes the linkage query of the network-related information, and can query all the required Internet information in this way, avoiding repeated and lengthy query processes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer network technology, and in particular, relates to a method and device for self-service query of Internet information. Background Art

[0002] With the promotion of Internet applications, business personnel and technical personnel have an increasing demand for network policy queries for Internet applications. The network structure of the Internet area is complex, and the network information closely related to the application includes: the correspondence between domain names and addresses, the correspondence between load balancing addresses and servers, the correspondence between soft load (SLB) addresses and server addresses, and other information. These information are closely related to the application and may also involve CDN (i.e., parsing Internet domain names of cname type), IRULES (traffic forwarding language), application firewall (WAF), etc. The process involved is complex and lengthy.

[0003] Currently, network professionals can only manually query the Internet domain name resolution system and the intranet load balancing system layer by layer. For applications configured with WAF and SLB, it is also necessary to query related systems and applications, and the query can only be done separately. The process is lengthy, repetitive, time-consuming and labor-intensive, which is a big challenge for network operation and maintenance personnel and is not conducive to the efficient execution of operation and maintenance work. Summary of the invention

[0004] The present application provides a method and device for self-service query of Internet information, so as to at least solve the problem that the current query process of Internet information is lengthy, repetitive, time-consuming and labor-intensive.

[0005] According to one aspect of the present application, a method for self-service query of Internet information is provided, comprising:

[0006] Resolve the IP address corresponding to the domain name to be resolved according to whether the obtained domain name to be resolved is of CNAME type;

[0007] Determine the corresponding virtual address in the load balancing device according to the IP address and the pre-configured interface in the load balancing device;

[0008] Get the server IP based on the virtual address;

[0009] The server IP is resolved in a corresponding manner according to whether it passes through the WAF device;

[0010] Determine whether the resolved server IP passes the soft load system and determine the final server address.

[0011] In one embodiment, if the domain name to be resolved is of a CNAME type, resolving the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of a CNAME type includes:

[0012] Searching for a corresponding second domain name from a pre-established domain name mapping table according to the domain name to be resolved;

[0013] Obtain the IP address corresponding to the second domain name through the CDN service.

[0014] In one embodiment, if the domain name to be resolved is not of the CNAME type, resolving the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of the CNAME type includes:

[0015] Resolve the domain name to be resolved to obtain the IP address.

[0016] In one embodiment, obtaining the server IP address according to the virtual address includes:

[0017] According to the code configuration in the traffic forwarding language, the virtual address is forwarded to the corresponding POOL for resolution to obtain the server IP.

[0018] In one embodiment, when the server IP passes through the WAF device, the server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device, including:

[0019] Find the corresponding server virtual address and port corresponding POOL from the load balancing device according to the server IP;

[0020] Find the real address corresponding to the server virtual address from the corresponding POOL. The real address is the resolved server IP.

[0021] In one embodiment, when the server IP does not pass through the WAF device, the server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device, including:

[0022] According to the code configuration in the traffic forwarding language, the server IP is forwarded to the corresponding POOL for resolution to obtain the resolved server IP.

[0023] In one embodiment, determining whether the resolved server IP passes the soft load system and determining the final address of the server includes:

[0024] If the resolved server IP does not pass the soft load system, the resolved server IP is the final address of the server;

[0025] If the resolved server IP passes the soft load system, the final server address is determined based on the context root of the domain name port.

[0026] According to another aspect of the present application, there is also provided an Internet information self-service query device, comprising:

[0027] An IP resolution unit is used to resolve the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type;

[0028] A virtual address determination unit, used to determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device;

[0029] A server IP acquisition unit, used to obtain the server IP according to the virtual address;

[0030] The WAF judgment unit is used to resolve the server IP in a corresponding manner according to whether the server IP passes through the WAF device;

[0031] The final address determination unit is used to determine whether the resolved server IP passes the soft load system and determine the final address of the server.

[0032] In one embodiment, if the domain name to be resolved is of CNAME type, the IP resolution unit includes:

[0033] A second domain name search module, used to search for a corresponding second domain name from a pre-established domain name mapping table according to the domain name to be resolved;

[0034] The IP address determination module is used to obtain the IP address corresponding to the second domain name through the CDN service.

[0035] In one embodiment, if the domain name to be resolved is not of CNAME type, the IP resolution unit includes:

[0036] The direct resolution module is used to resolve the domain name to be resolved to obtain the IP address.

[0037] In one embodiment, the server IP acquisition unit includes:

[0038] The server IP acquisition module is used to forward the virtual address to the corresponding POOL for resolution according to the code configuration in the traffic forwarding language to obtain the server IP.

[0039] In one embodiment, when the server IP passes through the WAF device, the WAF judgment unit includes:

[0040] POOL search module, used to search the corresponding server virtual address and port corresponding POOL from the load balancing device according to the server IP;

[0041] The real address search module is used to search the real address corresponding to the server virtual address from the corresponding POOL. The real address is the resolved server IP.

[0042] In one embodiment, when the server IP does not pass the WAF device, the WAF judgment unit includes:

[0043] The server IP parsing module is used to forward the server IP to the corresponding POOL for parsing according to the code configuration in the traffic forwarding language to obtain the parsed server IP.

[0044] In one embodiment, the final address determination unit includes:

[0045] The first determination module is used for determining that if the resolved server IP does not pass the soft load system, the resolved server IP is the final address of the server;

[0046] The second determination module is used to determine the final address of the server according to the context root of the domain name port if the resolved server IP passes the soft load system.

[0047] In order to solve the complex Internet query process and realize the purpose of convenient query of Internet application network policies by users, the present application provides an Internet self-service query method, which realizes the automatic query of full-link network information. Its core idea is to integrate the configuration information of Internet domain name query system, hard load balancing system, soft load balancing system, application system, etc., and display the complex configuration information in the whole link, so as to realize the linkage query of network-related information, so as to query all the required Internet information, avoid repeated and lengthy query processes, and improve the overall efficiency of query work. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 A flow chart of a self-service Internet information query method provided in this application.

[0050] Figure 2 This is a flow chart of a method for resolving an IP address corresponding to a domain name to be resolved in an embodiment of the present application.

[0051] Figure 3 This is a flow chart of a method for parsing the server IP in a corresponding manner in an embodiment of the present application.

[0052] Figure 4 This is a flow chart of a method for determining whether the resolved server IP passes the soft load system and determining the final address of the server in an embodiment of the present application.

[0053] Figure 5This is a structural block diagram of an Internet information self-service query device provided in this application.

[0054] Figure 6 This is a structural block diagram of the IP parsing unit in an embodiment of the present application.

[0055] Figure 7 This is a structural block diagram of the WAF judgment unit in an embodiment of the present application.

[0056] Figure 8 This is a structural block diagram of the final address determination unit in an embodiment of the present application.

[0057] Fig. 9 and Fig.10 This is a schematic diagram of the program interface of an Internet information self-service query system in an embodiment of the present application.

[0058] Fig.11 This is a specific implementation of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Internet information includes: the correspondence between domain names and addresses, the correspondence between load balancing addresses and servers, the correspondence between soft load (SLB) addresses and server addresses, and other information. When network professionals need to query this information, they can only manually query the Internet domain name resolution system and the intranet load balancing system layer by layer. The query process is lengthy, time-consuming and labor-intensive.

[0061] Based on the above problems, this application proposes a solution, a self-service query method for Internet information, such as Figure 1 As shown, including:

[0062] S101: Resolve the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type.

[0063] S102: Determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device.

[0064] S103: Obtain the server IP address according to the virtual address.

[0065] S104: The server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device.

[0066] S105: Determine whether the resolved server IP passes the soft load system and determine the final address of the server.

[0067] Figure 1 The execution subject of the method shown can be a PC, computer, etc., using the access link as the entry to realize the automatic query of the full-link network information. The SOAP package in Python calls the interface of the load balancing device (F5) to obtain the full amount of intelligent domain name management system (GTM) and local traffic management system (LTM) configuration, and save it to the data. Through the association query of the table, the data between multiple devices and systems including domain names, F5, WAF, CDN, IRULES and application servers can be queried, and the configuration information and health status of each link can be displayed in real time. If it is an SLB server, the full display of different servers forwarded according to different domain names and context roots avoids repeated queries and improves efficiency.

[0068] In one embodiment, if the domain name to be resolved is of CNAME type, the IP address corresponding to the domain name to be resolved is resolved according to whether the acquired domain name to be resolved is of CNAME type, such as Figure 2 As shown, including:

[0069] S201: searching a corresponding second domain name from a pre-established domain name mapping table according to the domain name to be resolved.

[0070] S202: Obtain an IP address corresponding to the second domain name through the CDN service.

[0071] In a specific embodiment, first obtain the domain name 1 to be resolved, which is provided by the user. Then determine the type of the domain name 1 to be resolved. If it is a CNAME type, the domain name 1 will correspond to a domain name 2 (a second domain name). Entering the domain name 2 into the CDN service can return the IP address corresponding to the domain name 1 to be resolved.

[0072] In one embodiment, if the domain name to be resolved is not of the CNAME type, resolving the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of the CNAME type includes:

[0073] Resolve the domain name to be resolved to obtain the IP address.

[0074] In a specific embodiment, if the domain name 1 to be resolved is not of the CNAME type, an Internet address will be directly resolved, and the resolved Internet address will be regarded as an IP address.

[0075] In one embodiment, obtaining the server IP address according to the virtual address includes:

[0076] According to the code configuration in the traffic forwarding language, the virtual address is forwarded to the corresponding POOL for resolution to obtain the server IP.

[0077] In a specific embodiment, the virtual address on a load balancing device can be determined based on the obtained IP address and port (the port is pre-configured in F5), and the virtual address is forwarded to the corresponding POOL according to the configuration in IRULES, and the server IP is resolved based on the POOL.

[0078] In one embodiment, when the server IP passes through the WAF device, the server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device, such as Figure 3 As shown, including:

[0079] S301: Search the corresponding server virtual address and the POOL corresponding to the port from the load balancing device according to the server IP.

[0080] S302: Search the real address corresponding to the server virtual address from the corresponding POOL, where the real address is the resolved server IP.

[0081] In a specific embodiment, after obtaining the server IP, it is determined whether the server IP passes through the WAF device. If it passes through the WAF device, the POOL corresponding to the virtual address and port is searched in F5, and the POOLMember contained in the POOL is searched, that is, the real address corresponding to the virtual address. The real address searched on F5 is also the virtual address configured on WAF. At the same time, the real address searched on WAF is the real address of the virtual address. The real address searched is also the virtual address on another F5 device. Then the corresponding POOL and POOLMember are searched on the F5, and the real address searched is the real access address.

[0082] In one embodiment, when the server IP does not pass through the WAF device, the server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device, including:

[0083] According to the code configuration in the traffic forwarding language, the server IP is forwarded to the corresponding POOL for resolution to obtain the resolved server IP.

[0084] In a specific embodiment, a virtual address on a load balancing device can be determined according to the obtained server IP and port, and the virtual address is forwarded to the corresponding POOL according to the configuration in IRULES, and the server IP is resolved according to the POOL.

[0085] In one embodiment, it is determined whether the resolved server IP passes the soft load system and determines the final address of the server, such as Figure 4 As shown, including:

[0086] S401: If the resolved server IP does not pass the soft load system, the resolved server IP is the final address of the server.

[0087] S402: If the resolved server IP passes the soft load system, the final address of the server is determined according to the context root of the domain name port.

[0088] In a specific embodiment, it is determined whether the resolved server IP passes the soft load system. If not, the current server address is the final server address. If it passes, it is determined which server the packet is forwarded to based on the domain name port context root. For example, if the server address IP1 is finally forwarded to IP3, then IP3 is the final server address.

[0089] Based on the same inventive concept, the embodiments of the present application also provide an Internet information self-service query device, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the Internet information self-service query device is similar to that of the Internet information self-service query method, the implementation of the Internet information self-service query device can refer to the implementation of the Internet information self-service query method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0090] According to another aspect of the present application, a self-service Internet information query device is also provided, such as Figure 5 As shown, including:

[0091] The IP resolution unit 501 is used to resolve the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type;

[0092] A virtual address determination unit 502, configured to determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device;

[0093] A server IP acquisition unit 503, used to obtain a server IP according to a virtual address;

[0094] The WAF judgment unit 504 is used to parse the server IP in a corresponding manner according to whether the server IP passes through the WAF device;

[0095] The final address determination unit 505 is used to determine whether the resolved server IP passes the soft load system and determine the final address of the server.

[0096] In one embodiment, if Figure 6 As shown, if the domain name to be resolved is of CNAME type, the IP resolution unit 501 includes:

[0097] A second domain name search module 601 is used to search for a corresponding second domain name from a pre-established domain name mapping table according to the domain name to be resolved;

[0098] The IP address determination module 602 is used to obtain the IP address corresponding to the second domain name through the CDN service.

[0099] In one embodiment, if the domain name to be resolved is not of CNAME type, the IP resolution unit 501 includes:

[0100] The direct resolution module is used to resolve the domain name to be resolved to obtain the IP address.

[0101] In one embodiment, the server IP acquisition unit includes:

[0102] The server IP acquisition module is used to forward the virtual address to the corresponding POOL for resolution according to the code configuration in the traffic forwarding language to obtain the server IP.

[0103] In one embodiment, if Figure 7 As shown, when the server IP passes through the WAF device, the WAF judgment unit 504 includes:

[0104] POOL search module 701, used to search the corresponding server virtual address and port corresponding POOL from the load balancing device according to the server IP;

[0105] The real address search module 702 is used to search the real address corresponding to the server virtual address from the corresponding POOL, and the real address is the resolved server IP.

[0106] In one embodiment, when the server IP does not pass the WAF device, the WAF judgment unit includes:

[0107] The server IP parsing module is used to forward the server IP to the corresponding POOL for parsing according to the code configuration in the traffic forwarding language to obtain the parsed server IP.

[0108] In one embodiment, if Figure 8 As shown, the final address determination unit 505 includes:

[0109] The first determination module 801 is used for determining that if the resolved server IP does not pass the soft load system, the resolved server IP is the final address of the server;

[0110] The second determination module 802 is used to determine the final address of the server according to the context root of the domain name port if the resolved server IP passes the soft load system.

[0111] In a practical embodiment, if Fig. 9 and Fig.10 The following is a schematic diagram of a program interface of an Internet information self-service query system. Fig. 9 First select the domain name ehome.dccnet.com.cn to be resolved, then the domain name resolves to ip117.131.126.84, and then determine that the IP plus port 9080 passes IRULES, but not WAF. The server resolved is 73.14.5.11, which is an SLB server. According to the domain name ehome.dccnet.com.cn and port 9080, the resolution configuration is fully queried. Then according to the context root / icbc / eservice, the server address can be resolved to 73.14.1.101 and port 35030. Fig.10 shown.

[0112] Compared with the existing technology, the present application realizes the complete automation of Internet information query, without the need for manual operation, avoiding human-caused transactions. At the same time, the query efficiency is improved by about 119 times compared with the existing method, the complexity of the query process is reduced, repetitive labor is avoided, network pressure is alleviated, and operation and maintenance efficiency and troubleshooting efficiency are improved.

[0113] The embodiments of the present application also provide a specific implementation of an electronic device that can implement all the steps in the method in the above embodiments, see Fig.11 , the electronic device specifically includes the following contents:

[0114] Processor 1101, memory 1102, communication interface 1103, bus 1104 and non-volatile memory 1105;

[0115] The processor 1101, memory 1102, and communication interface 1103 communicate with each other via the bus 1104;

[0116] The processor 1101 is used to call the computer program in the memory 1102 and the non-volatile memory 1105. When the processor executes the computer program, all the steps in the method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0117] S101: Resolve the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type.

[0118] S102: Determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device.

[0119] S103: Obtain the server IP address according to the virtual address.

[0120] S104: The server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device.

[0121] S105: Determine whether the resolved server IP passes the soft load system and determine the final address of the server.

[0122] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0123] S101: Resolve the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type.

[0124] S102: Determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device.

[0125] S103: Obtain the server IP address according to the virtual address.

[0126] S104: The server IP is resolved in a corresponding manner according to whether the server IP passes through the WAF device.

[0127] S105: Determine whether the resolved server IP passes the soft load system and determine the final address of the server.

[0128] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Although the embodiment of this specification provides the method operation steps described in the embodiment or flow chart, more or less operation steps can be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way of executing the order of many steps, and does not represent the only execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same one or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The present invention is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1A device for specifying functions in a box or multiple boxes. It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment. In the description of this specification, the description of the reference term "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction. The above description is only an embodiment of the embodiment of this specification and is not intended to limit the embodiment of this specification. For those skilled in the art, the embodiment of this specification may have various changes and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the embodiment of this specification shall be included in the scope of the claims of the embodiment of this specification.

Claims

1. A self-service Internet information query method, characterized in that: include: Resolve the IP address corresponding to the domain name to be resolved according to whether the obtained domain name to be resolved is of CNAME type; Determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device; Obtain the server IP according to the virtual address; The server IP is parsed in a corresponding manner according to whether the server IP passes through the WAF device; Determine whether the resolved server IP passes the soft load system and determine the final address of the server; If the domain name to be resolved is not of the CNAME type, resolving the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of the CNAME type includes: Resolving the domain name to be resolved to obtain the IP address; Wherein, obtaining the server IP according to the virtual address includes: According to the code configuration in the traffic forwarding language, the virtual address is forwarded to the corresponding POOL for resolution to obtain the server IP; Wherein, when the server IP passes through the WAF device, the server IP is parsed in a corresponding manner according to whether the server IP passes through the WAF device, including: According to the server IP, search the corresponding server virtual address and the POOL corresponding to the port from the load balancing device; The real address corresponding to the server virtual address is searched from the corresponding POOL, and the real address is the resolved server IP.

2. The method for self-service Internet information query according to claim 1, wherein: When the server IP does not pass through the WAF device, resolving the server IP in a corresponding manner according to whether the server IP passes through the WAF device includes: According to the code configuration in the traffic forwarding language, the server IP is forwarded to the corresponding POOL for resolution, and the resolved server IP is obtained; The step of judging whether the resolved server IP passes the soft load system and determining the final address of the server includes: If the resolved server IP does not pass the soft load system, the resolved server IP is the final address of the server; If the resolved server IP passes the soft load system, the final server address is determined according to the context root of the domain name port.

3. The Internet information self-service query method according to claim 1 or 2, characterized in that: If the domain name to be resolved is of CNAME type, resolving the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type includes: Searching for a corresponding second domain name from a pre-established domain name mapping table according to the domain name to be resolved; The IP address corresponding to the second domain name is obtained through the CDN service.

4. An Internet information self-service query device, characterized in that: include: An IP resolution unit is used to resolve the IP address corresponding to the domain name to be resolved according to whether the acquired domain name to be resolved is of CNAME type; A virtual address determination unit, used to determine a corresponding virtual address in the load balancing device according to the IP address and a pre-configured interface in the load balancing device; A server IP acquisition unit, used to obtain the server IP according to the virtual address; A WAF judgment unit is used to parse the server IP in a corresponding manner according to whether the server IP passes through the WAF device; A final address determination unit, used to determine whether the server IP after resolution passes the soft load system and determine the final address of the server; Wherein, if the domain name to be resolved is not of CNAME type, the IP resolution unit includes: a direct resolution module, used to resolve the domain name to be resolved to obtain the IP address; The server IP acquisition unit includes: a server IP acquisition module, which is used to forward the virtual address to the corresponding POOL for parsing according to the code configuration in the traffic forwarding language to obtain the server IP; Wherein, when the server IP passes through the WAF device, the WAF judgment unit includes: A POOL search module is used to search for the corresponding server virtual address and the POOL corresponding to the port from the load balancing device according to the server IP; The real address search module is used to search the real address corresponding to the server virtual address from the corresponding POOL, and the real address is the resolved server IP.

5. The Internet information self-service query device according to claim 4, characterized in that: When the server IP does not pass the WAF device, the WAF judgment unit further includes: A server IP parsing module is used to forward the server IP to the corresponding POOL for parsing according to the code configuration in the traffic forwarding language to obtain the parsed server IP; The final address determination unit comprises: A first determination module, configured to determine that if the resolved server IP fails to pass the soft load system, the resolved server IP is the final address of the server; The second determination module is used to determine the final address of the server according to the context root of the domain name port if the resolved server IP passes the soft load system.

6. The Internet information self-service query device according to claim 4 or 5, characterized in that: If the domain name to be resolved is of CNAME type, the IP resolution unit includes: A second domain name search module, used to search for a corresponding second domain name from a pre-established domain name mapping table according to the domain name to be resolved; The IP address determination module is used to obtain the IP address corresponding to the second domain name through the CDN service.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the Internet information self-service query method described in any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the Internet information self-service query method described in any one of claims 1 to 3 are implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the Internet information self-service query method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Information processing method, terminal, and computer-readable medium

    CN109040052A

  • Computer implemented DNS server IP address lookup mechanism

    US20110055374A1