CN117675758A - Domain name resolution method, system, device and nonvolatile storage medium - Google Patents
Domain name resolution method, system, device and nonvolatile storage medium Download PDFInfo
- Publication number
- CN117675758A CN117675758A CN202311815667.2A CN202311815667A CN117675758A CN 117675758 A CN117675758 A CN 117675758A CN 202311815667 A CN202311815667 A CN 202311815667A CN 117675758 A CN117675758 A CN 117675758A
- Authority
- CN
- China
- Prior art keywords
- domain name
- network access
- internet protocol
- protocol address
- service gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000004044 response Effects 0.000 claims abstract description 79
- 238000004891 communication Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 abstract description 9
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a domain name resolution method, a domain name resolution system, a domain name resolution device and a non-volatile storage medium. Wherein the method comprises the following steps: the cloud service gateway sends a discovery message to the network access equipment, wherein the network access equipment is used for sending a response message of the discovery message to the cloud service gateway; under the condition that the cloud service gateway receives a response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application; receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the internet protocol address corresponding to the domain name of the edge cloud application. The method and the device solve the technical problem of high request time delay caused by excessive control message forwarding through network nodes in the process that the user terminal accesses public domain name resolution service through domain name resolution requests under the converged edge network architecture.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a domain name resolution method, system, device, and non-volatile storage medium.
Background
The cloud network fusion edge is a novel technical form which is provided for a large-scale small micro-client digital transformation subdivision scene, can fully exert the cloud network fusion capability and form differentiated service advantages. Through the integration innovation of the novel metropolitan area network, computing power, cloud storage, security and other cloud network element capabilities, a cloud network service based on a virtual local area network, which is different from the traditional public cloud, is provided for users. Based on the architecture, rich innovative scenes such as multimedia service, collaborative office, multi-store/multi-family networking and the like can be provided for clients; by superimposing security capabilities at the edges, end-to-end full security services covering clouds, nets, edges, ends can be provided.
However, under the existing converged edge network architecture, in the process that the user terminal accesses the public domain name resolution service through the domain name resolution request, the control message is forwarded through the network node too much, and the problem of too high time delay exists.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a domain name resolution method, a system, a device and a nonvolatile storage medium, which are used for at least solving the technical problem of higher request time delay caused by excessive control message forwarding through network nodes in the process of accessing public domain name resolution service through domain name resolution requests by a user terminal under a converged edge network architecture.
According to an aspect of the embodiments of the present application, there is provided a domain name resolution method, including: the cloud service gateway sends a discovery message to the network access equipment, wherein the network access equipment is used for sending a response message of the discovery message to the cloud service gateway; under the condition that the cloud service gateway receives a response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application; receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the internet protocol address corresponding to the domain name of the edge cloud application.
Optionally, the response message includes: lease information of a dynamic host configuration protocol address corresponding to a virtual host in the cloud service gateway.
Optionally, determining lease expiration time of the dynamic host configuration protocol address corresponding to the virtual host according to the lease information; before the lease expiration time, the virtual host sends a first request message to the network access device according to a preset time interval, wherein the first request message comprises: the network access equipment is used for sending the updated internet protocol address of the edge cloud application to the virtual host according to the identity information, lease information and the first request message corresponding to the virtual host; and receiving the updated internet protocol address of the edge cloud application sent by the network access equipment so as to update the internet protocol address of the edge cloud application.
Optionally, in the case that the cloud service gateway receives the response message sent by the network access device, sending a request message to the network access device, including: a virtual host client based on a dynamic host configuration protocol in a cloud service gateway sends a request message to a server based on the dynamic host configuration protocol in network access equipment, wherein the request message comprises: the client identifier includes: domain name of the edge cloud application.
Optionally, the virtual host client based on the dynamic host configuration protocol in the cloud service gateway sends a request message to the server based on the dynamic host configuration protocol in the network access device, where the request message includes: the server side is used for determining an Internet protocol address allocation strategy according to the service type, and searching a target Internet protocol address corresponding to the domain name of the edge cloud application based on the Internet protocol address allocation strategy; the server receives a response message sent by the client in response to the request message, wherein the response message comprises: a target internet protocol address.
Optionally, the cloud service gateway sends a discovery message to the network access device, including: a virtual host client based on a dynamic host configuration protocol in a cloud service gateway sends a discovery message to a server based on the dynamic host configuration protocol in network access equipment, wherein the discovery message comprises: a client identifier.
Optionally, the discovery message, the response message, the request message, and the response message are all based on a dynamic host configuration protocol.
According to still another aspect of the embodiments of the present application, there is provided another domain name resolution method, including: the network access equipment receives a query request sent by the terminal equipment, wherein the query request is used for querying a target internet protocol address corresponding to a target domain name of a target edge cloud application; the network access equipment receives and responds to the query request, searches a target domain name and a target internet protocol address in a domain name list of the edge cloud application and an internet protocol address list corresponding to the domain name list of the edge cloud application, which are locally stored in the network access equipment, and sends the searched target internet protocol address to the terminal equipment.
Optionally, if the target domain name is not found in the domain name list of the edge cloud application and the internet protocol address list corresponding to the domain name list of the edge cloud application, which are locally stored in the network access device, forwarding the query request to a domain name system server, where the domain name system server is configured to determine a target internet protocol address corresponding to the target domain name, and send the target internet protocol address to the network access device; the network access device sends the received target internet protocol to the terminal device.
According to still another aspect of the embodiments of the present application, there is further provided a domain name resolution system, including: the cloud service gateway comprises terminal equipment, network access equipment and a cloud service gateway, wherein the terminal equipment is in communication connection with the network access equipment and is used for sending a query request to the network access equipment, and the query request is used for querying a target internet protocol address corresponding to a target domain name of a target edge cloud application; the network access equipment is in communication connection with the cloud service gateway and is used for executing the domain name resolution method; and the cloud service gateway is used for executing the domain name resolution method.
According to still another aspect of the embodiments of the present application, there is further provided a domain name resolution apparatus, including: the network access device is used for sending a response message of the discovery message to the cloud service gateway; the second sending module is configured to send a request message to the network access device when the cloud service gateway receives a response message sent by the network access device, where the request message includes: domain name of the edge cloud application; the receiving module is used for receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the internet protocol address corresponding to the domain name of the edge cloud application.
According to still another aspect of the embodiments of the present application, there is further provided a nonvolatile storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is controlled to execute the above domain name resolution method.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device, including: the system comprises a memory and a processor, wherein the processor is used for running a program stored in the memory, and the domain name resolution method is executed when the program runs.
In the embodiment of the application, a cloud service gateway is adopted to send a discovery message to a network access device, wherein the network access device is used for sending a response message of the discovery message to the cloud service gateway; under the condition that the cloud service gateway receives a response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application; receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: the method of the internet protocol address corresponding to the domain name of the edge cloud application achieves the aim of reducing the number of network nodes through which the domain name resolution request is forwarded, thereby realizing the technical effect of reducing the time delay of the domain name resolution request, and further solving the technical problem of higher request time delay caused by excessive forwarding of control messages through the network nodes in the process of accessing public domain name resolution service through the domain name resolution request by the user terminal under the fused edge network architecture.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of a domain name resolution method according to an embodiment of the present application;
FIG. 2 is a flow chart of another domain name resolution method according to an embodiment of the present application;
FIG. 3 is a block diagram of a domain name resolution system according to an embodiment of the present application;
FIG. 4 is a block diagram of another domain name resolution system according to an embodiment of the present application;
FIG. 5 is a flow chart of another domain name resolution method according to an embodiment of the present application;
FIG. 6 is a flow chart of another domain name resolution method according to an embodiment of the present application;
FIG. 7 is a block diagram of a domain name resolution device according to an embodiment of the present application;
fig. 8 is a hardware configuration block diagram of a computer terminal of a domain name resolution method according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to embodiments of the present application, a method embodiment of a domain name resolution method is provided, it should be noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
Fig. 1 is a flowchart of a domain name resolution method according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step S102, the cloud service gateway sends a discovery message to the network access device, wherein the network access device is used for sending a response message of the discovery message to the cloud service gateway.
A network access device refers to a device for connecting a computer or other device to the internet or a local area network, optionally a network access device such as: routers, switches, gateways, modems, network cards, etc. The devices can provide functions of network connection, data transmission, address allocation, safety protection and the like, and help users to realize network access and communication.
Notably, in the embodiments of the present application, the network access device includes, but is not limited to: and (5) a home gateway.
The cloud service gateway is a middleware for connecting different cloud services and applications, and can help enterprises manage resources and services of multiple cloud service providers. The cloud service gateway can provide security, reliability and performance optimization, and meanwhile, management and monitoring of the cloud environment are simplified. Through the cloud service gateway, enterprises can realize cross-cloud-platform resource integration and unified management, so that the efficiency is improved and the cost is reduced.
According to some preferred embodiments of the present application, the cloud service gateway sends the discovery message to the network access device, which may be implemented by the following method: a virtual host client based on a dynamic host configuration protocol in a cloud service gateway sends a discovery message to a server based on the dynamic host configuration protocol in network access equipment, wherein the discovery message comprises: a client identifier.
It can be understood that the cloud service gateway includes a virtual host, and the virtual host is used as a client to send a discovery message to a pre-configured server in the network access device.
The virtual host in the cloud service gateway refers to a virtualized host environment constructed based on a cloud computing technology, and is used for bearing various service services of the cloud service gateway. The virtual host can provide computing, storage, network and other resources, so that the user can deploy and run own application programs and services on the cloud service gateway. Through the virtual host, the user can flexibly expand and manage own business, and meanwhile, the user enjoys the advantages of high availability, high performance, elasticity and the like of cloud computing.
The dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) is a network protocol for automatically assigning internet protocol (Internet Protocol, IP) addresses and other network configuration information to computers or other devices. DHCP allows network administrators to centrally manage and assign IP addresses, reduces the manual configuration effort, and ensures that each device has a unique IP address on the network. The working principle of the DHCP protocol is as follows: when a client (device) connects to the network, the client sends a DHCP request requesting an available IP address. Upon receipt of the request, the DHCP server assigns an IP address to the client and provides other network configuration information such as subnet mask, default gateway and domain name system (Domain Name System, DNS) server addresses. So that the devices can communicate over the network. DHCP also supports dynamic updating and renewal of IP addresses, which are requested by clients to the DHCP server to ensure the stability of network connections when the client moves over the network or when an IP address lease expires.
According to some optional embodiments of the present application, the response message includes: lease information of a dynamic host configuration protocol address corresponding to a virtual host in the cloud service gateway.
Optionally, the DHCP address lease information includes the following: ip address: the IP address assigned to the client is used to uniquely identify the device on the network. 2. Subnet mask: the range of the subnet where the device is located is defined to determine whether the client is within the same local area network. 3. Default gateway: the device is used to send data packets to the IP address of the router of the other network. Dns server address: a server address for resolving the domain name into an IP address. The DHCP server may configure the validity period of the lease, i.e., the validity time of the IP address and configuration information assigned to the device. The device may continue to use the assigned IP address and configuration information until the lease expires. Once the lease expires, the device needs to re-request the lease and update the configuration information.
In summary, the cloud service gateway is further configured to perform the following steps:
step S1, determining lease expiration time of a dynamic host configuration protocol address corresponding to a virtual host according to lease information.
Step S2, before lease expiration time, the virtual host sends a first request message to the network access equipment according to a preset time interval, wherein the first request message comprises: the network access device is used for sending the updated internet protocol address of the edge cloud application to the virtual host according to the identity information, lease information and the first request message corresponding to the virtual host.
And step S3, receiving the updated internet protocol address of the edge cloud application sent by the network access equipment so as to update the internet protocol address of the edge cloud application.
Step S104, under the condition that the cloud service gateway receives a response message sent by the network access equipment, a request message is sent to the network access equipment, wherein the request message comprises: domain name of the edge cloud application.
An edge cloud application is an application that utilizes edge computing technology to move computing and data processing capabilities from a traditional centralized cloud to an edge server or device that is closer to the user device. Thus, delay of data transmission and network congestion can be reduced, and response speed and performance of the application program can be improved.
Edge cloud applications typically include internet of things devices, sensors, mobile devices, and other terminal devices, providing real-time data analysis, local storage, and edge intelligence through an edge computing platform.
According to other optional embodiments of the present application, a virtual host client based on a dynamic host configuration protocol in a cloud service gateway sends a request message to a server based on the dynamic host configuration protocol in a network access device, where the request message includes: the client identifier includes: domain name of the edge cloud application.
Optionally, the client identifier is Option 60, where Option 60 is an Option in the DHCP message for identifying the type of client device or vendor information. When a client sends a DHCP request, the DHCP request may contain an Option 60 field so that the server provides a specific configuration according to device type or vendor information. This option is typically used to distinguish between different types of network devices, such as routers, switches, printers, etc.
In some alternative embodiments, the domain name resolution method above further comprises: a virtual host client based on a dynamic host configuration protocol in a cloud service gateway sends a request message to a server based on the dynamic host configuration protocol in network access equipment, wherein the request message comprises: the client identifier and the service type of the service proxied by the virtual host client, the server is used for determining an internet protocol address allocation policy according to the service type, and searching a target internet protocol address corresponding to the domain name of the edge cloud application based on the internet protocol address allocation policy, for example: 192.168.0.253.
the server receives a response message sent by the client in response to the request message, wherein the response message comprises: a target internet protocol address (192.168.0.253).
For example, the service types of the services proxied by the virtual host client include, but are not limited to: website hosting, email hosting, database hosting, application hosting, backup and restore services, and security services.
Step S106, receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the internet protocol address corresponding to the domain name of the edge cloud application.
Preferably, the discovery message, the response message, the request message, and the response message are all based on a dynamic host configuration protocol.
According to the steps, a cloud service gateway is adopted to send a discovery message to a network access device, wherein the network access device is used for sending a response message of the discovery message to the cloud service gateway; under the condition that the cloud service gateway receives a response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application; receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: the method of the internet protocol address corresponding to the domain name of the edge cloud application achieves the aim of reducing the number of network nodes through which the domain name resolution request is forwarded, thereby achieving the technical effect of reducing the time delay of the domain name resolution request.
Fig. 2 is a flowchart of another domain name resolution method according to an embodiment of the present application, as shown in fig. 2, the method includes the steps of:
in step S202, the network access device receives a query request sent by the terminal device, where the query request is used to query a target internet protocol address corresponding to a target domain name of the target edge cloud application.
In step S204, the network access device receives and responds to the query request, searches the target domain name and the target internet protocol address in the domain name list of the edge cloud application and the internet protocol address list corresponding to the domain name list of the edge cloud application, which are locally stored in the network access device, and sends the searched target internet protocol address to the terminal device.
Further, if the target domain name is not found in the domain name list of the edge cloud application and the internet protocol address list corresponding to the domain name list of the edge cloud application, which are locally stored in the network access device, forwarding the query request to a domain name system server, where the domain name system server is configured to determine a target internet protocol address corresponding to the target domain name and send the target internet protocol address to the network access device, and in addition, the network access device sends the received target internet protocol to the terminal device.
Fig. 3 is a block diagram of a domain name resolution system according to an embodiment of the present application, and as shown in fig. 3, the system includes: a terminal device 30, a network access device 32, and a cloud services gateway 34, wherein,
the terminal device 30 is communicatively connected to the network access device 32, and is configured to send a query request to the network access device 32, where the query request is used to query a target internet protocol address corresponding to a target domain name of the target edge cloud application.
The network access device 32 is communicatively coupled to a cloud services gateway 34 for performing the domain name resolution method shown in fig. 2.
The cloud service gateway 34 is configured to perform the domain name resolution method shown in fig. 1.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 3 may refer to the related descriptions of the embodiments shown in fig. 1 and fig. 2, which are not repeated herein.
Fig. 4 is a block diagram of another domain name resolution system according to an embodiment of the present application, as shown in fig. 4, the system includes: a user terminal 41, a home gateway 42, and a cloud service gateway 43, wherein,
the user terminal 41 includes: DNS client (client) module 411: for sending DNS messages to the home gateway 42 that the user terminal 41 is to access the cloud application.
The home gateway 42 includes: a DHCP server (server) module 421, and a domain name resolution module 422, wherein,
the DHCP server module 421 is configured to allocate an IP address to a user terminal and a Virtual Host (VHOST) module in the cloud service gateway;
the domain name resolution module 422 is configured to resolve DNS messages that the user terminal accesses the cloud application.
The cloud service gateway 43 includes: a VHOST module 431, and a DHCP client module 432, wherein,
the VHOST module 431 is configured to establish a virtual logical user object on a cloud service gateway, complete cloud service access and access of a cloud application of a broadband user, and support cloud service release and user management, where the user management includes but is not limited to: authentication and charging;
the DHCP client module 432 is configured to instruct the VHOST to apply for an IP address to the home gateway DHCP server.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 4 may refer to the related descriptions of the embodiments shown in fig. 1 and fig. 2, which are not repeated herein.
Fig. 5 is a flowchart of another domain name resolution method according to an embodiment of the present application, as shown in fig. 5, the method includes the steps of:
step 51,VHOST DHCP client module sends a DHCP discover (discover) message carrying a cloud application domain name through a client identifier option 60 in the discover message, where the cloud application domain name is, for example: yun.nas.com.
In step 52, the home gateway DHCP server sends a DHCP offer (offer) response.
Step 53,VHOST DHCP client module sends a DHCP request (request) message carrying a cloud application domain name through a client identifier option 60 in the request message, where the cloud application domain name is, for example: yun.nas.com.
And step 54, the home gateway DHCP server sends a DHCP Acknowledgement (ACK) response to complete the IP address allocation to the VHOST.
In step 55, the home gateway records the IP address corresponding to the edge cloud application domain name.
And 56, in the DHCP address renewing process of the VHOST, when the lease is up, re-applying for IP renewing of the VHOST, and finishing address updating of the cloud application domain name by the home gateway.
In step 57, if the VHOST releases the IP address, the home gateway completes the local deletion of the cloud application domain name address.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 5 may refer to the related description of the embodiment shown in fig. 1, which is not repeated herein.
Through steps 51 to 57, the proxy VHOST in the cloud service gateway needs to acquire an IP address through the home gateway, and the home gateway can generate and store a domain name and an IP address resolution policy in the process, so as to implement differentiated processing of user domain name resolution. In addition, by dynamically generating the edge cloud application address, accessing network address resolution, few network nodes are accessed, and providing personalized domain names for broadband users is supported, so that the problem of cloud service domain name conflict caused by different address resolution results due to dynamic change of cloud application proxy address access addresses of the service gateway is solved.
Fig. 6 is a flowchart of another domain name resolution method according to an embodiment of the present application, as shown in fig. 6, the method includes the steps of:
in step 61, the home terminal (terminal equipment) accesses the cloud application through the domain name, and the home terminal initiates DNS query for the domain name address of the cloud application through DNS client.
Step 62, the home gateway is used as a DNS proxy (proxy), queries a locally stored domain name list of the cloud application and an IP address list corresponding to the domain name list of the cloud application, if the query is successful, the home gateway directly sends a DNS response, otherwise, the step 63 is entered.
In step 63, the home gateway forwards the DNS query message to the DNS server.
And step 64, the DNS server analyzes the IP address corresponding to the cloud application domain name address, and then sends a DNS response to the home terminal.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 6 may refer to the related description of the embodiment shown in fig. 2, which is not repeated herein.
According to steps 61 to 63, the terminal device performs the domain name resolution request, directly implements and replies on the home gateway, and does not pass through other network nodes during the interaction process, so that the shortest time delay of the client domain name resolution request can be ensured.
In summary, the domain name resolution policy does not need to be imported in advance, and the policy is automatically generated when the service agent of the cloud service gateway obtains the IP address. In addition, the method and the device can directly realize domain name resolution at the user gateway, and achieve low time delay and policy differentiation of domain name resolution.
Fig. 7 is a block diagram of a domain name resolution device according to an embodiment of the present application, and as shown in fig. 7, the device includes:
a first sending module 70, configured to send a discovery message to a network access device, where the network access device is configured to send a response message of the discovery message to the cloud service gateway;
the second sending module 72 is configured to send a request message to the network access device when the cloud service gateway receives a response message sent by the network access device, where the request message includes: domain name of the edge cloud application;
a receiving module 74, configured to receive a response message sent by the network access device in response to the request message, where the response message includes: and the internet protocol address corresponding to the domain name of the edge cloud application.
Note that each module in fig. 7 may be a program module (for example, a set of program instructions for implementing a specific function), or may be a hardware module, and for the latter, it may be represented by the following form, but is not limited thereto: the expression forms of the modules are all a processor, or the functions of the modules are realized by one processor.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 7 may refer to the related description of the embodiment shown in fig. 1, which is not repeated herein.
Fig. 8 shows a hardware block diagram of a computer terminal for implementing a domain name resolution method. As shown in fig. 8, the computer terminal 80 may include one or more processors 802 (shown as 802a, 802b, … …,802n in the figures) (the processor 802 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA or the like processing device), a memory 804 for storing data, and a transmission module 806 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 8 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 80 may also include more or fewer components than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
It should be noted that the one or more processors 802 and/or other data processing circuits described above may be referred to herein generally as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module or incorporated, in whole or in part, into any of the other elements in the computer terminal 80. As referred to in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination to interface).
The memory 804 may be used for storing software programs and modules of application software, such as program instructions/data storage devices corresponding to the domain name resolution method in the embodiments of the present application, and the processor 802 executes the software programs and modules stored in the memory 804, thereby performing various functional applications and data processing, that is, implementing the domain name resolution method described above. The memory 804 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 804 may further include memory located remotely from the processor 802, which may be connected to the computer terminal 80 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 806 is used to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 80. In one example, the transmission module 806 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission module 806 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 80.
It should be noted here that, in some alternative embodiments, the computer terminal shown in fig. 8 may include hardware elements (including circuits), software elements (including computer code stored on a computer readable medium), or a combination of both hardware and software elements. It should be noted that fig. 8 is only one example of a specific example, and is intended to illustrate the types of components that may be present in the computer terminal described above.
It should be noted that, the computer terminal shown in fig. 8 is configured to execute the domain name resolution method shown in fig. 1, so that the explanation related to the execution method of the command is also applicable to the electronic device, and will not be repeated here.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored program, wherein the program controls equipment where the storage medium is located to execute the domain name resolution method when running.
The nonvolatile storage medium executes a program of the following functions: the cloud service gateway sends a discovery message to the network access equipment, wherein the network access equipment is used for sending a response message of the discovery message to the cloud service gateway; under the condition that the cloud service gateway receives a response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application; receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the internet protocol address corresponding to the domain name of the edge cloud application.
The embodiment of the application also provides electronic equipment, which comprises: the system comprises a memory and a processor, wherein the processor is used for running a program stored in the memory, and the domain name resolution method is executed when the program runs.
The processor is configured to execute a program that performs the following functions: the cloud service gateway sends a discovery message to the network access equipment, wherein the network access equipment is used for sending a response message of the discovery message to the cloud service gateway; under the condition that the cloud service gateway receives a response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application; receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the internet protocol address corresponding to the domain name of the edge cloud application.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be essentially or a part contributing to the related art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.
Claims (13)
1. A method for domain name resolution, comprising:
the cloud service gateway sends a discovery message to a network access device, wherein the network access device is used for sending a response message of the discovery message to the cloud service gateway;
and under the condition that the cloud service gateway receives the response message sent by the network access equipment, sending a request message to the network access equipment, wherein the request message comprises: domain name of the edge cloud application;
receiving a response message sent by the network access equipment in response to the request message, wherein the response message comprises: and the Internet protocol address corresponding to the domain name of the edge cloud application.
2. The method of claim 1, wherein the response message comprises: lease information of a dynamic host configuration protocol address corresponding to a virtual host in the cloud service gateway.
3. The method according to claim 2, wherein the method further comprises:
determining lease expiration time of the dynamic host configuration protocol address corresponding to the virtual host according to the lease information;
before the lease expiration time, the virtual host sends a first request message to the network access device according to a preset time interval, wherein the first request message comprises: the network access device is configured to send an updated internet protocol address of the edge cloud application to the virtual host according to the identity information corresponding to the virtual host, the lease information and the first request message;
and receiving the Internet protocol address of the updated edge cloud application sent by the network access equipment, so as to update the Internet protocol address of the edge cloud application.
4. The method according to claim 1, wherein, in the case that the cloud service gateway receives the response message sent by the network access device, sending a request message to the network access device includes:
the virtual host client based on the dynamic host configuration protocol in the cloud service gateway sends the request message to the server based on the dynamic host configuration protocol in the network access device, wherein the request message comprises: a client identifier, the client identifier comprising: and the domain name of the edge cloud application.
5. The method according to claim 4, wherein the method further comprises:
the virtual host client based on the dynamic host configuration protocol in the cloud service gateway sends the request message to the server based on the dynamic host configuration protocol in the network access device, wherein the request message comprises: the client identifier and the service type of the service proxied by the virtual host client are used for determining an internet protocol address allocation strategy according to the service type, and searching a target internet protocol address corresponding to the domain name of the edge cloud application based on the internet protocol address allocation strategy;
the server receives a response message sent by the client in response to the request message, wherein the response message comprises: the target internet protocol address.
6. The method of claim 4, wherein the cloud service gateway sending the discovery message to the network access device comprises:
the virtual host client based on the dynamic host configuration protocol in the cloud service gateway sends the discovery message to the server based on the dynamic host configuration protocol in the network access device, wherein the discovery message comprises: the client identifier.
7. The method of claim 1, wherein the discovery message, the response message, the request message, and the reply message are all based on a dynamic host configuration protocol.
8. A method for domain name resolution, comprising:
the network access equipment receives a query request sent by terminal equipment, wherein the query request is used for querying a target internet protocol address corresponding to a target domain name of a target edge cloud application;
and the network access equipment receives and responds to the query request, searches the target domain name and the target internet protocol address in a domain name list of the edge cloud application locally stored by the network access equipment and an internet protocol address list corresponding to the domain name list of the edge cloud application, and sends the searched target internet protocol address to the terminal equipment.
9. The method of claim 8, wherein the method further comprises:
if the target domain name is not found in the domain name list of the edge cloud application and the internet protocol address list corresponding to the domain name list of the edge cloud application, which are locally stored in the network access device, forwarding the query request to a domain name system server, wherein the domain name system server is used for determining a target internet protocol address corresponding to the target domain name and sending the target internet protocol address to the network access device;
and the network access equipment sends the received target internet protocol to the terminal equipment.
10. A domain name resolution system, comprising: terminal equipment, network access equipment and cloud service gateway, wherein,
the terminal equipment is in communication connection with the network access equipment and is used for sending a query request to the network access equipment, wherein the query request is used for querying a target internet protocol address corresponding to a target domain name of a target edge cloud application;
the network access device is in communication connection with the cloud service gateway and is configured to perform the domain name resolution method according to any one of claims 8 to 9;
the cloud service gateway is configured to perform the domain name resolution method of any one of claims 1 to 7.
11. A domain name resolution device, comprising:
the network access device is used for sending a response message of the discovery message to the cloud service gateway;
the second sending module is configured to send a request packet to the network access device when the cloud service gateway receives the response packet sent by the network access device, where the request packet includes: domain name of the edge cloud application;
the receiving module is configured to receive a response message sent by the network access device in response to the request message, where the response message includes: and the Internet protocol address corresponding to the domain name of the edge cloud application.
12. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the domain name resolution method of any one of claims 1 to 9.
13. An electronic device, comprising: a memory and a processor for executing a program stored in the memory, wherein the program when run performs the domain name resolution method of any of claims 1 to 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311815667.2A CN117675758A (en) | 2023-12-26 | 2023-12-26 | Domain name resolution method, system, device and nonvolatile storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311815667.2A CN117675758A (en) | 2023-12-26 | 2023-12-26 | Domain name resolution method, system, device and nonvolatile storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117675758A true CN117675758A (en) | 2024-03-08 |
Family
ID=90082650
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311815667.2A Pending CN117675758A (en) | 2023-12-26 | 2023-12-26 | Domain name resolution method, system, device and nonvolatile storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117675758A (en) |
-
2023
- 2023-12-26 CN CN202311815667.2A patent/CN117675758A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8250184B2 (en) | System, network entities and computer programs for configuration management of a dynamic host configuration protocol framework | |
| EP2556438B1 (en) | Reverse dns lookup with modified reverse mappings | |
| US9154378B2 (en) | Architecture for virtualized home IP service delivery | |
| US8751614B2 (en) | Providing virtualized visibility through routers | |
| US8230067B2 (en) | DHCP proxy in a subscriber environment | |
| US8125993B2 (en) | Network element having a DHCP lease timer | |
| US8458303B2 (en) | Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset | |
| CN102594635B (en) | Based on the terminal access method of home gateway and system and home gateway | |
| US8924519B2 (en) | Automated DNS configuration with local DNS server | |
| EP2343867B1 (en) | System and method of reducing intranet traffic on bottleneck links in a telecommunications network | |
| CN101478576A (en) | Method, apparatus and system for selecting service network | |
| WO2018082310A1 (en) | Ip address renewal method and apparatus | |
| KR20120132206A (en) | Server connectiong method, information providng method of device and device applying the same, Cloud Computing Network system and operation method thereof | |
| CN102833287B (en) | The method of visit data resource in distributed file system and distributed file system | |
| EP3048756B1 (en) | Management method and apparatus for dynamic host configuration protocol server and relay | |
| CN117675758A (en) | Domain name resolution method, system, device and nonvolatile storage medium | |
| CN111935336A (en) | IPv 6-based network management method and system | |
| KR20180050181A (en) | Modem apparatus and system for providing static ip | |
| CN102780776B (en) | Application layer transmission optimization server finds method and device | |
| US11552928B2 (en) | Remote controller source address verification and retention for access devices | |
| CN104052826A (en) | Method and device for discovering network media server based on DHCP | |
| WO2025119018A1 (en) | Service configuration method for ipv6 network, electronic device and readable storage medium | |
| JP3708085B2 (en) | DNS inquiry device and DNS inquiry method | |
| CN120675974A (en) | Message processing method and device | |
| CN113438096A (en) | Method, system and application function entity for guaranteeing service quality |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |