CN114338382B - Domain name based equipment online method and device, computer equipment and storage medium - Google Patents
Domain name based equipment online method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114338382B CN114338382B CN202111652167.2A CN202111652167A CN114338382B CN 114338382 B CN114338382 B CN 114338382B CN 202111652167 A CN202111652167 A CN 202111652167A CN 114338382 B CN114338382 B CN 114338382B
- Authority
- CN
- China
- Prior art keywords
- online
- domain name
- equipment
- url
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000004044 response Effects 0.000 claims abstract description 57
- 230000008569 process Effects 0.000 claims description 7
- 238000011144 upstream manufacturing Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a device online method and device based on a domain name, a computer device and a storage medium, wherein the device online method based on the domain name comprises the following steps: detecting and receiving a DNS request message carrying a domain name in a URL of the online equipment, which is sent by a management terminal; analyzing the DNS request message and obtaining a domain name in the URL of the online equipment; matching the domain name in the URL of the online equipment with a preset domain name, and if the domain name in the URL of the online equipment is successfully matched with the preset domain name, constructing a DNS response message of the DNS request message, wherein the response message carries the IP address of the online equipment; sending a DNS response message to the management terminal, so that the management terminal obtains the IP address of the online equipment based on the DNS response message and sends an access request carrying configuration information to the online equipment based on the IP address of the online equipment; and receiving an access request, analyzing and obtaining configuration information based on the access request, and completing online operation based on the configuration information. The application has the advantages of high usability and high configuration and online efficiency.
Description
Technical Field
The present application relates to the field of computer and network security technologies, and in particular, to a method and apparatus for online device based on domain name, a computer device, and a storage medium.
Background
At present, the main mode of zero configuration on-line of equipment is as follows: 1. after the equipment is electrified, a user realizes the management of the equipment through a physical port address, and transmits initialized configuration to the equipment to realize zero configuration online of the equipment and the management of the equipment; 2. and the user issues the initialized configuration by accessing the address of the WIFI port to realize zero configuration on-line of the equipment and management of the equipment.
However, the above-mentioned method of zero-configuration on-line of the device has the disadvantages of complicated operation, low usability and low configuration on-line efficiency.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for equipment online based on domain names, computer equipment and a storage medium, which are used for improving the efficiency and usability of equipment zero configuration online.
For this purpose, the first aspect of the present application discloses a device online method based on domain name, the method is applied to online devices, and the method comprises:
receiving a DNS request message carrying a domain name in a URL of the online equipment, which is sent by a management terminal;
analyzing the DNS request message and obtaining a domain name in the URL of the online equipment;
matching the domain name in the URL of the online equipment with a preset domain name, and if the domain name in the URL of the online equipment is successfully matched with the preset domain name, constructing a DNS response message of the DNS request message, wherein the DNS response message carries the IP address of the online equipment;
sending the DNS response message to a management terminal, so that the management terminal obtains the IP address of the online equipment based on the DNS response message and sends an access request carrying the configuration information to the online equipment based on the IP address of the online equipment;
and receiving the access request, analyzing the access request to obtain the configuration information, and completing the online operation based on the configuration information.
In a first aspect of the present application, as an optional implementation manner, before the completing the online operation based on the configuration information, the method includes:
and decrypting the configuration information based on a preset decryption algorithm to obtain the decrypted configuration information.
In a first aspect of the present application, as an optional implementation manner, before the completing the online operation based on the configuration information, the method further includes:
the controller agent process based on the controller agent process detects whether to generate a configuration file storing the configuration information;
and executing the online operation based on the configuration information when the configuration file storing the configuration information is stored.
The second aspect of the present application discloses a method for device online based on domain name, the method is applied in a management terminal, the method comprises:
sending a DNS request message carrying a domain name in a URL of an online device to the online device, so that the online device builds a DNS response message carrying an IP address of the online device based on the domain name in the URL of the online device;
receiving the DNS response message sent by the online equipment and resolving the DNS response message to obtain the IP address of the online equipment;
and sending an access request carrying configuration information to the online equipment based on the IP address of the online equipment so that the online equipment completes online operation based on the configuration information.
In a second aspect of the present application, as an optional implementation manner, before the sending, by the upstream device, a DNS request message carrying a domain name in a URL of the upstream device, the method further includes:
judging whether a user adds the identification of the online equipment in the Web page of the SDWAN controller;
if the user adds the identification of the online equipment in the Web page of the SDWAN controller, the identification of the online equipment is sent to a management server, so that the management server generates the URL of the online equipment, wherein the URL of the online equipment comprises the domain name of the online equipment and the configuration information of the online equipment;
and receiving the URL of the online equipment sent by the management server.
In a second aspect of the present application, as an optional implementation manner, before the sending, by the upstream device, a DNS request message carrying the URL of the upstream device, the method further includes:
and judging whether the user inputs the URL of the online equipment, and if so, generating a DNS request message carrying the URL of the online equipment.
The third aspect of the present application discloses a device for online equipment based on domain name, the device is applied to the online equipment, the device comprises:
the first receiving module is used for receiving a DNS request message carrying a domain name in a URL of the online equipment, which is sent by the management terminal;
the first analyzing module is used for analyzing the DNS request message and obtaining a domain name in the URL of the online equipment;
the matching module is used for matching the domain name in the URL of the online equipment with a preset domain name, and if the domain name in the URL of the online equipment is successfully matched with the preset domain name, a DNS response message of the DNS request message is constructed, wherein the DNS response message carries the IP address of the online equipment;
the first sending module is used for sending the DNS response message to the management terminal, so that the management terminal obtains the IP address of the online equipment based on the DNS response message and sends an access request carrying the configuration information to the online equipment based on the IP address of the online equipment;
the first receiving module is further configured to receive the access request, parse the access request to obtain the configuration information, and complete online operation based on the configuration information.
The fourth aspect of the present application discloses a device online apparatus based on domain name, the apparatus is applied to a management terminal, the apparatus includes:
the second sending module is used for sending a DNS request message carrying a domain name in a URL of the online equipment to the online equipment so that the online equipment builds a DNS response message carrying an IP address of the online equipment based on the domain name in the URL of the online equipment;
the second receiving module is used for receiving the DNS response message sent by the online equipment and resolving the DNS response message to obtain the IP address of the online equipment;
the second sending module is further configured to send an access request carrying configuration information to the online device based on the IP address of the online device, so that the online device completes online operation based on the configuration information.
A fifth aspect of the application discloses a computer device, the device comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the domain name based device presence method of the first and second aspects of the application.
A sixth aspect of the present application discloses a storage medium storing computer instructions which, when invoked, are adapted to perform the domain name based device presence methods of the first and second aspects of the present application.
According to the method and the device, the domain name in the DNS request message can be obtained by analyzing the DNS request message, the domain name in the DNS request message is matched with the preset domain name, when the domain name in the DNS request message is successfully matched with the preset domain name, the IP address of the online equipment and the DNS response message carrying the configuration information of the online equipment can be constructed, and finally, the access request carrying the configuration information can be sent to the online equipment based on the IP address of the online equipment, so that the online equipment can analyze the access request to obtain the configuration information, and the online operation is completed based on the configuration information.
Compared with the prior art, the method and the device can automatically acquire the IP address of the interface of the online equipment based on the domain name of the message, and the interface of the online equipment is not required to be manually selected according to the URL because the interface of the online equipment is uncertain to be a WIFI interface or an Internet of things interface, so that the operation of a user is convenient, and the zero configuration online efficiency and usability of the equipment can be improved. However, in the prior art, since only the IP address of the online device is required in the request for connecting the online device in the prior art, a corresponding interface needs to be manually selected to receive the request of the online device when the request is executed, for example, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, the interface of the manually connected device needs to be the WIFI interface of the online device, where the interface of the online device needs to be selected because the interface of the online device has the WIFI interface and the physical interface, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, but the physical interface of the online device is selected, such situations that the request cannot be received or the request analysis fails may occur, for example, the physical interface of the online device receives the request based on the WIFI interface and then analyzes according to the protocol of the physical interface, and may make an error.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for online equipment based on domain name according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for online equipment based on domain name according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an online device of a domain name-based apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an online device of a domain name-based apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a domain name based device online method disclosed in an embodiment of the present application, wherein the method is applied to an online device. As shown in fig. 1, the method of the embodiment of the application comprises the following steps:
101. receiving a DNS request message carrying a domain name in a URL of the online equipment, which is sent by a management terminal;
102. analyzing the DNS request message and obtaining a domain name in the URL of the online equipment;
103. matching the domain name in the URL of the online equipment with a preset domain name, and if the domain name in the URL of the online equipment is successfully matched with the preset domain name, constructing a DNS response message of the DNS request message, wherein the DNS response message carries the IP address of the online equipment;
104. sending a DNS response message to the management terminal, so that the management terminal obtains the IP address of the online equipment based on the DNS response message and sends an access request carrying configuration information to the online equipment based on the IP address of the online equipment;
105. and receiving an access request, analyzing and obtaining configuration information based on the access request, and completing online operation based on the configuration information.
According to the embodiment of the application, the domain name in the DNS request message can be obtained by analyzing the DNS request message, and then the domain name in the DNS request message is matched with the preset domain name, when the domain name in the DNS request message is successfully matched with the preset domain name, the IP address carrying the online equipment and the DNS response message aiming at the configuration information of the online equipment can be constructed, and finally the access request carrying the configuration information can be sent to the online equipment based on the IP address of the online equipment, so that the online equipment can analyze the access request to obtain the configuration information, and the online operation is completed based on the configuration information.
Compared with the prior art, the embodiment of the application can automatically acquire the IP address of the interface of the online equipment based on the domain name of the message, and does not need to manually select the interface of the online equipment according to the URL because the interface of the online equipment is uncertain to be a WIFI interface or an Internet of things interface, thereby being convenient for a user to operate, and further improving the zero configuration online efficiency and usability of the equipment. However, in the prior art, since only the IP address of the online device is required in the request for connecting the online device in the prior art, a corresponding interface needs to be manually selected to receive the request of the online device when the request is executed, for example, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, the interface of the manually connected device needs to be the WIFI interface of the online device, where the interface of the online device needs to be selected because the interface of the online device has the WIFI interface and the physical interface, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, but the physical interface of the online device is selected, such situations that the request cannot be received or the request analysis fails may occur, for example, the physical interface of the online device receives the request based on the WIFI interface and then analyzes according to the protocol of the physical interface, and may make an error.
In the embodiment of the application, the preset domain name refers to a domain name of an online device needing zero configuration online, for example, the preset domain name is "a", and when the domain name in the DNS request message is also "a", it is determined that the domain name in the DNS request message is successfully matched with the preset domain name, and it is determined that the DNS request message is for the online device.
In the embodiment of the present application, one way to construct the DNS response message may be to increase the acquired IP address of the online device on the basis of the DNS request message.
In the embodiment of the present application, the online operation may be an operation such as version update, which is not limited to the embodiment of the present application.
In an embodiment of the present application, as an optional implementation manner, in the step: 105 before completing the online operation based on the configuration information, the method according to the embodiment of the present application includes the following steps:
and decrypting the configuration information based on a preset decryption algorithm to obtain decrypted configuration information.
In an embodiment of the present application, as an optional implementation manner, before completing the online operation based on the configuration information, the method of the embodiment of the present application further includes the following steps:
the method comprises the steps that a controller agent process based on the controller agent process detects whether a configuration file storing configuration information is generated or not;
and when the configuration file of the configuration information is stored, executing the online operation based on the configuration information.
In this optional embodiment, the controller agent process monitors in real time whether there is a configuration file of the configuration information, and if so, triggers completion of the online operation based on the configuration information.
Example two
Referring to fig. 2, fig. 2 is a flow chart of a domain name based device online method disclosed in an embodiment of the present application, where the method is applied to a management terminal. As shown in fig. 2, the method according to the embodiment of the present application includes the following steps:
201. sending a DNS request message carrying a domain name in the URL of the online equipment to the online equipment, so that the online equipment constructs a DNS response message carrying an IP address of the online equipment based on the domain name in the URL of the online equipment;
202. receiving a DNS response message sent by the online equipment and resolving the DNS response message to obtain the IP address of the online equipment;
203. and sending an access request carrying configuration information to the online equipment based on the IP address of the online equipment so that the online equipment completes online operation based on the configuration information.
According to the embodiment of the application, the DNS request message carrying the domain name in the URL of the online equipment is sent to the online equipment, so that the online equipment constructs the DNS response message carrying the IP address of the online equipment based on the domain name in the URL of the online equipment, and on the other hand, the IP address of the online equipment can be obtained by receiving the DNS response message sent by the online equipment, and further the IP address of the online equipment can be obtained by analyzing the DNS response message, so that an access request carrying configuration information can be sent to the online equipment based on the IP address of the online equipment, and the online equipment can finish the online operation based on the configuration information.
In this embodiment of the present application, as an optional implementation manner, before sending, to the online device, a DNS request message carrying a domain name in the URL of the online device, the method further includes:
judging whether a user adds an identifier of online equipment in a Web page of the SDWAN controller;
if the user adds the identifier of the online device in the Web page of the SDWAN controller, the identifier of the online device is sent to the management server, so that the management server generates an URL of the online device, wherein the URL of the online device comprises the domain name of the online device and the configuration information of the online device;
and receiving the URL of the online equipment sent by the management server.
In this optional embodiment, since the URL of the online device includes the domain name of the online device, but does not include the IP address of the WIFI interface of the online device or the IP address of the physical interface of the online device, when configuring the URL, there is no need to consider the problem of adapting the configuration information of the online device to the IP address, that is, when the URL points to the online device with the WIFI interface, in order to adapt the configuration information to a configuration that can be correctly received and resolved by the WIFI interface, the configuration information for the WIFI interface is generated; or when the URL points to the online equipment by using the physical interface, in order to adapt the configuration information to the configuration which can be correctly received and analyzed by the physical interface, the configuration information aiming at the physical interface is generated, so that the configuration workload in the maintenance process of the online equipment is reduced.
In this alternative embodiment, please refer to the prior art for the description of the SDWAN controller, and the description of this embodiment is omitted.
In an embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes:
the configuration information is encrypted based on a preset encryption algorithm, so that the encrypted configuration information is obtained, and in the optional implementation manner, the preset encryption algorithm corresponds to a decryption algorithm used by the online equipment, and meanwhile, the transmission safety of the configuration information can be improved and the leakage probability of the configuration information can be reduced by encrypting the configuration information.
In this embodiment of the present application, as an optional implementation manner, before sending a DNS request message carrying a domain name in a URL of an online device to the online device, the method in this embodiment of the present application further includes the following steps:
judging whether a user inputs the URL of the online equipment, if so, generating a DNS request message carrying the URL of the online equipment.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an on-line device of a domain name-based apparatus according to an embodiment of the present application, where the device is applied to an on-line device. As shown in fig. 3, the device modules according to the embodiment of the present application include the following functional modules:
a first receiving module 301, configured to receive a DNS request packet carrying a domain name in a URL of an online device sent by a management terminal;
the first resolving module 302 is configured to resolve the DNS request message and obtain a domain name in the URL of the online device;
the matching module 303 is configured to match a domain name in the URL of the online device with a preset domain name, and if the domain name in the URL of the online device is successfully matched with the preset domain name, construct a DNS response message of the DNS request message, where the response message carries an IP address of the online device;
the first sending module 304 is configured to send a DNS response packet to the management terminal, so that the management terminal obtains an IP address of the online device based on the DNS response packet and sends an access request carrying configuration information to the online device based on the IP address of the online device;
the first receiving module 301 is further configured to receive an access request, parse the access request to obtain configuration information, and complete an online operation based on the configuration information.
According to the embodiment of the application, the domain name in the DNS request message can be obtained by analyzing the DNS request message, and then the domain name in the DNS request message is matched with the preset domain name, when the domain name in the DNS request message is successfully matched with the preset domain name, the IP address carrying the online equipment and the DNS response message aiming at the configuration information of the online equipment can be constructed, and finally the access request carrying the configuration information can be sent to the online equipment based on the IP address of the online equipment, so that the online equipment can analyze the access request to obtain the configuration information, and the online operation is completed based on the configuration information.
Compared with the prior art, the embodiment of the application can automatically acquire the IP address of the interface of the online equipment based on the domain name of the message, and does not need to manually select the interface of the online equipment according to the URL because the interface of the online equipment is uncertain to be a WIFI interface or an Internet of things interface, thereby being convenient for a user to operate, and further improving the zero configuration online efficiency and usability of the equipment. However, in the prior art, since only the IP address of the online device is required in the request for connecting the online device in the prior art, a corresponding interface needs to be manually selected to receive the request of the online device when the request is executed, for example, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, the interface of the manually connected device needs to be the WIFI interface of the online device, where the interface of the online device needs to be selected because the interface of the online device has the WIFI interface and the physical interface, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, but the physical interface of the online device is selected, such situations that the request cannot be received or the request analysis fails may occur, for example, the physical interface of the online device receives the request based on the WIFI interface and then analyzes according to the protocol of the physical interface, and may make an error.
It should be noted that, for other descriptions of the apparatus according to the embodiment of the present application, please refer to the first embodiment of the present application, and the description of the embodiment of the present application is omitted.
Example IV
Referring to fig. 4, fig. 4 is a schematic structural diagram of an on-line device of a domain name-based apparatus according to an embodiment of the present application, where the device is applied to an on-line device. As shown in fig. 4, the device modules according to the embodiment of the present application include the following functional modules:
a second sending module 401, configured to send a DNS request packet carrying a domain name in the URL of the online device to the online device, so that the online device constructs a DNS response packet carrying an IP address of the online device based on the domain name in the URL of the online device;
a second receiving module 402, configured to receive a DNS response packet sent by the online device and parse the DNS response packet to obtain an IP address of the online device;
the second sending module 401 is further configured to send an access request carrying configuration information to the online device based on the IP address of the online device, so that the online device completes the online operation based on the configuration information.
According to the embodiment of the application, the access request sent by the management terminal is received, so that the access request can be analyzed and the configuration information can be obtained, and the online operation can be completed based on the configuration information.
It should be noted that, for other descriptions of the apparatus according to the embodiment of the present application, please refer to the second embodiment of the present application, and the description of the embodiment of the present application is omitted.
Example five
Referring to fig. 5, fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the application. As shown in fig. 5, the apparatus of the embodiment of the present application includes:
a memory 501 in which executable program codes are stored;
a processor 502 coupled to the memory 501;
the processor 502 invokes executable program code stored in the memory 501 to execute the domain name based device on-line method of the first embodiment of the present application and the second embodiment of the present application.
According to the embodiment of the application, the domain name in the DNS request message can be obtained by analyzing the DNS request message, and then the domain name in the DNS request message is matched with the preset domain name, when the domain name in the DNS request message is successfully matched with the preset domain name, the IP address carrying the online equipment and the DNS response message aiming at the configuration information of the online equipment can be constructed, and finally the access request carrying the configuration information can be sent to the online equipment based on the IP address of the online equipment, so that the online equipment can analyze the access request to obtain the configuration information, and the online operation is completed based on the configuration information.
Compared with the prior art, the embodiment of the application can automatically acquire the IP address of the interface of the online equipment based on the domain name of the message, and does not need to manually select the interface of the online equipment according to the URL because the interface of the online equipment is uncertain to be a WIFI interface or an Internet of things interface, thereby being convenient for a user to operate, and further improving the zero configuration online efficiency and usability of the equipment. However, in the prior art, since only the IP address of the online device is required in the request for connecting the online device in the prior art, a corresponding interface needs to be manually selected to receive the request of the online device when the request is executed, for example, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, the interface of the manually connected device needs to be the WIFI interface of the online device, where the interface of the online device needs to be selected because the interface of the online device has the WIFI interface and the physical interface, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, but the physical interface of the online device is selected, such situations that the request cannot be received or the request analysis fails may occur, for example, the physical interface of the online device receives the request based on the WIFI interface and then analyzes according to the protocol of the physical interface, and may make an error.
Example six
The embodiment of the application discloses a storage medium which stores computer instructions, wherein the computer instructions are used for executing the equipment online method based on domain names in the first embodiment of the application and the second embodiment of the application when the computer instructions are called.
According to the embodiment of the application, the domain name in the DNS request message can be obtained by analyzing the DNS request message, and then the domain name in the DNS request message is matched with the preset domain name, when the domain name in the DNS request message is successfully matched with the preset domain name, the IP address carrying the online equipment and the DNS response message aiming at the configuration information of the online equipment can be constructed, and finally the access request carrying the configuration information can be sent to the online equipment based on the IP address of the online equipment, so that the online equipment can analyze the access request to obtain the configuration information, and the online operation is completed based on the configuration information.
Compared with the prior art, the embodiment of the application can automatically acquire the IP address of the interface of the online equipment based on the domain name of the message, and does not need to manually select the interface of the online equipment according to the URL because the interface of the online equipment is uncertain to be a WIFI interface or an Internet of things interface, thereby being convenient for a user to operate, and further improving the zero configuration online efficiency and usability of the equipment. However, in the prior art, since only the IP address of the online device is required in the request for connecting the online device in the prior art, a corresponding interface needs to be manually selected to receive the request of the online device when the request is executed, for example, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, the interface of the manually connected device needs to be the WIFI interface of the online device, where the interface of the online device needs to be selected because the interface of the online device has the WIFI interface and the physical interface, if the request for connecting the online device carries the IP address of the WIFI interface of the online device, but the physical interface of the online device is selected, such situations that the request cannot be received or the request analysis fails may occur, for example, the physical interface of the online device receives the request based on the WIFI interface and then analyzes according to the protocol of the physical interface, and may make an error.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or 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 communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A domain name based device online method, wherein the method is applied to an online device, the method comprising:
receiving a DNS request message carrying a domain name in a URL of the online equipment, which is sent by a management terminal;
analyzing the DNS request message and obtaining a domain name in the URL of the online equipment;
matching the domain name in the URL of the online equipment with a preset domain name, and if the domain name in the URL of the online equipment is successfully matched with the preset domain name, constructing a DNS response message of the DNS request message, wherein the DNS response message carries the IP address of the online equipment, and the preset domain name refers to the domain name of the online equipment needing zero configuration online;
the DNS response message is sent to a management terminal, so that the management terminal obtains the IP address of the online equipment based on the DNS response message and sends an access request carrying configuration information to the online equipment based on the IP address of the online equipment;
and receiving the access request, analyzing the access request to obtain the configuration information, and completing the online operation based on the configuration information.
2. The method of claim 1, wherein prior to the completing an online operation based on the configuration information, the method comprises:
and decrypting the configuration information based on a preset decryption algorithm to obtain the decrypted configuration information.
3. The method of claim 1, wherein prior to the completing an online operation based on the configuration information, the method further comprises:
detecting whether to generate a configuration file storing the configuration information based on a controller agent process;
and executing the online operation based on the configuration information when the configuration file of the configuration information exists.
4. A domain name based device online method, wherein the method is applied to a management terminal, and the method comprises the following steps:
sending a DNS request message carrying a domain name in a URL of an online device to the online device, so that the online device analyzes the DNS request message and obtains the domain name in the URL of the online device, the online device matches the domain name in the URL of the online device with a preset domain name, and when the domain name in the URL of the online device is successfully matched with the preset domain name, a DNS response message carrying the DNS request message is constructed, wherein the DNS response message carries an IP address of the online device, and the preset domain name refers to the domain name of the online device needing zero configuration online;
receiving the DNS response message sent by the online equipment and resolving the DNS response message to obtain the IP address of the online equipment;
and sending an access request carrying configuration information to the online equipment based on the IP address of the online equipment so that the online equipment completes online operation based on the configuration information.
5. The method of claim 4, wherein prior to the sending of the DNS request message to the upstream device carrying the domain name in the URL of the upstream device, the method further comprises:
judging whether a user adds the identification of the online equipment in the Web page of the SDWAN controller;
if the user adds the identifier of the online equipment in the Web page of the SDWAN controller, the identifier of the online equipment is sent to a management server, so that the management server generates the URL of the online equipment, wherein the URL of the online equipment comprises the domain name of the online equipment and the configuration information of the online equipment;
and receiving the URL of the online equipment sent by the management server.
6. The method of claim 5, wherein prior to the sending of the DNS request message carrying the URL of the online device to the online device, the method further comprises:
and judging whether the user inputs the URL of the online equipment, and if so, generating a DNS request message carrying the URL of the online equipment.
7. A domain name based device on-line apparatus, wherein the apparatus is applied to an on-line device, the apparatus comprising:
the first receiving module is used for receiving a DNS request message carrying a domain name in a URL of the online equipment, which is sent by the management terminal;
the first analyzing module is used for analyzing the DNS request message and obtaining a domain name in the URL of the online equipment;
the matching module is used for matching the domain name in the URL of the online equipment with a preset domain name, and if the domain name in the URL of the online equipment is successfully matched with the preset domain name, a DNS response message of the DNS request message is constructed, wherein the DNS response message carries the IP address of the online equipment, and the preset domain name refers to the domain name of the online equipment needing zero configuration online;
the first sending module is used for sending the DNS response message to the management terminal, so that the management terminal obtains the IP address of the online equipment based on the DNS response message and sends an access request carrying configuration information to the online equipment based on the IP address of the online equipment;
the first receiving module is further configured to receive the access request, parse the access request to obtain the configuration information, and complete online operation based on the configuration information.
8. A domain name based device online apparatus, wherein the apparatus is applied to a management terminal, the apparatus comprising:
the second sending module is used for sending a DNS request message carrying a domain name in an online device URL to an online device, so that the online device can analyze the DNS request message and obtain the domain name in the online device URL, the online device can match the domain name in the online device URL with a preset domain name, and when the domain name in the online device URL is successfully matched with the preset domain name, a DNS response message carrying the DNS request message is constructed, and the DNS response message carries an IP address of the online device, wherein the preset domain name refers to the domain name of the online device needing zero configuration online;
the second receiving module is used for receiving the DNS response message sent by the online equipment and resolving the DNS response message to obtain the IP address of the online equipment;
the second sending module is further configured to send an access request carrying configuration information to the online device based on the IP address of the online device, so that the online device completes online operation based on the configuration information.
9. A computer device, the device comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the domain name based device presence method of any of claims 1-6.
10. A storage medium storing computer instructions which, when invoked, are operable to perform the domain name based device presence method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111652167.2A CN114338382B (en) | 2021-12-30 | 2021-12-30 | Domain name based equipment online method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111652167.2A CN114338382B (en) | 2021-12-30 | 2021-12-30 | Domain name based equipment online method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114338382A CN114338382A (en) | 2022-04-12 |
CN114338382B true CN114338382B (en) | 2023-11-14 |
Family
ID=81019677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111652167.2A Active CN114338382B (en) | 2021-12-30 | 2021-12-30 | Domain name based equipment online method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114338382B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010060315A1 (en) * | 2008-11-29 | 2010-06-03 | 华为技术有限公司 | Online service control method, content charging network elements and accounting system |
CN102572002A (en) * | 2010-12-08 | 2012-07-11 | 中国电信股份有限公司 | Dynamic domain name updating method and system thereof |
CN102739819A (en) * | 2012-06-21 | 2012-10-17 | 华为技术有限公司 | Method, devices and system for establishing transmission channel |
CN105959188A (en) * | 2016-06-07 | 2016-09-21 | 华为技术有限公司 | Method and device for controlling user terminal to be online |
CN108270615A (en) * | 2017-12-25 | 2018-07-10 | 深圳市泰信通信息技术有限公司 | Network equipment beginning method, apparatus and equipment based on SDN network controller |
CN109768980A (en) * | 2019-01-16 | 2019-05-17 | 深圳市创维软件有限公司 | Server access method, apparatus, mobile terminal and computer readable storage medium |
CN111245898A (en) * | 2019-12-31 | 2020-06-05 | 中国建设银行股份有限公司 | Network equipment online method, device, server and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995272A (en) * | 2016-08-09 | 2021-06-18 | 华为技术有限公司 | Method, device and system for accessing physical server by virtual machine in cloud computing system |
-
2021
- 2021-12-30 CN CN202111652167.2A patent/CN114338382B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010060315A1 (en) * | 2008-11-29 | 2010-06-03 | 华为技术有限公司 | Online service control method, content charging network elements and accounting system |
CN102572002A (en) * | 2010-12-08 | 2012-07-11 | 中国电信股份有限公司 | Dynamic domain name updating method and system thereof |
CN102739819A (en) * | 2012-06-21 | 2012-10-17 | 华为技术有限公司 | Method, devices and system for establishing transmission channel |
CN105959188A (en) * | 2016-06-07 | 2016-09-21 | 华为技术有限公司 | Method and device for controlling user terminal to be online |
CN108270615A (en) * | 2017-12-25 | 2018-07-10 | 深圳市泰信通信息技术有限公司 | Network equipment beginning method, apparatus and equipment based on SDN network controller |
CN109768980A (en) * | 2019-01-16 | 2019-05-17 | 深圳市创维软件有限公司 | Server access method, apparatus, mobile terminal and computer readable storage medium |
CN111245898A (en) * | 2019-12-31 | 2020-06-05 | 中国建设银行股份有限公司 | Network equipment online method, device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114338382A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109120611B (en) | User authentication method, apparatus, system and medium for address generation server | |
CN105516135A (en) | Method and device used for account login | |
CN111131416A (en) | Business service providing method and device, storage medium and electronic device | |
CN109309655B (en) | Stateless communication security signature method, terminal and server | |
CN114143082B (en) | Encryption communication method, system and device | |
CN112468571A (en) | Intranet and extranet data synchronization method and device, electronic equipment and storage medium | |
CN116383867A (en) | Data query method, device, electronic equipment and computer readable medium | |
CN109379371B (en) | Certificate verification method, device and system | |
CN114390524A (en) | Method and device for realizing one-key login service | |
CN105577606B (en) | A kind of method and apparatus for realizing authenticator registration | |
CN114338382B (en) | Domain name based equipment online method and device, computer equipment and storage medium | |
US11240210B2 (en) | Methods, apparatuses, and systems for acquiring local information | |
CN112583594A (en) | Data processing method, acquisition device, gateway, trusted platform and storage medium | |
CN115022065B (en) | License authentication method and system | |
CN110995454A (en) | Service verification method and system | |
CN113992734A (en) | Session connection method, device and equipment | |
CN112364308A (en) | Online authorized android APK signature method and device | |
CN111212042B (en) | Data transmission method, device and system | |
CN114915487B (en) | Terminal authentication method, system, device, equipment and storage medium | |
CN112995277B (en) | Access processing method and device and proxy server | |
CN117319083B (en) | Cross-chain sharing method, device, system and equipment for heterogeneous privacy data | |
CN114881773B (en) | User information processing system, method, device, equipment and medium | |
CN116016167B (en) | Message processing method, device, storage medium and equipment | |
CN116781256B (en) | Compatible interaction method, device, equipment and storage medium of mechanism data | |
CN114189767B (en) | Authentication method and device for broadband value-added service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |