Domain name resolution method, device, communication equipment, storage medium and product

By decrypting and resolving the terminal's DNS request in the edge cloud server, determining access permissions and controlling the sending of domain name resolution results, the problem of not being able to differentiate access permissions in the existing technology is solved, and a more secure and flexible domain name resolution service is realized , simplifies the domain name resolution process and reduces the delay.

CN118540303BActive Publication Date: 2024-11-12CHINA TELECOM CORP LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970003.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-12
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The existing domain name resolution method cannot achieve differentiated control of access rights for different terminals, resulting in the inability to meet user customization and security needs, and the recursive query method is complex and has low flexibility.

Method used

Receive the terminal's DNS request in the edge cloud server, and determine the terminal's access permissions by decrypting and resolving the identification information and access path information in the request, and differentiate the transmission of domain name resolution results based on the records in the policy library, simplifying the domain name Analyze the process and reduce delay.

Benefits of technology

Differentiated control of the domain name resolution process of different terminals is achieved, more secure and flexible domain name resolution services are provided, domain name resolution delay is reduced, and service stability and flexibility are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540303B_ABST
    Figure CN118540303B_ABST
Patent Text Reader

Abstract

The present application relates to a domain name resolution method, device, communication equipment, storage medium and product. The method includes: an edge cloud server receives a DNS request sent by a terminal based on a first domain name of the edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal; according to the DNS request, a second domain name and target resource information requested by the terminal are determined; when it is determined according to the target resource information that the terminal has the corresponding access rights, the domain name resolution result corresponding to the second domain name is sent to the terminal through the local DNS server. This method can be used to deploy edge cloud servers nearby, provide domain name resolution services for terminals, and effectively reduce the delay in the domain name resolution process; in addition, the edge cloud server can identify the access rights of the terminal based on the target resource information, thereby performing differentiated control on the domain name resolution processes of different terminals, and providing safer and more flexible domain name resolution services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computing network technology, and in particular to a domain name resolution method, apparatus, communication equipment, storage medium and product. Background Art

[0002] Domain name resolution refers to the process of querying the domain name and the IP (Internet Protocol) address of the resource when the terminal accesses the website through the domain name. The conventional domain name resolution process is implemented through multi-level recursion, that is, the local DNS (Domain Name System) server corresponding to the terminal recursively queries the IP address to the root domain name server, top-level domain name server and authoritative domain name server in turn.

[0003] However, under this conventional method, all terminals can only passively accept domain name resolution results through a unified process, and cannot achieve differentiated control of access rights of different terminals. Summary of the invention

[0004] Based on this, it is necessary to provide a domain name resolution method, device, communication equipment, storage medium and product that can set the access rights of the terminal and perform differentiated control on the domain name resolution process of the terminal in response to the above technical problems.

[0005] In a first aspect, the present application provides a domain name resolution method, which is applied to an edge cloud server, including:

[0006] Receiving a DNS request sent by a terminal based on a first domain name of an edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal;

[0007] Determine, according to the DNS request, the second domain name and target resource information requested by the terminal;

[0008] When it is determined according to the target resource information that the terminal has the corresponding access rights, a domain name resolution result corresponding to the second domain name is sent to the terminal through the local DNS server.

[0009] In one embodiment, determining the second domain name and target resource information requested to be accessed by the terminal according to the DNS request includes:

[0010] Decrypt the DNS request to obtain the second domain name requested by the terminal and the access path information of the terminal;

[0011] The access path information of the terminal is parsed to obtain the identification information of the terminal and the target resource information requested to be accessed by the terminal.

[0012] In one embodiment, sending the domain name resolution result corresponding to the second domain name to the terminal through the local DNS server includes:

[0013] Determine whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal;

[0014] If so, sending resolution instruction information to the local DNS server; wherein the resolution instruction information is used to instruct the local DNS server to determine the domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal;

[0015] If not, the domain name resolution result corresponding to the second domain name is sent to the local DNS server, so that the local DNS server forwards the domain name resolution result to the terminal.

[0016] In one embodiment, determining that the terminal has corresponding access rights according to the target resource information includes:

[0017] According to the identification information of the terminal, the preset resource information configured for the terminal is obtained from the policy library;

[0018] If the target resource information belongs to the preset resource information, it is determined that the terminal has the corresponding access authority.

[0019] In one of the embodiments, obtaining preset resource information configured for the terminal from a policy library according to the identification information of the terminal includes:

[0020] Determine the target user set to which the terminal belongs according to the identification information of the terminal;

[0021] A target policy set associated with the target user set is determined, and preset resource information corresponding to the target policy set is obtained from the policy library.

[0022] In one embodiment, before receiving a domain name system DNS request sent by a terminal based on a first domain name of an edge cloud server, the method further includes:

[0023] Receive the reversible DNS code sent by the edge cloud orchestrator;

[0024] Determining identification information of a terminal configured with preset resource information according to the reversible DNS code;

[0025] The identification information of the terminal and the first domain name of the edge cloud server are sent to the local DNS server.

[0026] In a second aspect, the present application provides a domain name resolution method, applied to a terminal, comprising:

[0027] Receive the first domain name of the edge cloud server sent by the local DNS server;

[0028] Generate a DNS request according to the second domain name and target resource information requested by the terminal;

[0029] Based on the first domain name, send a DNS request to the edge cloud server;

[0030] Receive a domain name resolution result corresponding to the second domain name; wherein the domain name resolution result is sent to the terminal through the local DNS server when the edge cloud server determines that the terminal has corresponding access rights based on the target resource information in the DNS request.

[0031] In one embodiment, generating a DNS request according to the second domain name and target resource information requested by the terminal includes:

[0032] Generate access path information of the terminal according to the identification information of the terminal and the target resource information requested by the terminal to access;

[0033] A DNS request is generated according to the second domain name requested to be accessed by the terminal and the access path information of the terminal.

[0034] In one embodiment, before generating a DNS request according to the second domain name and target resource information requested by the terminal, the method further includes:

[0035] Receive the digital certificate of the edge cloud server sent by the local DNS server;

[0036] Extract the corresponding public key from the digital certificate of the edge cloud server;

[0037] Correspondingly, generating a DNS request according to the second domain name requested to be accessed by the terminal and the access path information of the terminal includes:

[0038] Generate an initial DNS request according to the second domain name requested to be accessed by the terminal and the access path information of the terminal;

[0039] The initial DNS request is encrypted using the public key to obtain an encrypted DNS request.

[0040] In one of the embodiments, the identification information of the terminal is used for the edge cloud server to determine whether there is a local resolution record corresponding to the terminal; the domain name resolution result corresponding to the second domain name is determined and sent to the terminal by the local DNS server based on the resolution indication information sent by the edge cloud server when there is a local resolution record corresponding to the terminal, or when there is no local resolution record corresponding to the terminal, the local DNS server forwards the domain name resolution result sent by the edge cloud server to the terminal.

[0041] In a third aspect, the present application also provides a domain name resolution device, which is configured on an edge cloud server and includes:

[0042] A request receiving module, used to receive a DNS request sent by a terminal based on a first domain name of an edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal;

[0043] An information determination module, used to determine the second domain name and target resource information requested by the terminal to access according to the DNS request;

[0044] The result sending module is used to send the domain name resolution result corresponding to the second domain name to the terminal through the local DNS server when it is determined that the terminal has the corresponding access authority according to the target resource information.

[0045] In a fourth aspect, the present application further provides a domain name resolution device, which is configured in a terminal and includes:

[0046] A domain name receiving module, used to receive the first domain name of the edge cloud server sent by the local DNS server;

[0047] A request generation module, used to generate a DNS request according to the second domain name and target resource information requested by the terminal;

[0048] A request sending module, used to send a DNS request to the edge cloud server based on the first domain name;

[0049] The result receiving module is used to receive the domain name resolution result corresponding to the second domain name; wherein the domain name resolution result is sent to the terminal through the local DNS server when the edge cloud server determines that the terminal has corresponding access rights based on the target resource information in the DNS request.

[0050] In a fifth aspect, the present application further provides a communication device, comprising: a transmitter, a receiver, a processor and a memory, wherein the memory stores a computer program;

[0051] The receiver is used to receive a DNS request sent by the terminal based on a first domain name of the edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal;

[0052] The processor is used to execute a computer program to determine the second domain name and target resource information requested by the terminal to access according to the DNS request;

[0053] The transmitter is used to send the domain name resolution result corresponding to the second domain name to the terminal through the local DNS server when it is determined that the terminal has the corresponding access rights according to the target resource information.

[0054] In a sixth aspect, the present application further provides a communication device, comprising: a transmitter, a receiver, a processor and a memory, wherein the memory stores a computer program;

[0055] The receiver is used to receive the first domain name of the edge cloud server sent by the local DNS server;

[0056] The processor is used to execute a computer program to generate a DNS request according to the second domain name and target resource information requested to be accessed by the terminal;

[0057] The sender is used to send a DNS request to the edge cloud server based on the first domain name;

[0058] The receiver is also used to receive a domain name resolution result corresponding to the second domain name; wherein the domain name resolution result is sent to the terminal through the local DNS server when the edge cloud server determines that the terminal has corresponding access rights based on the target resource information in the DNS request.

[0059] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the first aspect or the second aspect when the computer program is executed by a processor.

[0060] In an eighth aspect, the present application further provides a computer program product, comprising a computer program, which implements the steps of the first aspect or the second aspect when executed by a processor.

[0061] In the above-mentioned domain name resolution method, apparatus, communication equipment, storage medium and product, the edge cloud server receives a DNS request sent by the terminal based on the first domain name of the edge cloud server; wherein the first domain name is obtained from the local DNS server corresponding to the terminal; according to the DNS request, the second domain name and target resource information requested by the terminal are determined; when it is determined according to the target resource information that the terminal has the corresponding access rights, the domain name resolution result corresponding to the second domain name is sent to the terminal through the local DNS server. The present application deploys an edge cloud server nearby to provide a domain name resolution service for the terminal. Compared with the recursive query method in the prior art, the present application can simplify the domain name resolution process and effectively reduce latency; in addition, the edge cloud server can identify the access rights of the terminal based on the target resource information, thereby performing differentiated control on the domain name resolution process of different terminals, and providing a safer and more flexible domain name resolution service. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0063] Figure 1 A diagram of an application environment of a domain name resolution method in an embodiment;

[0064] Figure 2 A flowchart of a domain name resolution method applied to an edge cloud server in one embodiment;

[0065] Figure 3 A schematic diagram of a process for determining target resource information requested to be accessed by a terminal in one embodiment;

[0066] Figure 4 A schematic diagram of a process of sending a domain name resolution result to a terminal in one embodiment;

[0067] Figure 5 is a schematic diagram of a process of sending a first domain name to a local DNS server in one embodiment;

[0068] Figure 6 A schematic diagram of a flow chart of a domain name resolution method applied to a terminal in one embodiment;

[0069] Figure 7 A flowchart of a domain name resolution method applied to an edge cloud server in another embodiment;

[0070] Figure 8 It is a structural block diagram of a domain name resolution device configured in an edge cloud server in one embodiment;

[0071] Fig. 9 It is a structural block diagram of a domain name resolution device configured in an edge cloud server in another embodiment;

[0072] Fig.10 It is a structural block diagram of a domain name resolution device configured in an edge cloud server in another embodiment;

[0073] Fig.11 is a structural block diagram of a domain name resolution device configured in a terminal in one embodiment;

[0074] Fig.12 is a structural block diagram of a domain name resolution device configured in a terminal in another embodiment;

[0075] Fig.13 An internal structure diagram of a computer device for implementing a domain name resolution method in one embodiment;

[0076] Fig.14 The internal structure diagram of a computer device for implementing a domain name resolution method in another embodiment. DETAILED DESCRIPTION

[0077] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0078] The domain name resolution method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal is assigned a corresponding local DNS server, and the terminal can communicate with the local DNS server through the network to obtain the first domain name of the corresponding edge cloud server from the local DNS server. The edge cloud server is deployed based on the edge cloud SaaS (Software as a Service) environment, specifically manifested as an edge cloud resolution instance in the edge cloud SaaS environment, and can interact with the edge cloud orchestrator, policy library, reversible DNS (rDNS, reverseDNS) maintenance library on the same or different servers, and the customized interface of the domain name resolution service for data.

[0079] Among them, the reversible DNS maintenance library is used to publish the public code of the reversible DNS function and maintain the customized function version of the user. The reversible DNS functions customized by different users are compiled, interpreted and executed in the reversible DNS maintenance library, so as to ensure that the domain name resolution process corresponding to each user's terminal runs normally. The customization interface can provide the user login function and set the domain name resolution function of the edge cloud server. Specifically, the environment variables of the edge cloud server can be customized, such as the policy library URL (Uniform Resource Locator), server URL, cache TTL (Time To Live), policy download delay, log level and response timeout parameters. The customization interface can also customize the geographical distribution range, performance billing options, user sets, customized domain names and authentication modes of the edge cloud server, which can be achieved through the API (Application Programming Interface).

[0080] After the terminal obtains the first domain name of the corresponding edge cloud server, it can send a DNS request to the edge cloud server based on the first domain name of the edge cloud server. Correspondingly, the edge cloud server receives the DNS request, resolves it to obtain the second domain name and target resource information requested by the terminal, and identifies whether the terminal has the corresponding access rights based on the target resource information. If the terminal has the corresponding access rights, the edge cloud server sends the domain name resolution result to the local DNS server corresponding to the terminal, so that the local DNS server forwards the domain name resolution result to the terminal, completing the domain name resolution process.

[0081] The terminals may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0082] In the current domain name resolution system, access devices such as gateways, BAS (Broadband Access Server / Broadband Remote Access Server) or SMF (Session Management Function) automatically allocate public service domain name DNS resolver addresses to terminals through protocols such as DHCP (Dynamic Host Configuration Protocol) and SLAAC (Stateless Address Autoconfiguration). The terminal initiates a domain name query request to the obtained DNS resolver. In the absence of local cache records, the DNS resolver recursively queries the root server (or root server mirror), top-level domain name (TLD) server and domain name server for the address of the resource.

[0083] The existing technology is implemented through ECS (EDNS Client Subnet, extended DNS) source address discrimination, which cannot take into account factors such as cross-network and user customization. Therefore, the resolution result is passively optimized according to the source address, and it is difficult to distinguish and implement the differentiated and customized domain name resolution needs of user groups of different terminals; at the same time, domain name resolution shares resources with public network DNS servers, and it is impossible to use isolated resources to respond to the terminal's domain name resolution request, affecting the stability of the public DNS platform; in addition, the deployment process of the above domain name resolution is complicated, based on the public service model, and has low flexibility; when the user needs to encrypt the DNS request, the ECS field cannot be obtained for domain name resolution.

[0084] The method of managing domain name access control permissions through browser plug-ins has a small application scope, high management difficulty, and there is also the problem of privacy leakage.

[0085] To solve the above technical problems, in an exemplary embodiment, Figure 2 As shown, a domain name resolution method is provided, which is applied to Figure 1The edge cloud server in the example is used to illustrate, including:

[0086] S201, receiving a DNS request sent by a terminal based on a first domain name of an edge cloud server.

[0087] The local DNS server is a local domain name server pre-assigned to the terminal, which may be automatically assigned by the terminal or assigned by the operator, and this embodiment does not limit this. For example, the local DNS server may be an intranet server in a scenario such as an enterprise or a school.

[0088] The edge cloud server is an edge cloud resolution instance deployed based on the edge cloud SaaS environment. A new edge cloud SaaS environment is built in the metropolitan area network, and then a user instance, namely the edge cloud server, is built.

[0089] The terminal first obtains the first domain name of the corresponding edge cloud server, and then sends a DNS request to the corresponding edge cloud server based on the first domain name. The first domain name can be obtained from the local DNS server corresponding to the terminal.

[0090] Exemplarily, when a user uses a terminal to access the network, such as accessing any Web (World wideweb, global wide area network) website through a browser, the terminal first sends a domain name acquisition request to the local DNS server to instruct the local DNS server to feedback the first domain name of the edge cloud server corresponding to the terminal to the terminal. Optionally, the domain name acquisition request can also be a DNS request. Then the terminal sends a subsequent DNS request to the corresponding edge cloud server based on the first domain name. Correspondingly, the edge cloud server receives the DNS request sent by the terminal.

[0091] S202: Determine, according to the DNS request, the second domain name and target resource information that the terminal requests to access.

[0092] The edge cloud server parses the DNS request to obtain the second domain name requested by the terminal and the target resource information requested by the terminal. The second domain name and the target resource information may be carried in the DNS request, or a suffix part may be added to the original DNS request and then carried in the suffix part of the DNS request.

[0093] Exemplarily, when a terminal accesses a Web site, the second domain name requested to be accessed is the domain name of the Web site, and the target resource information includes but is not limited to URL information of website resources in the Web site.

[0094] S203: When it is determined according to the target resource information that the terminal has the corresponding access right, a domain name resolution result corresponding to the second domain name is sent to the terminal through the local DNS server.

[0095] The edge cloud server identifies the terminal identity according to the terminal identification information in the target resource information, and can determine whether the terminal has the corresponding access rights. The terminal corresponding access rights may include the terminal's access rights to the second domain name, the terminal's access rights to network resources such as website resources, and the terminal's own network access rights.

[0096] When it is determined that the terminal has the corresponding access rights, the edge cloud server provides a domain name resolution service for the terminal, and sends the domain name resolution result of the second domain name to the terminal through the local DNS server corresponding to the terminal to complete the domain name resolution process.

[0097] Optionally, the edge cloud server determines, based on the target resource information, that the terminal has access rights corresponding to the second domain name, such as access rights to a Web site, and determines that the terminal does not have access rights to some of the website resources, such as access rights to website advertisements. Therefore, the edge cloud server can send the domain name resolution result corresponding to the second domain name to the terminal through the local DNS server, and provide advertisement filtering services for the terminal.

[0098] Optionally, when it is determined based on the target resource information that the terminal does not have the corresponding access rights, the domain name resolution service may be directly refused to be provided to the terminal, that is, the domain name resolution result is not returned, or an error message is returned, and further resolution is prohibited.

[0099] In the above domain name resolution method, the edge cloud server receives a DNS request sent by the terminal based on the first domain name of the edge cloud server; wherein the first domain name is obtained from the local DNS server corresponding to the terminal; according to the DNS request, the second domain name and target resource information requested by the terminal are determined; when it is determined according to the target resource information that the terminal has the corresponding access rights, the domain name resolution result corresponding to the second domain name is sent to the terminal through the local DNS server. This embodiment deploys an edge cloud server nearby to provide domain name resolution services for the terminal. Compared with the recursive query method in the prior art, this embodiment can effectively reduce the delay in the domain name resolution process; in addition, the edge cloud server can identify the access rights of the terminal based on the target resource information, thereby performing differentiated control on the domain name resolution process of different terminals, and providing a safer and more flexible domain name resolution service.

[0100] In an exemplary embodiment, Figure 3 As shown, the above S202 includes:

[0101] S301, decrypt the DNS request to obtain the second domain name requested to be accessed by the terminal and the access path information of the terminal.

[0102] The DNS request received by the edge cloud server can be an encrypted DNS request, such as a DNS message encrypted using DoH (DNS over HTTPS). DoH encryption uses HTTPS (Hypertext Transfer Protocol Secure) to transmit DNS messages to prevent eavesdropping by intermediate users and privacy leaks.

[0103] Exemplarily, the edge cloud server receives the DNS request sent by the terminal through the DoH server, decrypts the DNS request, and obtains the second domain name requested by the terminal and the access path information of the terminal. Among them, the access path information of the terminal can be carried after the second domain name. Generally, the second domain name requested to be accessed is represented as "www.xx.com", and the access path information of the terminal includes the uri / url path of the terminal, which can be used to characterize the identification information of the terminal, represented as "company1.com / c1xda". Among them, "c1" identifies a specific policy set.

[0104] Optionally, the local DNS server receives the digital certificate of the edge cloud server issued by the edge cloud orchestrator, and sends the digital certificate to the terminal, so that the terminal extracts the public key corresponding to the edge cloud server from the digital certificate, and then uses the public key to encrypt the DNS request.

[0105] Among them, using the public key to encrypt the DNS request includes: encrypting the terminal's one-time PIN (Personal identification number) to form a new URI (uniform resource identifier) ​​field in the terminal's access path information in the DNS request. The terminal's access path information can be expressed as "company1.com / c1xda / user_encrypt_id_sneoxlsnes".

[0106] Correspondingly, the edge cloud server receives the digital certificate issued by the edge cloud orchestrator, and decrypts the encrypted DNS request sent by the terminal through the private key corresponding to the digital certificate to obtain the second domain name requested by the terminal and the access path information of the terminal.

[0107] Optionally, the terminal's unique fingerprint encryption information is integrated in the URI. The fingerprint encryption information can be implemented by a fingerprint encryption algorithm such as MD5 (Message-Digest algorithm 5). If the fingerprint encryption information verification fails, the domain name resolution result is refused to be provided to the terminal.

[0108] Optionally, the edge cloud server decrypts the double-encrypted DNS request, sends it to the corresponding user authentication website for terminal identity recognition, and receives the recognition result fed back by the user authentication website.

[0109] S302: Parse the access path information of the terminal to obtain the identification information of the terminal and the target resource information requested to be accessed by the terminal.

[0110] Furthermore, the edge cloud server parses the decrypted access path information of the terminal, such as parsing "company1.com / c1xda", to obtain the target resource information requested by the terminal and the identification information of the terminal.

[0111] For example, when a terminal accesses a Web site, the second domain name requested for access carries the terminal's access path information, which can be parsed to determine the terminal's identification information and the target resource information that the terminal requests to access. It is understandable that the terminal's identification information can be used by the edge cloud server to identify the terminal's identity, and then determine whether the terminal has the corresponding access rights to the second domain name and the target resource information, such as whether it has the access rights to the work-related entertainment video website corresponding to the second domain name, the access rights to the spam relay domain name corresponding to the second domain name, or whether it has the access rights to network resources such as advertising pop-up pages corresponding to the target resource information.

[0112] In this embodiment, the second domain name requested by the terminal and the access path information of the terminal are obtained by decrypting the DNS request, and then the access path information of the terminal is parsed to obtain the identification information of the terminal and the target resource information requested by the terminal. This embodiment provides a method for transmitting DNS messages between a terminal and an edge cloud server, and for the edge cloud server to decrypt, which can ensure the security and reliability of DNS message transmission, accurately decrypt the DNS request sent by the terminal, so that the edge cloud server can accurately obtain the identification information of the newly added terminal and the target resource information requested by the terminal, thereby improving the accuracy of subsequent determination of the access rights of the terminal.

[0113] In an exemplary embodiment, Figure 4 As shown, the above S203 includes:

[0114] S401: Determine whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal.

[0115] The policy library is used to store various domain name resolution policy sets, and different policy sets form different policy groups. The policy library can also be used to store local resolution records of different terminals on the edge cloud server. The policy library can be deployed on the edge cloud server or on other servers associated with the edge cloud server, which is not limited in this embodiment.

[0116] In the case where the edge cloud server has provided a domain name resolution service corresponding to the second domain name to the terminal, the corresponding local resolution record is stored in the policy library corresponding to the edge cloud server. Therefore, after determining the identification information of the terminal, the edge cloud server first determines from the policy library whether there is a local resolution record of the terminal in the edge cloud server.

[0117] Exemplarily, the edge cloud server sends a resolution record query request carrying the terminal's identification information to the server where the policy library is located, so that the server where the policy library is located queries the corresponding local resolution record based on the terminal's identification information, and then feeds back the query result to the edge cloud server.

[0118] Optionally, the edge cloud server directly determines whether there is a corresponding local resolution record based on the identification information of the terminal, without initiating a corresponding request to the policy library.

[0119] If it exists, execute S402; if it does not exist, execute S403.

[0120] S402: Send resolution instruction information to the local DNS server to instruct the local DNS server to determine a domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal.

[0121] The existence of the corresponding local resolution record is identified, indicating that the terminal has accessed the second domain name, and thus the terminal has the corresponding access rights, and the local DNS server (ie, the intranet server) is directly used to provide the domain name resolution service for the terminal.

[0122] Specifically, the edge cloud server sends resolution indication information to the local DNS server corresponding to the terminal; wherein the resolution indication information is used to instruct the local DNS server to determine the domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal.

[0123] The domain name resolution result corresponding to the second domain name may be cached locally by the local DNS server in the previous domain name resolution process, or may be obtained by real-time resolution in this domain name resolution process.

[0124] S403: Send the domain name resolution result corresponding to the second domain name to the local DNS server, so that the local DNS server forwards the domain name resolution result to the terminal.

[0125] It is recognized that there is no corresponding local resolution record, which means that the terminal is likely to access the second domain name for the first time. Therefore, when it has been determined based on the target resource information that the terminal has the corresponding access rights, the edge cloud server provides a domain name resolution service for the terminal and sends the domain name resolution result corresponding to the second domain name to the local DNS server corresponding to the terminal, which then forwards it to the terminal by the local DNS server.

[0126] Specifically, the policy library includes a distributed high-speed domain name cache. When the cache misses (ie, there is no corresponding local resolution record), recursive resolution is used to recursively send the domain name resolution result to the terminal through the local DNS server.

[0127] Optionally, the user can require callback of the resolved domain names involved in all local DNS servers in the domain name resolution configuration or the policy library configuration, that is, the local DNS server is responsible for the actual resolution of all domain names related to itself, or require that the resolved domain names involved in all local DNS servers be actually resolved by the edge cloud server.

[0128] In this embodiment, on the basis of following the format and basic forwarding method of DNS resolution records, edge cloud processing resources are effectively utilized to improve the service quality and flexibility of secure domain name resolution services from the cloud network level, while improving the application deployment efficiency and scenario adaptability of secure resolution.

[0129] Specifically, when it has been determined that the terminal has the corresponding access rights, it is determined whether there is a corresponding local resolution record based on the terminal's identification information, and then different domain name resolution steps are taken, that is, the local DNS server performs the actual domain name resolution and feeds back to the terminal, or the edge cloud server performs the actual domain name resolution and forwards the terminal through the local DNS server. This can ensure the accuracy of the domain name resolution, and in the case of repeated domain name resolution, it can optimize the domain name resolution process, shorten the domain name resolution delay, and provide the terminal with a more efficient domain name resolution service.

[0130] As an optional implementation in this embodiment, the local DNS server and the edge cloud server can automatically switch the object that actually performs domain name resolution. For example, when the edge cloud server fails, it automatically switches to the local DNS server for domain name resolution; when the local DNS server fails, in the case of a pre-established intranet resolution mapping table, the mapped edge cloud server automatically takes over the resolution task; when the edge cloud server or the local DNS server has insufficient performance, the two perform load balancing on the domain name resolution initiated by the terminal.

[0131] Optionally, by configuring the domain name resolution object through a custom interface, you can smoothly migrate between the local DNS server and the edge cloud server, and automatically distribute and deploy the domain name resolution function. For example, when a remote user accesses an intranet domain name through a VPN (Virtual Private Network), the resolution speed of the local DNS server is higher than that of the edge cloud server, and you can switch to the local DNS server to determine the domain name resolution result.

[0132] In an exemplary embodiment, the domain name resolution method further includes: acquiring preset resource information configured for the terminal from a policy library according to identification information of the terminal; if the target resource information belongs to the preset resource information, determining that the terminal has corresponding access rights.

[0133] The domain name resolution service in this embodiment is pre-configured with preset resource information for different terminals. The preset resource information is used to represent the access rights of the terminal to different domain names and / or network resources.

[0134] Optionally, the network service provider provides different domain name resolution services for users of different terminals. For example, based on user needs, the network service provider provides specific domain name resolution services for users who use the enterprise intranet through terminals. The domain name resolution service is implemented by configuring preset resource information, so that these users cannot access entertainment video websites unrelated to work through the terminals.

[0135] In actual applications, network service providers can provide different domain name resolution services for users to choose from. Different domain name resolution services have different preset resource information configured for terminals. Network service providers can also provide users with custom interfaces for domain name resolution services, allowing users to create projects and grant edge cloud servers access to domain name resolution codes, so that domain name resolution codes can be configured with parameters in the cloud and automatically compiled, completing user custom configuration of different functions in domain name resolution services.

[0136] It should be noted that the access permission control function in this embodiment includes but is not limited to filtering advertisements, filtering domain name resolutions that are not related to the main business, and distinguishing and managing the access control permissions of domain names of different departments.

[0137] Optionally, the identification information of the terminal is associated with the identification information of the preset resource information configured for the terminal and stored in the edge cloud server. The edge cloud server determines the identification information of the preset resource information configured for the terminal based on the identification information of the terminal, and then obtains the preset resource information configured for the terminal from the policy library based on the identification information of the preset resource information configured for the terminal.

[0138] Exemplarily, the edge cloud server sends identification information of preset resource information configured for the terminal to the server where the policy library is located, so that the server where the policy library is located can retrieve the preset resource information configured for the terminal from the policy library.

[0139] Optionally, the target user set to which the terminal belongs is determined according to the identification information of the terminal; a target policy set associated with the target user set is determined, and preset resource information corresponding to the target policy set is acquired from a policy library.

[0140] The same user set enjoys the same domain name resolution service. The user set can be bound to the policy set. One user set can correspond to multiple policy sets. Multiple fixed policy sets form a policy group, so as to provide the same policy group for the terminals of the same user set. The policy set can specifically correspond to various types of access control, such as advertising filtering, secure search, privacy control list, and third-party trusted resolution classification source.

[0141] Exemplarily, there are at least public policy sets A1, A2 and A3, and custom policy sets B1 and B2, and the policy groups formed include but are not limited to C1=A1+A3, C2=A1+B2 and C3=B1+B2. Correspondingly, there are at least three user sets Z1, Z2 and Z3. Among them, user set Z1 corresponds to policy group C1, user set Z2 corresponds to policy group C2, and user set Z3 corresponds to policy group C3.

[0142] According to the identification information of the terminal, it is determined that the target user set to which the terminal belongs is Z1, and thus the target policy group associated with the target user set Z1 is determined to be C1. The target policy set associated with the target user set Z1 includes A1 and A3, and then the preset resource information corresponding to A1 and A3 is obtained from the policy library.

[0143] Furthermore, the edge cloud server compares the target resource information requested by the terminal with the preset resource information configured for the terminal; if the target resource information belongs to the preset resource information, it is determined that the terminal has full access rights to the target resource information; if the target resource information does not belong to the preset resource information, it is determined that the terminal does not have full access rights to the target resource information; if part of the target resource information belongs to the preset resource information, it is determined that the terminal has partial access rights to the target resource information.

[0144] In this embodiment, a policy entry mechanism based on a hierarchical structure is provided, which distinguishes and merges policy sets and identifies specified terminals by extending domain name URIs, and provides domain name resolution services such as on-demand scaling, as well as flexible billing functions based on indicators such as traffic, requests, and calculation time. Specifically, by pre-configuring preset resource information for the terminal, declaring which network resources the terminal has corresponding access rights to, and then comparing the target resource information requested by the terminal with the preset resource information, it is identified whether the terminal has the corresponding access rights in this domain name resolution process, and whether to provide the terminal with a domain name resolution result. Since different terminals can customize different preset resource information, the edge cloud server can make corresponding responses to DNS requests for domain name resolution of different terminals, perform differentiated control on the domain name resolution processes of different terminals, and provide safer and more flexible domain name resolution services.

[0145] In an exemplary embodiment, Figure 5 As shown, the above domain name resolution method also includes:

[0146] S501, receiving a reversible DNS code sent by an edge cloud orchestrator.

[0147] The edge cloud orchestrator is used to debug and release the code involved in the edge cloud SaaS environment, and allocate resources such as the CPU (Central Processing Unit), memory, bandwidth, address, and storage of the edge cloud server. The edge cloud orchestrator can manage the domain name resolution function of multiple edge cloud servers at the same time, and send the reversible DNS code (i.e., domain name resolution code) required for the domain name resolution function to each edge cloud server through DCI (Digital Copyright Identifier) ​​or the network.

[0148] Correspondingly, the edge cloud server receives the reversible DNS code sent by the edge cloud orchestrator.

[0149] It should be noted that the deployment of edge cloud servers does not involve the management of the file system, underlying OS (Operating System), network exits and addresses. It only requires the implementation and modification of the reversible DNS code to encrypt and protect the access process in the terminal's domain name resolution process, and gradually and smoothly migrate the terminal's domain name resolution service to the edge cloud server as needed.

[0150] S502: Determine identification information of a terminal configured with preset resource information according to the reversible DNS code.

[0151] The terminal is configured with preset resource information by selecting the type of domain name resolution service provided by the network service provider, or by customizing the required domain name resolution service through the custom interface of the domain name resolution service. The edge cloud orchestrator sends the reversible DNS code to the edge cloud server, providing the edge cloud server with a domain name resolution function. Therefore, the edge cloud server can identify the terminal that has been configured with preset resource information based on the reversible DNS code and determine the terminal's identification information.

[0152] S503: Send the identification information of the terminal and the first domain name of the edge cloud server to the local DNS server.

[0153] Before the terminal initiates domain name resolution, the edge cloud server sends the terminal's identification information and its own first domain name to the corresponding local DNS server synchronously or asynchronously to notify the terminals configured with preset resource information in the area to which each local DNS server belongs, as well as the edge cloud servers corresponding to each terminal, so that when each local DNS server receives a request from the terminal, it can send the first domain name of the edge cloud server corresponding to the terminal to the terminal.

[0154] Exemplarily, the terminal's identification information and the first domain name of the edge cloud server are pushed to the custom domain name resolution setting of the terminal browser through APP (Application, mobile application service), so that the terminal can access the edge cloud server deployed by the edge cloud nearby and apply the corresponding policy set or policy group.

[0155] In this embodiment, the edge cloud server's domain name resolution scheduling is realized by coordinating the configuration and deployment of edge cloud computing power. Under the premise of safety and controllability, the domain name resolution service is encapsulated as a basic capability, and the edge cloud server is quickly deployed and responded to nearby. The reversible DNS instances when different terminals perform domain name resolution are isolated from each other, but the physical layer resources are reused; the edge cloud server can be deployed incrementally, allowing resolution callback, load balancing and failure redundancy, which can improve the performance and availability of the local DNS server, allow the key business of users of different terminals to be gradually disassembled, and migrate from private cloud to public cloud hybrid cloud.

[0156] Specifically, before the terminal initiates domain name resolution, the terminal's identification information and the first domain name of the edge cloud server corresponding to the terminal are sent to the local DNS server corresponding to the terminal, so that the local DNS server can guide the domain name resolution of the terminal, ensure the stability and reliability of the domain name resolution process, and execute the domain name resolution process more efficiently in a distributed edge cloud environment.

[0157] In an exemplary embodiment, Figure 6 As shown, a domain name resolution method is provided, which is applied to Figure 1The following is an example of a terminal in the example, including:

[0158] S601, receiving a first domain name of an edge cloud server sent by a local DNS server.

[0159] S602: Generate a DNS request according to the second domain name and target resource information requested by the terminal.

[0160] S603: Send a DNS request to the edge cloud server based on the first domain name.

[0161] S604: Receive a domain name resolution result corresponding to the second domain name.

[0162] The domain name resolution result is sent to the terminal through the local DNS server when the edge cloud server determines that the terminal has the corresponding access rights based on the target resource information in the DNS request.

[0163] In the above domain name resolution method, the terminal receives the first domain name of the edge cloud server sent by the local DNS server, generates a DNS request based on the second domain name and target resource information requested by the terminal, sends a DNS request to the edge cloud server based on the first domain name, and receives the domain name resolution result corresponding to the second domain name. This embodiment deploys the edge cloud server nearby to provide domain name resolution services for the terminal. Compared with the recursive query method in the prior art, this embodiment can effectively reduce the delay in the domain name resolution process; in addition, the edge cloud server can identify the access rights of the terminal based on the target resource information, thereby performing differentiated control on the domain name resolution process of different terminals, and providing a safer and more flexible domain name resolution service.

[0164] In an exemplary embodiment, the above S602 includes: generating access path information of the terminal according to identification information of the terminal and target resource information requested by the terminal to access; generating a DNS request according to the second domain name requested by the terminal to access and the access path information of the terminal.

[0165] Optionally, the identification information of the terminal is used for the edge cloud server to determine whether there is a local resolution record corresponding to the terminal; the domain name resolution result corresponding to the second domain name is determined by the local DNS server based on the resolution indication information sent by the edge cloud server and sent to the terminal if there is a local resolution record corresponding to the terminal, or if there is no local resolution record corresponding to the terminal, the local DNS server forwards the domain name resolution result sent by the edge cloud server to the terminal.

[0166] In this embodiment, a method for generating and encrypting a DNS request is provided, which can ensure the security and reliability of DNS message transmission, so that the edge cloud server can accurately obtain the identification information of the newly added terminal and the target resource information requested by the terminal, thereby improving the accuracy of the subsequent edge cloud server's determination of the access rights of the terminal.

[0167] In an exemplary embodiment, the above-mentioned domain name resolution method also includes: receiving a digital certificate of an edge cloud server sent by a local DNS server; and extracting a corresponding public key from the digital certificate of the edge cloud server.

[0168] Among them, the local DNS server can receive the digital certificate of the edge cloud server sent by the edge cloud server, and then forward it to the corresponding terminal, so that the corresponding terminal can extract the corresponding public key from the digital certificate.

[0169] Correspondingly, an initial DNS request can be generated according to the second domain name requested to be accessed by the terminal and the access path information of the terminal; the initial DNS request is encrypted using a public key to obtain an encrypted DNS request.

[0170] After generating the initial DNS request, the terminal uses the public key corresponding to the edge cloud server to encrypt the initial DNS request to obtain the encrypted DNS request. Correspondingly, the edge cloud server has the corresponding private key and can decrypt the encrypted DNS request.

[0171] It should be noted that the encrypted DNS request can be sent to the edge cloud server via DoH encryption to achieve secondary encryption of the DNS message.

[0172] In this embodiment, before the terminal initiates domain name resolution, the local DNS server provides it with the encryption method corresponding to the edge cloud server, so that when the terminal initiates domain name resolution, the DNS request is encrypted using the corresponding encryption method, and then the edge cloud server completes the corresponding decryption, thereby improving the security of DNS request transmission and ensuring the security of domain name resolution.

[0173] In an exemplary embodiment, Figure 7 As shown, a domain name resolution method is provided, including:

[0174] S701, receiving a reversible DNS code sent by an edge cloud orchestrator.

[0175] S702: Determine identification information of a terminal configured with preset resource information according to the reversible DNS code.

[0176] S703: Send the identification information of the terminal and the first domain name of the edge cloud server to the local DNS server.

[0177] S704: Receive a domain name system DNS request sent by the terminal based on the first domain name of the edge cloud server.

[0178] The first domain name is obtained from a local DNS server corresponding to the terminal.

[0179] S705: Decrypt the DNS request to obtain the second domain name requested to be accessed by the terminal and access path information of the terminal.

[0180] S706: Parse the access path information of the terminal to obtain identification information of the terminal and information of the target resource that the terminal requests to access.

[0181] S707: Determine the target user set to which the terminal belongs according to the identification information of the terminal.

[0182] S708: Determine a target policy set associated with the target user set, and obtain preset resource information corresponding to the target policy set from a policy library.

[0183] S709: Determine whether the target resource information belongs to preset resource information.

[0184] If yes, execute S710; if no, execute S714.

[0185] S710: Determine whether the terminal has corresponding access rights.

[0186] S711, determining whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal.

[0187] If it exists, execute S712; if it does not exist, execute S713.

[0188] S712, sending resolution instruction information to the local DNS server.

[0189] The resolution indication information is used to instruct the local DNS server to determine a domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal.

[0190] S713: Send the domain name resolution result corresponding to the second domain name to the local DNS server, so that the local DNS server forwards the domain name resolution result to the terminal.

[0191] S714, determining that the terminal does not have the corresponding access rights, and rejecting the domain name resolution.

[0192] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0193] Based on the same inventive concept, the embodiment of the present application also provides a domain name resolution device for implementing the domain name resolution method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more domain name resolution device embodiments provided below can refer to the limitations on the domain name resolution method above, and will not be repeated here.

[0194] In an exemplary embodiment, Figure 8 As shown, a domain name resolution device 1 is provided, comprising: a request receiving module 10, an information determining module 20 and a result sending module 30, wherein:

[0195] The request receiving module 10 is used to receive a DNS request sent by a terminal based on a first domain name of an edge cloud server.

[0196] The first domain name is obtained from a local DNS server corresponding to the terminal.

[0197] The information determination module 20 is used to determine the second domain name and target resource information requested by the terminal according to the DNS request.

