Domain name access method and device, storage medium and electronic equipment
Patent Information
- Application Number
- CN202310994902.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-08
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2043-08-08
AI Technical Summary
[0005]本申请提供一种域名访问方法、装置、存储介质以及电子设备,以解决相关技术中通过人工修改用户对应的IP地址的方法效率低并且时效性差的问题
[0016]通过本申请,采用以下步骤:获取每个用户的域名访问信息,并获取域名访问信息中的用户信息;分别确定每个用户的用户信息是否与加速域名相关联,其中,加速域名用于对域名访问操作进行加速;在用户信息与加速域名相关联的情况下,解析加速域名,得到用户的预设访问地址;在用户信息与加速域名不关联的情况下,根据用户信息确定用户的预设访问地址;将多个预设访问地址在预设可视化图像中进行显示,得到目标可视化图像。解决了相关技术中通过人工修改用户对应的IP地址的方法效率低并且时效性差的问题。通过确定每个用户信息是否对应加速域名,并在不对应加速域名的情况下,通过用户信息确定当前时刻该用户对应的最优的预设访问地址,并根据每个用户的预设访问地址生成可视化图像,并根据可视化图像显示每个区域的连接人数,从而根据连接人数对IP地址的连接情况进行调整,进而达到了提高IP地址的选取效率、准确率和时效性的效果。
Smart Images

Figure CN116886708B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data, and more specifically, to a domain name access method, apparatus, storage medium, and electronic device. Background Technology
[0002] When a user accesses a domain name, since a domain name may result in multiple IP addresses after resolution, the user's access request is usually resolved to determine the IP address corresponding to the user's access request based on a preset association, and then the access content at that IP address is sent to the user.
[0003] However, in different scenarios, user status or user information may change. When changes occur, the IP address is usually adjusted manually by modifying the user's corresponding IP address. However, this method cannot be changed in a timely manner. Changes are only made after the user provides feedback. At the same time, the process of making changes manually is cumbersome and cannot be easily executed when there are a large number of users, resulting in a waste of human resources.
[0004] There is currently no effective solution to the problem that the method of manually modifying the user's corresponding IP address in related technologies is inefficient and untimely. Summary of the Invention
[0005] This application provides a domain name access method, apparatus, storage medium, and electronic device to solve the problems of low efficiency and poor timeliness in related technologies that rely on manually modifying the user's corresponding IP address.
[0006] According to one aspect of this application, a domain name access method is provided. The method includes: obtaining domain name access information for each user, and obtaining user information from the domain name access information; determining whether the user information for each user is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; if the user information is associated with the accelerated domain name, resolving the accelerated domain name to obtain the user's preset access address; if the user information is not associated with the accelerated domain name, determining the user's preset access address based on the user information; and displaying multiple preset access addresses in a preset visualization image to obtain a target visualization image.
[0007] Optionally, determining the user's preset access address based on user information includes: for a target user, parsing the target user's user information to obtain the organization to which the target user belongs and a reserved area, wherein the reserved area is a preset coordinate area for the target user; determining the target user's preset access address based on the organization in a preset lookup table to obtain multiple candidate access addresses, wherein the preset lookup table includes multiple organizations and the preset access address corresponding to each organization; and determining the target user's preset access address from the multiple candidate access addresses based on the reserved area and the preset lookup table, wherein the preset lookup table also includes multiple reserved areas and the preset access address corresponding to each reserved area.
[0008] Optionally, after determining the target user's preset access address from multiple candidate access addresses, the method further includes: obtaining the target IP address when the target user sends the domain name access information, and determining the target user's actual region based on the target IP address; obtaining the distance between the actual region and the reserved region to obtain the target distance; determining whether the target distance is greater than the preset distance, and if the target distance is greater than the preset distance, re-determining the target user's corresponding preset access address in the preset lookup table based on the actual region and the institution to obtain the updated preset access address.
[0009] Optionally, after determining the user's preset access address based on user information, the method further includes: determining the park indicated by the target user's preset access address to obtain multiple access information processing parks; determining the traffic processing rate of each access information processing park to obtain multiple traffic processing rates, and determining a first weight of each access information processing park based on the multiple traffic processing rates, wherein the traffic processing rate is positively correlated with the first weight; determining the unprocessed traffic value of each access information processing park to obtain multiple unprocessed traffic values, and determining a second weight of each access information processing park based on the multiple unprocessed traffic values, wherein the unprocessed traffic value is inversely correlated with the second weight; calculating the total weight of each access information processing park based on the first weight and the second weight to obtain multiple total weights, and determining the access information processing park corresponding to the largest total weight as the target park accessed by the target user.
[0010] Optionally, determining the user's preset access address based on user information includes: when the target user corresponds to multiple preset access addresses, obtaining the target access address with the highest priority based on the preset priority of the multiple preset access addresses, and determining the target access address as the target user's preset access address.
[0011] Optionally, after resolving the accelerated domain name to obtain the user's preset access address, the method further includes: if the preset access address is abnormal, obtaining an alternative domain name associated with the accelerated domain name, resolving the alternative domain name to obtain an alternative access address; if the alternative access address is abnormal, performing the step of determining the user's domain name access address based on user information.
[0012] Optionally, displaying multiple preset access addresses in a preset visualization image to obtain a target visualization image includes: acquiring a preset display style and displaying multiple preset access addresses in the preset display style according to a first display method to obtain a preset visualization image; determining the target number of preset access addresses in each preset region of the preset display style, and comparing the target number of each region with the address threshold of each preset region to obtain multiple comparison results; if the comparison results indicate that the address threshold is less than the target number, displaying an abnormal region through a second display method to obtain a target visualization image, wherein the abnormal region is a preset region where the comparison results indicate that the address threshold is less than the target number.
[0013] According to another aspect of this application, a domain name access device is provided. The device includes: a first acquisition unit, configured to acquire domain name access information for each user and acquire user information from the domain name access information; a first determination unit, configured to determine whether the user information for each user is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; a first resolution unit, configured to resolve the accelerated domain name to obtain the user's preset access address when the user information is associated with the accelerated domain name; a second determination unit, configured to determine the user's preset access address based on the user information when the user information is not associated with the accelerated domain name; and a display unit, configured to display multiple preset access addresses in a preset visualization image to obtain a target visualization image.
[0014] According to another aspect of the present invention, a computer storage medium is also provided for storing a program, wherein the program, when running, controls the device where the computer storage medium is located to execute a domain name access method.
[0015] According to another aspect of the present invention, an electronic device is also provided, comprising one or more processors and a memory; the memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions, wherein the computer-readable instructions, when executed, perform a domain name access method.
[0016] This application employs the following steps: obtaining domain name access information for each user, and obtaining user information from the domain name access information; determining whether each user's user information is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; when the user information is associated with an accelerated domain name, resolving the accelerated domain name to obtain the user's preset access address; when the user information is not associated with an accelerated domain name, determining the user's preset access address based on the user information; and displaying multiple preset access addresses in a preset visualization image to obtain a target visualization image. This solves the problems of low efficiency and poor timeliness in related technologies that rely on manually modifying the user's corresponding IP address. By determining whether each user's information corresponds to an accelerated domain name, and in the case of no corresponding accelerated domain name, determining the optimal preset access address for the user at the current moment based on the user information, generating a visualization image based on each user's preset access address, and displaying the number of connected users in each region based on the visualization image, the connection status of IP addresses can be adjusted according to the number of connected users, thereby improving the efficiency, accuracy, and timeliness of IP address selection. Attached Figure Description
[0017] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0018] Figure 1 This is a flowchart of a domain name access method provided according to an embodiment of this application;
[0019] Figure 2 This is a flowchart of an optional access address selection method provided according to an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of a domain name access device provided according to an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0025] It should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent information from the aforementioned user or organization.
[0026] It should be noted that the domain name access methods, devices, storage media, and electronic devices defined in this disclosure can be used in the field of big data, or in any field other than big data. The application fields of the domain name access methods, devices, storage media, and electronic devices defined in this disclosure are not limited.
[0027] According to an embodiment of this application, a domain name access method is provided.
[0028] Figure 1 This is a flowchart of a domain name access method provided according to an embodiment of this application. For example... Figure 1 As shown, the method includes the following steps:
[0029] Step S101: Obtain the domain name access information for each user, and obtain the user information from the domain name access information.
[0030] Specifically, obtaining each user's domain access information occurs in scenarios where multiple users send multiple domain access messages to a single domain. For example, if ten thousand users all send domain access messages to www.xxyyzz.com, then ten thousand domain access messages will exist simultaneously. Domain access information can be the information sent by a specific user when accessing a specific domain. For instance, if a user accesses www.xxyyzz.com, then when accessing that domain, the user's information will be obtained, such as the user's access IP address, the location of the access IP address, the access time, and the access identifier.
[0031] It should be noted that due to the high volume of traffic to some domains, each domain needs to correspond to multiple different IP addresses, and each IP address corresponds to a different service zone, in order to ensure that every user can successfully obtain access results when accessing the domain.
[0032] Step S102: Determine whether each user's user information is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations.
[0033] Specifically, after obtaining the above information, it can be determined whether a user can use the accelerated domain name based on the access identifier. The accelerated domain name is provided by the CDN service provider, and the provided accelerated domain name is also known as CNAME.
[0034] Step S103: If the user information is associated with the accelerated domain name, resolve the accelerated domain name to obtain the user's preset access address.
[0035] Specifically, when a user accesses www.xxyyzz.com in connection with an accelerated domain, the local DNS obtains the CNAME (Canonical Name) domain provided by the CDN (Content Delivery Network), which is the accelerated domain. It then sends a request to the local DNS (Domain Name System) scheduling system. Through intelligent resolution by the DNS scheduling system, the local DNS returns the server IP of the CDN provider that is geographically closest to the client (or has relatively low load). The local DNS then returns the IP to the client, allowing the user to access the desired resources (e.g., access a website) from the nearest location. This significantly reduces latency and improves efficiency.
[0036] Step S104: If the user information is not associated with the accelerated domain name, determine the user's preset access address based on the user information.
[0037] Specifically, if a user does not have an accelerated domain name, the domain name that the user wants to access can be obtained from the domain access information. Based on the address information, service provider information and other information in the user information, the IP address under the domain name that the user wants to access can be determined, thereby planning the most suitable access IP address for the user.
[0038] Step S105: Display multiple preset access addresses in a preset visualization image to obtain the target visualization image.
[0039] Specifically, with more than one domain name, there may be a large number of users accessing it. In this case, after obtaining the access records of each IP address under that domain name, the user access volume of each IP address can be determined based on multiple preset access addresses, that is, the IP addresses accessed by each user. A visualization image can be generated based on the user access volume, so as to conveniently determine the access status of each IP address. This allows for timely adjustments to the accessing users based on the access status, thereby ensuring that each accessed IP address is not overwhelmed by excessive access volume, causing access anomalies.
[0040] The domain name access method provided in this application obtains domain name access information for each user and user information from that information. It then determines whether each user's information is associated with an accelerated domain name, where the accelerated domain name is used to accelerate domain name access operations. If the user information is associated with an accelerated domain name, the accelerated domain name is parsed to obtain the user's preset access address. If the user information is not associated with an accelerated domain name, the user's preset access address is determined based on the user information. Multiple preset access addresses are displayed in a preset visualization image to obtain a target visualization image. This solves the problems of low efficiency and poor timeliness in related technologies that rely on manually modifying the user's corresponding IP address. By determining whether each user's information corresponds to an accelerated domain name, and in the case of no corresponding accelerated domain name, determining the optimal preset access address for the user at the current moment based on the user information, generating a visualization image based on each user's preset access address, and displaying the number of connected users in each region based on the visualization image, the connection status of IP addresses is adjusted according to the number of connected users, thereby improving the efficiency, accuracy, and timeliness of IP address selection.
[0041] To ensure that users can access the IP address with the highest compatibility under the domain name, optionally, in the domain name access method provided in this application embodiment, determining the user's preset access address based on user information includes: for a target user, parsing the target user's user information to obtain the organization to which the target user belongs and the reserved area, wherein the reserved area is a preset coordinate area of the target user; determining the target user's preset access address based on the organization in a preset lookup table to obtain multiple candidate access addresses, wherein the preset lookup table includes multiple organizations and the preset access address corresponding to each organization; determining the target user's preset access address from the multiple candidate access addresses based on the reserved area and the preset lookup table, wherein the preset lookup table also includes multiple reserved areas and the preset access address corresponding to each reserved area.
[0042] Specifically, the user information can first be parsed to determine the user's reserved address and organization. The organization can be the user's service provider. Once the organization is determined, the corresponding IP access address can be determined, resulting in multiple candidate access addresses. These candidate access addresses are then filtered again based on the IP address corresponding to the user's reserved region to obtain the user's corresponding IP address.
[0043] For example, if user A belongs to organization A and the user's reserved region is region B, then the access IP address corresponding to both organization A and region B can be directly determined from the preset lookup table, allowing the user to access the domain name and obtain feedback information.
[0044] Optionally, Figure 2 This is a flowchart of an optional access address selection method provided according to an embodiment of this application, such as... Figure 2 As shown, in the domain name access method provided in this application embodiment, after determining the preset access address of the target user from multiple candidate access addresses, the method further includes:
[0045] Step S201: Obtain the target IP address when the target user sends the domain name access information, and determine the actual region of the target user based on the target IP address.
[0046] Step S202: Obtain the distance between the actual area and the reserved area to get the target distance.
[0047] Step S203: Determine whether the target distance is greater than the preset distance. If the target distance is greater than the preset distance, re-determine the preset access address corresponding to the target user in the preset lookup table according to the actual area and institution, and obtain the updated preset access address.
[0048] Specifically, after determining the IP address, since the user may not be in the reserved area, the user's current location can be determined by the IP address used when the user sent the domain name access information. The distance between the current location and the reserved area can also be determined. If the distance is close, the domain name can be accessed through the already determined preset access address. If the distance is far, accessing the domain name through the preset access address may cause access delays or other issues. Therefore, it is necessary to re-determine and update the preset access address based on the user's current location to obtain the latest preset access address, thereby ensuring that the user can access the domain name normally.
[0049] For example, user A's IP address is determined to be xxx when in region A, but user A's IP address is located in region C, which is far away from region A. Therefore, it is necessary to redetermine the IP address xxx according to region C to obtain a new IP address yyy, and then access the domain name through yyy.
[0050] Optionally, in the domain name access method provided in this application embodiment, after determining the user's preset access address based on user information, the method further includes: determining the park indicated by the preset access address of the target user to obtain multiple access information processing parks; determining the traffic processing rate of each access information processing park to obtain multiple traffic processing rates, and determining a first weight of each access information processing park based on the multiple traffic processing rates, wherein the traffic processing rate is positively correlated with the first weight; determining the unprocessed traffic value of each access information processing park to obtain multiple unprocessed traffic values, and determining a second weight of each access information processing park based on the multiple unprocessed traffic values, wherein the unprocessed traffic value is inversely correlated with the second weight; calculating the total weight of each access information processing park based on the first weight and the second weight to obtain multiple total weights, and determining the access information processing park corresponding to the largest total weight as the target park accessed by the target user.
[0051] Specifically, since each IP address may correspond to multiple access information processing zones, for example, if an IP address is deployed in one of zones A, B, or C, and its address pool consists of four locations (including the three major carriers and a backup pool), it is considered a single-zone application. If it is deployed in two or more locations, and its address pool consists of four locations (including the three major carriers and a backup pool), it is considered a dual-zone round-robin application. If it is deployed in two or more locations, and its address pool consists of more than four locations with a backup address pool consisting of primary and backup zones, it is considered a dual-zone north-south traffic distribution. Therefore, after determining the IP address, it is necessary to determine the zone in which the access information is sent, so that the data center within that zone can be used to process the access information.
[0052] Furthermore, when selecting a park among multiple parks, the traffic processing rate of each park can be determined, and a first weight can be determined based on the traffic processing rate. The first weight is directly proportional to the traffic processing rate; the higher the traffic processing rate, the higher the first weight. Next, the amount of traffic to be processed in each park needs to be determined. The higher the amount of traffic to be processed, the lower the second weight. This determines the first and second weights for each park. After determining the first and second weights, they are added together to obtain the total weight for each park. The park with the highest total weight is then selected as the target park for the target user, and the access information is sent to that park for processing.
[0053] Optionally, in the domain name access method provided in the embodiments of this application, determining the user's preset access address based on user information includes: when the target user corresponds to multiple preset access addresses, obtaining the target access address with the highest priority according to the preset priority of the multiple preset access addresses, and determining the target access address as the target user's preset access address.
[0054] Specifically, when a user corresponds to multiple IP addresses, that is, when the user can access multiple preset access addresses, the highest priority access address can be determined according to the pre-set usage priority order of each preset access address, and the user will access the highest priority access address, thereby ensuring the quality of access.
[0055] Optionally, in the domain name access method provided in this application embodiment, after resolving the accelerated domain name to obtain the user's preset access address, the method further includes: if the preset access address is abnormal, obtaining an alternative domain name associated with the accelerated domain name, resolving the alternative domain name to obtain an alternative access address; if the alternative access address is abnormal, performing the step of determining the user's domain name access address based on user information.
[0056] Specifically, if the access address corresponding to the accelerated domain is abnormal, an alternative domain can be used as the accelerated domain for access. However, if the alternative access address corresponding to the accelerated domain is also abnormal, indicating that the accelerated domain is abnormal, the user's domain access address will be determined based on the user information, that is, the domain access address will be re-determined, and the acceleration operation will not be able to be performed, thus ensuring that the user's access information can be processed correctly.
[0057] Optionally, in the domain name access method provided in this application embodiment, displaying multiple preset access addresses in a preset visualization image to obtain a target visualization image includes: obtaining a preset display style and displaying multiple preset access addresses in the preset display style according to a first display method to obtain a preset visualization image; determining the target number of preset access addresses in each preset area of the preset display style, and comparing the address threshold of each preset area with the target number of each area to obtain multiple comparison results; when the comparison result indicates that the address threshold is less than the target number, displaying an abnormal area through a second display method to obtain a target visualization image, wherein the abnormal area is a preset area where the comparison result indicates that the address threshold is less than the target number.
[0058] Specifically, in order to statistically analyze the access status of IP addresses in each region, the number of users accessing each preset access address can be determined based on the selection and access status of each user's preset access address. The access data for each region can then be determined based on the region where the preset access address is located. The access data is compared with the threshold for that region. If the threshold is less than the current number of access data, an abnormal region can be displayed using a second display method. This allows for the clear identification of abnormal regions in the visualization image, and the number of users accessing the access address in that region can be adjusted to ensure the correctness of user access.
[0059] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0060] This application also provides a domain name access device. It should be noted that the domain name access device of this application can be used to execute the domain name access method provided in this application. The domain name access device provided in this application is described below.
[0061] Figure 3 This is a schematic diagram of a domain name access device provided according to an embodiment of this application. For example... Figure 3 As shown, the device includes: a first acquisition unit 31, a first determination unit 32, a first parsing unit 33, a second determination unit 34, and a display unit 35.
[0062] The first acquisition unit 31 is used to acquire the domain name access information of each user and acquire the user information in the domain name access information;
[0063] The first determining unit 32 is used to determine whether the user information of each user is associated with the accelerated domain name, wherein the accelerated domain name is used to accelerate the domain name access operation;
[0064] The first parsing unit 33 is used to parse the accelerated domain name and obtain the user's preset access address when the user information is associated with the accelerated domain name;
[0065] The second determining unit 34 is used to determine the user's preset access address based on the user information when the user information is not associated with the accelerated domain name.
[0066] Display unit 35 is used to display multiple preset access addresses in a preset visualization image to obtain a target visualization image.
[0067] The domain name access device provided in this application embodiment acquires domain name access information for each user through a first acquisition unit 31, and acquires user information from the domain name access information; a first determination unit 32 determines whether the user information of each user is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; a first parsing unit 33 parses the accelerated domain name to obtain the user's preset access address when the user information is associated with the accelerated domain name; a second determination unit 34 determines the user's preset access address based on the user information when the user information is not associated with the accelerated domain name; and a display unit 35 displays multiple preset access addresses in a preset visualization image to obtain a target visualization image. This solves the problems of low efficiency and poor timeliness in related technologies where the method of manually modifying the user's corresponding IP address is used. By determining whether each user information corresponds to an accelerated domain name, and in the case of no corresponding accelerated domain name, determining the optimal preset access address corresponding to the user at the current time based on the user information, generating a visualization image based on each user's preset access address, and displaying the number of connected users in each area based on the visualization image, the connection status of IP addresses is adjusted according to the number of connected users, thereby improving the efficiency, accuracy, and timeliness of IP address selection.
[0068] Optionally, in the domain name access device provided in this application embodiment, the second determining unit 34 includes: a parsing module, used to parse the user information of the target user to obtain the organization to which the target user belongs and a reserved area, wherein the reserved area is a preset coordinate area of the target user; a first determining module, used to determine the preset access address of the target user according to the organization in a preset lookup table to obtain multiple candidate access addresses, wherein the preset lookup table includes multiple organizations and a preset access address corresponding to each organization; and a second determining module, used to determine the preset access address of the target user from the multiple candidate access addresses according to the reserved area and the preset lookup table, wherein the preset lookup table also includes multiple reserved areas and a preset access address corresponding to each reserved area.
[0069] Optionally, in the domain name access device provided in the embodiments of this application, the device further includes: a second acquisition unit, used to acquire the target IP address when the target user sends domain name access information, and determine the actual region of the target user based on the target IP address; a third acquisition unit, used to acquire the distance between the actual region and the reserved region to obtain the target distance; and a judgment unit, used to judge whether the target distance is greater than a preset distance, and if the target distance is greater than the preset distance, to re-determine the preset access address corresponding to the target user in a preset lookup table based on the actual region and the institution, and obtain the updated preset access address.
[0070] Optionally, in the domain name access device provided in this application embodiment, the device further includes: a third determining unit, configured to determine the park indicated by the preset access address of the target user, thereby obtaining multiple access information processing parks; a fourth determining unit, configured to determine the traffic processing rate of each access information processing park, thereby obtaining multiple traffic processing rates, and to determine a first weight of each access information processing park based on the multiple traffic processing rates, wherein the traffic processing rate is positively correlated with the first weight; a fifth determining unit, configured to determine the unprocessed traffic value of each access information processing park, thereby obtaining multiple unprocessed traffic values, and to determine a second weight of each access information processing park based on the multiple unprocessed traffic values, wherein the unprocessed traffic value is inversely correlated with the second weight; and a calculation unit, configured to calculate the total weight of each access information processing park based on the first weight and the second weight, thereby obtaining multiple total weights, and to determine the access information processing park corresponding to the largest total weight as the target park accessed by the target user.
[0071] Optionally, in the domain name access device provided in the embodiments of this application, the second determining unit 34 includes: a first obtaining module, used to obtain the target access address with the highest priority according to the preset priority of the multiple preset access addresses when the target user corresponds to multiple preset access addresses, and determine the target access address as the preset access address of the target user.
[0072] Optionally, in the domain name access device provided in the embodiments of this application, the device further includes: a second resolution unit, used to obtain an alternative domain name associated with the accelerated domain name and resolve the alternative domain name to obtain an alternative access address when the preset access address is abnormal; and an execution unit, used to execute the step of determining the user's domain name access address based on user information when the alternative access address is abnormal.
[0073] Optionally, in the domain name access device provided in this application embodiment, the display unit 35 includes: a second acquisition module, used to acquire a preset display style and display multiple preset access addresses in the preset display style according to a first display method to obtain a preset visual image; a third determination module, used to determine the target number of preset access addresses in each preset area in the preset display style, and compare the target number of each area with the address threshold of each preset area to obtain multiple comparison results; and a display module, used to display an abnormal area in a second display method when the comparison result indicates that the address threshold is less than the target number to obtain a target visual image, wherein the abnormal area is a preset area where the comparison result indicates that the address threshold is less than the target number.
[0074] The aforementioned domain name access device includes a processor and a memory. The first acquisition unit 31, the first determination unit 32, the first resolution unit 33, the second determination unit 34, the display unit 35, etc., are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0075] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting kernel parameters, the inefficiency and poor timeliness of manually modifying the user's IP address in related technologies can be addressed.
[0076] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0077] This invention provides a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements the domain name access method.
[0078] This invention provides a processor for running a program, wherein the program executes the domain name access method during runtime.
[0079] like Figure 4As shown, this embodiment of the invention provides an electronic device 40, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: obtaining domain name access information for each user and obtaining user information from the domain name access information; determining whether each user's user information is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; if the user information is associated with the accelerated domain name, resolving the accelerated domain name to obtain the user's preset access address; if the user information is not associated with the accelerated domain name, determining the user's preset access address based on the user information; and displaying multiple preset access addresses in a preset visualization image to obtain a target visualization image. The device in this document can be a server, PC, PAD, mobile phone, etc.
[0080] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: obtaining domain name access information for each user, and obtaining user information from the domain name access information; determining whether the user information for each user is associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; if the user information is associated with the accelerated domain name, resolving the accelerated domain name to obtain the user's preset access address; if the user information is not associated with the accelerated domain name, determining the user's preset access address based on the user information; and displaying multiple preset access addresses in a preset visualization image to obtain a target visualization image.
[0081] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0082] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0083] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0084] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0086] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0087] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0088] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0089] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for accessing a domain name, characterized in that, include: Obtain the domain access information for each user, and then obtain the user information from the domain access information; Each user's information is determined to be associated with an accelerated domain name, wherein the accelerated domain name is used to accelerate domain name access operations; When the user information is associated with the accelerated domain name, the accelerated domain name is resolved to obtain the user's preset access address; If the user information is not associated with the accelerated domain name, the user's preset access address is determined based on the user information; The process of determining the user's preset access address based on the user information includes: for a target user, parsing the user information to obtain the organization to which the target user belongs and a reserved area, wherein the reserved area is a preset coordinate area for the target user; determining the target user's preset access address based on the organization in a preset lookup table to obtain multiple candidate access addresses, wherein the preset lookup table includes multiple organizations and a preset access address corresponding to each organization; and determining the target user's preset access address from the multiple candidate access addresses based on the reserved area and the preset lookup table, wherein the preset lookup table also includes multiple reserved areas and a preset access address corresponding to each reserved area. Multiple preset access addresses are displayed in a preset visualization image to obtain the target visualization image.
2. The method according to claim 1, characterized in that, After determining the preset access address of the target user from the plurality of candidate access addresses, the method further includes: Obtain the target IP address when the target user sends the domain name access information, and determine the actual region of the target user based on the target IP address; Obtain the distance between the actual area and the reserved area to get the target distance; Determine whether the target distance is greater than a preset distance. If the target distance is greater than the preset distance, re-determine the preset access address corresponding to the target user in the preset lookup table based on the actual area and the institution to obtain an updated preset access address.
3. The method according to claim 1, characterized in that, After determining the user's preset access address based on the user information, the method further includes: Determine the park indicated by the target user's preset access address to obtain multiple access information processing parks; The traffic processing rate of each access information processing zone is determined to obtain multiple traffic processing rates, and a first weight of each access information processing zone is determined based on the multiple traffic processing rates, wherein the traffic processing rate is positively correlated with the first weight. The pending traffic value for each access information processing zone is determined, resulting in multiple pending traffic values. A second weight for each access information processing zone is then determined based on these multiple pending traffic values, wherein the pending traffic value is inversely correlated with the second weight. The total weight of each access information processing zone is calculated based on the first weight and the second weight, resulting in multiple total weights. The access information processing zone corresponding to the largest total weight is then determined as the target zone accessed by the target user.
4. The method according to claim 1, characterized in that, Determining the user's preset access address based on the user information includes: When a target user corresponds to multiple preset access addresses, the target access address with the highest priority is obtained according to the preset priority of the multiple preset access addresses, and the target access address is determined as the preset access address of the target user.
5. The method according to claim 1, characterized in that, After resolving the accelerated domain name to obtain the user's preset access address, the method further includes: If the preset access address is abnormal, obtain the backup domain name associated with the accelerated domain name, and resolve the backup domain name to obtain the backup access address; If the backup access address is abnormal, the step of determining the user's domain name access address based on the user information shall be performed.
6. The method according to claim 1, characterized in that, Multiple preset access addresses are displayed in a preset visualization image to obtain the target visualization image, which includes: Obtain a preset display style, and display the multiple preset access addresses in the preset display style according to a first display method to obtain a preset visual image; Determine the target number of preset access addresses in each preset area of the preset display style, and compare the target number of each preset area with the address threshold of each preset area to obtain multiple comparison results; If the comparison result characterization address threshold is less than the target quantity, the abnormal area is displayed through a second display method to obtain the target visualization image, wherein the abnormal area is a preset area where the comparison result characterization address threshold is less than the target quantity.
7. A domain name access device, characterized in that, include: The first acquisition unit is used to acquire the domain name access information of each user and acquire the user information in the domain name access information; The first determining unit is used to determine whether the user information of each user is associated with the accelerated domain name, wherein the accelerated domain name is used to accelerate the domain name access operation; The first parsing unit is used to parse the accelerated domain name to obtain the user's preset access address when the user information is associated with the accelerated domain name; The second determining unit is used to determine the user's preset access address based on the user information when the user information is not associated with the accelerated domain name; The second determining unit includes: a parsing module, configured to parse the user information of the target user to obtain the organization to which the target user belongs and a reserved area, wherein the reserved area is a preset coordinate area of the target user; a first determining module, configured to determine the preset access address of the target user according to the organization in a preset lookup table to obtain multiple candidate access addresses, wherein the preset lookup table includes multiple organizations and a preset access address corresponding to each organization; and a second determining module, configured to determine the preset access address of the target user from the multiple candidate access addresses according to the reserved area and the preset lookup table, wherein the preset lookup table also includes multiple reserved areas and a preset access address corresponding to each reserved area. The display unit is used to display multiple preset access addresses in a preset visualization image to obtain the target visualization image.
8. A computer storage medium, characterized in that, The computer storage medium is used to store a program, wherein the program, when running, controls the device where the computer storage medium is located to execute the domain name access method according to any one of claims 1 to 6.
9. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the domain name access method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Domain name query method, system, device and equipment and storage medium
CN115297087A