[0198] The result sending module 30 is used to send the domain name resolution result corresponding to the second domain name to the terminal through the local DNS server when it is determined that the terminal has the corresponding access authority according to the target resource information.

[0199] In an exemplary embodiment, Figure 8 On the basis of Fig. 9 As shown, the above-mentioned information determination module 20 includes:

[0200] The request decryption unit 21 is used to decrypt the DNS request to obtain the second domain name requested to be accessed by the terminal and the access path information of the terminal.

[0201] The information parsing unit 22 is used to parse the access path information of the terminal to obtain the identification information of the terminal and the target resource information requested to be accessed by the terminal.

[0202] In an exemplary embodiment, Figure 8 On the basis of Fig.10 As shown, the above-mentioned result sending module 30 includes:

[0203] The record query unit 31 is used to determine whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal.

[0204] The result sending unit 32 is used to send resolution indication information to the local DNS server when there is a corresponding local resolution record, and to send the domain name resolution result corresponding to the second domain name to the local DNS server when there is no corresponding local resolution record, so that the local DNS server forwards the domain name resolution result to the terminal.

[0205] The resolution indication information is used to instruct the local DNS server to determine a domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal.

[0206] In an exemplary embodiment, the result sending module 30 further includes:

[0207] The configuration query unit is used to obtain preset resource information configured for the terminal from the policy library according to the identification information of the terminal.

[0208] The authority determination unit is used to determine whether the terminal has corresponding access authority when the target resource information belongs to the preset resource information.

[0209] In an exemplary embodiment, the configuration query unit includes:

[0210] The user set determination subunit is used to determine the target user set to which the terminal belongs according to the identification information of the terminal.

[0211] The configuration acquisition subunit is used to determine a target policy set associated with a target user set, and to acquire preset resource information corresponding to the target policy set from a policy library.

[0212] In an exemplary embodiment, the domain name query device further includes:

[0213] The code receiving module is used to receive the reversible DNS code sent by the edge cloud orchestrator.

[0214] The identification determination module is used to determine the identification information of the terminal configured with preset resource information according to the reversible DNS code.

[0215] The domain name sending module is used to send the identification information of the terminal and the first domain name of the edge cloud server to the local DNS server.

[0216] In an exemplary embodiment, Fig.11 As shown, a domain name resolution device 2 is provided, comprising: a domain name receiving module 40, a request generating module 50, a request sending module 60 and a result receiving module 70, wherein:

[0217] The domain name receiving module 40 is used to receive the first domain name of the edge cloud server sent by the local DNS server.

[0218] The request generating module 50 is used to generate a DNS request according to the second domain name and target resource information requested to be accessed by the terminal.

[0219] The request sending module 60 is used to send a DNS request to the edge cloud server based on the first domain name.

[0220] The result receiving module 70 is used to receive the domain name resolution result corresponding to the second domain name.

[0221] The domain name resolution result is sent to the terminal through the local DNS server when the edge cloud server determines that the terminal has the corresponding access rights based on the target resource information in the DNS request.

[0222] In an exemplary embodiment, Fig.11 On the basis of Fig.12 As shown, the request generation module 50 includes:

[0223] The path generating unit 51 is used to generate access path information of the terminal according to the identification information of the terminal and the target resource information requested to be accessed by the terminal.

[0224] The request generating unit 52 is used to generate a DNS request according to the second domain name requested to be accessed by the terminal and the access path information of the terminal.

[0225] In an exemplary embodiment, the domain name query device 2 further includes:

[0226] The certificate receiving module is used to receive the digital certificate of the edge cloud server sent by the local DNS server.

[0227] The public key extraction module is used to extract the corresponding public key from the digital certificate of the edge cloud server.

[0228] Accordingly, the request generating unit 52 includes:

[0229] The first request generating subunit is used to generate an initial DNS request according to the second domain name requested to be accessed by the terminal and the access path information of the terminal.

[0230] The request encryption subunit is used to encrypt the initial DNS request with a public key to obtain an encrypted DNS request.

[0231] In an exemplary embodiment, the identification information of the terminal is used for the edge cloud server to determine whether there is a local resolution record corresponding to the terminal; the domain name resolution result corresponding to the second domain name is determined and sent to the terminal by the local DNS server based on the resolution indication information sent by the edge cloud server when there is a local resolution record corresponding to the terminal, or when there is no local resolution record corresponding to the terminal, the local DNS server forwards the domain name resolution result sent by the edge cloud server to the terminal.

[0232] Each module in the above-mentioned domain name resolution device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0233] In an exemplary embodiment, a computer device is provided, which may be deployed with an edge cloud server, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store user set and policy set data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a domain name resolution method is implemented.

[0234] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.14As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a domain name resolution method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0235] Those skilled in the art will understand that Fig.13 and 14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0236] In an exemplary embodiment, a communication device is provided, including: a transmitter, a receiver, a processor and a memory, wherein the memory stores a computer program; the receiver is used to receive a DNS request sent by a terminal based on a first domain name of an edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal; the processor is used to execute the computer program to determine, according to the DNS request, a second domain name and target resource information requested to be accessed by the terminal; the transmitter is used to send a domain name resolution result corresponding to the second domain name to the terminal through the local DNS server when it is determined that the terminal has corresponding access rights according to the target resource information.

[0237] In an exemplary embodiment, a communication device is provided, including: a transmitter, a receiver, a processor and a memory, wherein the memory stores a computer program; the receiver is used to receive a first domain name of an edge cloud server sent by a local DNS server; the processor is used to execute the computer program to generate a DNS request according to a second domain name and target resource information requested to be accessed by a terminal; the transmitter is used to send a DNS request to the edge cloud server based on the first domain name; the receiver is also used to receive a domain name resolution result corresponding to the second domain name; wherein the domain name resolution result is sent to the terminal through the local DNS server by the edge cloud server when it is determined that the terminal has corresponding access rights based on the target resource information in the DNS request.

[0238] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned domain name resolution method are implemented.

[0239] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the above-mentioned domain name resolution method when executed by a processor.

[0240] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0241] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0242] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A domain name resolution method, characterized in that: Applied to an edge cloud server, the method includes: Receiving a domain name system DNS request sent by a terminal based on a first domain name of the edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal; Decrypting the DNS request to obtain the second domain name requested by the terminal and the access path information of the terminal; parsing the access path information of the terminal to obtain the identification information of the terminal and the target resource information requested by the terminal; In the case where it is determined according to the target resource information that the terminal has the corresponding access right, determining whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal; If so, sending resolution indication information to the local DNS server; wherein the resolution indication information is used to instruct the local DNS server to determine the domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal; If not, the domain name resolution result corresponding to the second domain name is sent to the local DNS server, so that the local DNS server forwards the domain name resolution result to the terminal.

2. The method according to claim 1, characterized in that The determining, according to the target resource information, that the terminal has corresponding access rights includes: According to the identification information of the terminal, obtaining preset resource information configured for the terminal from a policy library; If the target resource information belongs to the preset resource information, it is determined that the terminal has the corresponding access authority.

3. The method according to claim 2, characterized in that The acquiring, from a policy library according to the identification information of the terminal, preset resource information configured for the terminal includes: Determining, according to the identification information of the terminal, a target user set to which the terminal belongs; A target policy set associated with the target user set is determined, and preset resource information corresponding to the target policy set is acquired from a policy library.

4. The method according to claim 1, characterized in that: Before the receiving terminal sends a domain name system DNS request based on the first domain name of the edge cloud server, the method further includes: Receive the reversible DNS code sent by the edge cloud orchestrator; Determining identification information of a terminal configured with preset resource information according to the reversible DNS code; The identification information of the terminal and the first domain name of the edge cloud server are sent to the local DNS server.

5. A domain name resolution method, characterized in that: Applied to a terminal, the method comprises: Receive the first domain name of the edge cloud server sent by the local DNS server; Generate access path information of the terminal according to the identification information of the terminal and the target resource information requested by the terminal to access, and generate a DNS request according to the second domain name requested by the terminal to access and the access path information of the terminal; Based on the first domain name, sending the DNS request to the edge cloud server; Receive a domain name resolution result corresponding to the second domain name; wherein, the domain name resolution result is sent to the terminal through the local DNS server when the edge cloud server determines that the terminal has corresponding access rights based on the target resource information in the DNS request; the identification information of the terminal is used for the edge cloud server to determine whether there is a local resolution record corresponding to the terminal; the domain name resolution result corresponding to the second domain name is determined and sent to the terminal by the local DNS server based on the resolution indication information sent by the edge cloud server when there is a local resolution record corresponding to the terminal, or is forwarded by the local DNS server to the terminal when there is no local resolution record corresponding to the terminal.

6. The method according to claim 5, characterized in that Before generating the access path information of the terminal according to the identification information of the terminal and the target resource information requested by the terminal to access, and generating the DNS request according to the second domain name requested by the terminal to access and the access path information of the terminal, the method further includes: Receive the digital certificate of the edge cloud server sent by the local DNS server; Extracting the corresponding public key from the digital certificate of the edge cloud server; Correspondingly, generating a DNS request according to the second domain name requested to be accessed by the terminal and the access path information of the terminal includes: Generate an initial DNS request according to the second domain name requested to be accessed by the terminal and the access path information of the terminal; The initial DNS request is encrypted using the public key to obtain an encrypted DNS request.

7. A domain name resolution device, characterized in that: Configured on an edge cloud server, the device includes: A request receiving module, used to receive a DNS request sent by a terminal based on a first domain name of the edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal; An information determination module, used to determine the second domain name and target resource information requested by the terminal to access according to the DNS request; the information determination module includes: a request decryption unit, used to decrypt the DNS request to obtain the second domain name requested by the terminal to access and the access path information of the terminal; an information parsing unit, used to parse the access path information of the terminal to obtain the identification information of the terminal and the target resource information requested by the terminal to access; A result sending module is used to send the domain name resolution result corresponding to the second domain name to the terminal through the local DNS server when it is determined that the terminal has the corresponding access rights according to the target resource information; the result sending module includes: a record query unit, which is used to determine whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal; a result sending unit is used to send resolution indication information to the local DNS server when there is a corresponding local resolution record, and send the domain name resolution result corresponding to the second domain name to the local DNS server when there is no corresponding local resolution record, so that the local DNS server forwards the domain name resolution result to the terminal; wherein the resolution indication information is used to instruct the local DNS server to determine the domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal.

8. A domain name resolution device, characterized in that: Configured in a terminal, the device includes: A domain name receiving module, used to receive the first domain name of the edge cloud server sent by the local DNS server; A request generation module, used to generate a DNS request according to the second domain name and target resource information requested by the terminal; the request generation module includes: a path generation unit, used to generate access path information of the terminal according to the identification information of the terminal and the target resource information requested by the terminal; a request generation unit, used to generate the DNS request according to the second domain name requested by the terminal and the access path information of the terminal; A request sending module, configured to send the DNS request to the edge cloud server based on the first domain name; A result receiving module is used to receive the domain name resolution result corresponding to the second domain name; wherein, the domain name resolution result is sent to the terminal through the local DNS server by the edge cloud server when the edge cloud server determines that the terminal has the corresponding access rights based on the target resource information in the DNS request; the identification information of the terminal is used for the edge cloud server to determine whether there is a local resolution record corresponding to the terminal; the domain name resolution result corresponding to the second domain name is determined and sent to the terminal by the local DNS server based on the resolution indication information sent by the edge cloud server when there is a local resolution record corresponding to the terminal, or when there is no local resolution record corresponding to the terminal, the local DNS server forwards the domain name resolution result sent by the edge cloud server to the terminal.

9. A communication device, characterized in that: include: a transmitter, a receiver, a processor and a memory, the memory storing a computer program; The receiver is used to receive a DNS request sent by a terminal based on a first domain name of an edge cloud server; wherein the first domain name is obtained from a local DNS server corresponding to the terminal; The processor is used to execute the computer program to decrypt the DNS request to obtain the second domain name requested by the terminal and the access path information of the terminal; parse the access path information of the terminal to obtain the identification information of the terminal and the target resource information requested by the terminal to access; and determine whether there is a corresponding local resolution record in the policy library according to the identification information of the terminal when it is determined that the terminal has the corresponding access right according to the target resource information; The transmitter is used to send resolution indication information to the local DNS server when there is a corresponding local resolution record, and to send the domain name resolution result corresponding to the second domain name to the local DNS server when there is no corresponding local resolution record, so that the local DNS server forwards the domain name resolution result to the terminal; wherein the resolution indication information is used to instruct the local DNS server to determine the domain name resolution result corresponding to the second domain name, and send the domain name resolution result to the terminal.

10. A communication device, characterized in that: include: a transmitter, a receiver, a processor and a memory, the memory storing a computer program; The receiver is used to receive a first domain name of an edge cloud server sent by a local DNS server; The processor is used to execute the computer program to generate access path information of the terminal according to identification information of the terminal and target resource information requested by the terminal to access, and to generate a DNS request according to a second domain name requested by the terminal to access and the access path information of the terminal; The sender is used to send the DNS request to the edge cloud server based on the first domain name; The receiver is also used to receive a domain name resolution result corresponding to the second domain name; wherein the domain name resolution result is sent to the terminal through the local DNS server by the edge cloud server when the edge cloud server determines that the terminal has corresponding access rights based on the target resource information in the DNS request; the identification information of the terminal is used for the edge cloud server to determine whether there is a local resolution record corresponding to the terminal; The domain name resolution result corresponding to the second domain name is determined by the local DNS server based on the resolution indication information sent by the edge cloud server and sent to the terminal when there is a local resolution record corresponding to the terminal, or when there is no local resolution record corresponding to the terminal, the local DNS server forwards the domain name resolution result sent by the edge cloud server to the terminal.

11. 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 method according to any one of claims 1 to 6 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.