CN111245944A - Domain name resolution method and device, electronic equipment and storage medium - Google Patents
Domain name resolution method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111245944A CN111245944A CN202010038793.1A CN202010038793A CN111245944A CN 111245944 A CN111245944 A CN 111245944A CN 202010038793 A CN202010038793 A CN 202010038793A CN 111245944 A CN111245944 A CN 111245944A
- Authority
- CN
- China
- Prior art keywords
- domain name
- name resolution
- domain
- target
- cloud
- 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.)
- Granted
Links
Images
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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a domain name resolution method, a domain name resolution device, electronic equipment and a storage medium. The method is applied to setting a local domain name resolution server in a cloud domain, and comprises the following steps: identifying a target cloud domain matched with a domain name resolution request of a local client, wherein a domain name cache device is arranged in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain; sending a domain name resolution request to target domain name cache equipment according to an access address of the target domain name cache equipment matched with the target cloud domain; and providing the domain name resolution result fed back by the target domain name cache device to the local client. According to the technical scheme of the embodiment of the invention, the domain name cache equipment is arranged in each cloud domain, so that the local domain name resolution server can obtain the domain name resolution result from any cloud domain, and the cross-cloud domain name resolution is realized.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a domain name resolution method and device, electronic equipment and a storage medium.
Background
A Domain Name System (DNS) is a service of the Internet, and serves as a distributed database that maps Domain names and Internet Protocol (IP) addresses with each other, enabling users to access the Internet more conveniently.
At present, when a client wants to request resources from a specified cloud domain through an internal domain name, an internal domain name resolution request is sent to a server, the server initiates a recursive query request to a local domain name resolution server of the specified cloud domain according to the internal domain name resolution request, and an IP address corresponding to the internal domain name is acquired through the local domain name resolution server of the specified cloud domain. However, in the prior art, a local domain name resolution server of a specific cloud domain only provides domain name resolution services for clients in the cloud domain of the local domain name resolution server, and does not provide domain name resolution services for clients in other cloud domains, that is, the clients cannot realize domain name resolution across clouds.
Disclosure of Invention
Embodiments of the present invention provide a domain name resolution method and apparatus, an electronic device, and a storage medium, so that a local domain name resolution server can obtain a domain name resolution result from any cloud domain by incorporating a domain name cache device in each cloud domain, thereby implementing cross-cloud domain name resolution.
In a first aspect, an embodiment of the present invention provides a domain name resolution method, applied to a local domain name resolution server in a set cloud domain, including:
identifying a target cloud domain matched with a domain name resolution request of a local client, wherein a domain name cache device is arranged in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain;
sending a domain name resolution request to target domain name cache equipment according to an access address of the target domain name cache equipment matched with the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache equipment to acquire and feed back a domain name resolution result to a local domain name resolution server in a target cloud domain;
and providing the domain name resolution result fed back by the target domain name cache device to the local client.
Optionally, before identifying a target cloud domain matching the domain name resolution request of the local client, the method further includes:
adding the address of a local domain name resolution server into a first nameserver configuration item in a domain name resolution configuration file;
deleting a rotate variable in an options configuration item in the domain name resolution configuration file.
Optionally, after identifying a target cloud domain matching the domain name resolution request of the local client, the method further includes:
and according to the target domain name carried in the domain name resolution request, acquiring the access address of the target domain name cache device matched with the target cloud domain from a locally stored domain name mapping table.
In a second aspect, an embodiment of the present invention further provides a domain name resolution method, which is applied to a domain name cache device in a target cloud domain, and includes:
receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains;
sending the domain name resolution request to a target local domain name resolution server in a target cloud domain, and receiving a domain name resolution result sent by the target local domain name resolution server;
and feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
Optionally, after receiving the domain name resolution result sent by the target local domain name resolution server, the method further includes:
storing the domain name resolution result;
after receiving the domain name resolution request sent by the local domain name resolution server in the other cloud domain, the method further includes:
judging whether a domain name resolution result corresponding to the domain name resolution request is stored locally;
and if so, feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
Optionally, after feeding back the domain name resolution result to the local domain name resolution server in the other cloud domain, the method further includes:
and if an analysis failure response fed back according to the domain name analysis result is received, deleting the locally stored domain name analysis result. Optionally, the domain name caching device in the target cloud domain is deployed in the target cloud domain in a virtual machine manner.
In a third aspect, an embodiment of the present invention further provides a domain name resolution device, which is applied to a local domain name resolution server in a set cloud domain, and includes:
the system comprises an identification module, a local client and a domain name resolution server, wherein the identification module is used for identifying a target cloud domain matched with a domain name resolution request of a local client, and domain name cache equipment is arranged in each cloud domain and can access the local domain name resolution server in the cloud domain;
the first sending module is used for sending the domain name resolution request to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache equipment to acquire and feed back a domain name resolution result to a local domain name resolution server in a target cloud domain;
and the second sending module is used for providing the domain name resolution result fed back by the target domain name cache device to the local client.
In a fourth aspect, an embodiment of the present invention further provides a domain name resolution apparatus, which is applied to a domain name cache device in a target cloud domain, and includes:
the first receiving module is used for receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains;
the second receiving module is used for sending the domain name resolution request to a target local domain name resolution server in a target cloud domain and receiving a domain name resolution result sent by the target local domain name resolution server;
and the feedback module is used for feeding back the domain name resolution result to the local domain name resolution servers in other cloud domains.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by one or more processors, cause the one or more processors to implement a domain name resolution method as provided by any of the embodiments of the invention.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the domain name resolution method according to any embodiment of the present invention.
The technical scheme of the embodiment of the invention is applied to a local domain name resolution server in a set cloud domain, and the target cloud domain matched with a domain name resolution request of a local client is identified, wherein a domain name cache device is arranged in each cloud domain, the domain name cache device can access the local domain name resolution server in the cloud domain, the domain name resolution request is sent to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain, and the domain name resolution result fed back by the target domain name cache device is provided for the local client.
Drawings
FIG. 1 is a flowchart of a domain name resolution method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a domain name resolution method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a domain name resolution apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a domain name resolution apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a domain name resolution method in an embodiment of the present invention, which is applicable to a case of performing domain name resolution across clouds, and the method may be executed by a domain name resolution device, and the device may be implemented in a software and/or hardware manner, and may be generally integrated in various electronic devices providing domain name resolution services, for example, in a set cloud domain local domain name resolution server, and used in cooperation with a target cloud domain name cache device. With reference to fig. 1, the method specifically includes the following steps:
and 110, identifying a target cloud domain matched with the domain name resolution request of the local client.
The cloud domain name resolution server comprises a plurality of cloud domains, wherein a domain name cache device is arranged in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain.
In this embodiment, the set cloud domain may be any public cloud, such as an ari cloud, a tenuous cloud, or other public clouds. The target cloud domain is a cloud domain in which the local client wants to acquire resources, and is a public cloud different from a set cloud domain in which the local client is located. The domain name resolution request received by the local domain name resolution server is forwarded by the local client through the local domain name cache device, the domain name resolution request comprises a target domain name used for indicating the IP address of the resource which the local client wants to acquire, and a target cloud domain matched with the domain name resolution request of the local client can be determined according to the domain name. For example, when the target domain name is aliyuncs.com, the target cloud domain may be determined to be the arrests cloud, and for the target domain name qcloudcs.com, the target cloud domain may be determined to be the Tencent cloud.
In this embodiment, in order to get through a plurality of public cloud intranets and obtain domain name resolution results approved by each public cloud, a domain name cache device is built in each cloud domain in advance, and the domain name cache device can access a local domain name server in the cloud domain where the domain name cache device is located, so that the domain name resolution results of local clients can be obtained through the intranet in the cloud domain where the domain name cache device is located.
Optionally, before identifying a target cloud domain matching the domain name resolution request of the local client, the method may further include: adding the address of a local domain name resolution server into a first nameserver configuration item in a domain name resolution configuration file; deleting a rotate variable in an options configuration item in the domain name resolution configuration file.
In this embodiment, in order to enable the domain name resolution request of the local client to first pass through the local domain name resolution server, so as to determine the access address to which the domain name resolution request should be routed through the local domain name resolution server, the local domain name resolution server needs to be configured first. Specifically, the rotate variable in the options configuration item in the/etc/resolv.conf file may be deleted, so that the domain name resolution request accesses the domain name resolution server in the nameserver configuration item according to the sequence of the nameserver configuration item, and the address of the local domain name resolution server is added to the first nameserver configuration item in the/etc/resolv.conf file, so that the local domain name resolution server may obtain the domain name resolution request of the local client first. The nameserver configuration item is used for configuring the domain name resolution server, and a plurality of nameserver configuration items can be used for specifying a plurality of domain name resolution servers.
Optionally, after identifying a target cloud domain matching the domain name resolution request of the local client, the method may further include: and according to the target domain name carried in the domain name resolution request, acquiring the access address of the target domain name cache device matched with the target cloud domain from a locally stored domain name mapping table.
In this embodiment, a domain name mapping table is stored in the local domain name resolution server in advance, and the domain name mapping table includes each domain name and an access address of a target domain name cache device corresponding to each domain name. After the target cloud domain is determined, the local domain name resolution server queries a domain name mapping table according to a target domain name carried in the domain name resolution request to determine an access address of the target domain name cache device to which the domain name resolution request should be forwarded.
And step 120, sending the domain name resolution request to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain.
The domain name resolution request is used for indicating the target domain name cache device to acquire and feed back a domain name resolution result to a local domain name resolution server in the target cloud domain.
In this embodiment, the target domain name caching device stores an access address of a local domain name resolution server in a target cloud domain. Illustratively, 100.100.2.138:53 is stored in the target domain name cache device in the Alice cloud, 183.60.83.19:53 is stored in the target domain name cache device in the Tencent cloud, 114.114.114:53 is stored in the target domain name cache device in the domestic public cloud, and 8.8.8.8:53 or 119.29.29:53 is stored in the target domain name cache device in the foreign public cloud. Where 53 denotes a Transmission Control Protocol (TCP) port and a User Datagram Protocol (UDP) 53 port for domain name resolution.
In this embodiment, the target domain name cache device is configured to send the domain name resolution request to a local domain name resolution server in a target cloud domain where the target domain name resolution request is located, obtain a domain name resolution result returned by the local domain name resolution server in the target cloud domain, and return the domain name resolution result to the local domain name resolution server.
And step 130, providing the domain name resolution result fed back by the target domain name cache device to the local client.
In this embodiment, the local domain name resolution server returns a domain name resolution result, that is, an IP address of a resource that the local client needs to request, to the local client, so that the local client obtains a corresponding resource by accessing the IP address, or writes a specified resource into a target cloud domain according to the IP address, thereby achieving an effect of obtaining the domain name resolution result of the target cloud domain even if the local domain name resolution server is not in the target cloud domain.
The technical scheme of the embodiment of the invention is applied to a local domain name resolution server in a set cloud domain, and the target cloud domain matched with a domain name resolution request of a local client is identified, wherein a domain name cache device is arranged in each cloud domain, the domain name cache device can access the local domain name resolution server in the cloud domain, the domain name resolution request is sent to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain, and the domain name resolution result fed back by the target domain name cache device is provided for the local client.
Example two
Fig. 2 is a flowchart of a domain name resolution method in the second embodiment of the present invention, which may be applied to a case where a domain name resolution result is obtained across clouds, and the method may be executed by a domain name resolution device, and the domain name resolution device may be implemented in a software and/or hardware manner, and may be generally integrated in various electronic devices providing domain name resolution services, for example, in a domain name cache device in a target cloud domain, and used in cooperation with a local domain name resolution server in a set cloud domain. With reference to fig. 2, the method specifically includes the following steps:
In this embodiment, the domain name cache device in the target cloud domain is deployed in the target cloud domain in a virtual machine manner, and is used for punching the target cloud domain where the domain name cache device is located, so that even if the local domain name resolution server is not located in the target cloud domain, the domain name resolution result of the target cloud domain can be obtained through the domain name cache device. Furthermore, by respectively deploying the domain name cache equipment in each cloud domain, a plurality of cloud intranets can be opened, and intercommunication among the cloud domains is realized, so that domain name resolution is not limited by the cloud domain where the local domain name resolution server is located.
In this embodiment, after receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains, the domain name resolution request is sent to a target local domain name resolution server in the target cloud domain through a target cloud domain network in which the domain name resolution request is located, so that a target domain name carried in the domain name resolution request is resolved by the target local domain name resolution server, and a domain name resolution result returned by the target local domain name resolution server is obtained.
And step 230, feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
On the basis of the foregoing embodiment, after receiving the domain name resolution result sent by the target local domain name resolution server, the method may further include: storing the domain name resolution result; after receiving the domain name resolution request sent by the local domain name resolution server in the other cloud domain, the method may further include: judging whether a domain name resolution result corresponding to the domain name resolution request is stored locally; and if so, feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
In this embodiment, the domain name caching device further has an effect of caching a domain name resolution result, and by caching the domain name resolution result returned from the target local domain name resolution server, the domain name resolution result can be directly returned to the local domain name resolution servers in other cloud domains when a domain name resolution request sent by the local domain name resolution servers in other cloud domains is subsequently received, so that the domain name resolution time is saved, the domain name resolution speed is increased, and a user can acquire resources more quickly. Such an arrangement has the further benefit of: when a target local domain name resolution server in a target cloud domain fails or a domain name is unavailable due to access of other clients, a domain name resolution result can be directly obtained from domain name cache equipment of the target cloud domain, that is, the success rate of domain name resolution can be improved.
Optionally, after the domain name resolution result is fed back to the local domain name resolution server in another cloud domain, the method may further include: and if an analysis failure response fed back according to the domain name analysis result is received, deleting the locally stored domain name analysis result.
In this embodiment, if the client fails to read or write resources according to the domain name resolution result returned by the domain name cache device, an resolution failure response is fed back to the domain name cache device to notify the domain name cache device that the domain name resolution result is invalid, so that the domain name cache device obtains the domain name resolution result from the target local domain name resolution server in the target cloud domain again and returns the domain name resolution result to the client, and meanwhile, the domain name cache device needs to delete the invalid domain name resolution result of the local cache and re-cache the newly obtained domain name resolution result. The technical scheme of the embodiment of the invention is applied to domain name cache equipment in a target cloud domain, and the domain name resolution request is sent to the target local domain name resolution server in the target cloud domain by receiving the domain name resolution request sent by the local domain name resolution server in other cloud domains, and the domain name resolution result is fed back to the local domain name resolution servers in other cloud domains by receiving the domain name resolution request sent by the local domain name resolution server in the target cloud domain, so that the problem that the domain name resolution can not be realized across clouds in the prior art is solved, and the domain name cache equipment is arranged in each cloud domain, so that the local domain name resolution server can obtain the domain name resolution result from any cloud domain, and the domain name resolution across clouds is realized.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a domain name resolution device in the third embodiment of the present invention, which is suitable for a case where a domain name resolution result is obtained across clouds. As shown in fig. 3, the domain name resolution apparatus is applied to a local domain name resolution server in a cloud domain, and includes:
the identification module 310 is configured to identify a target cloud domain matched with a domain name resolution request of a local client, where a domain name cache device is built in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain where the domain name cache device is located;
a first sending module 320, configured to send the domain name resolution request to a target domain name cache device according to an access address of the target domain name cache device that matches the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache equipment to acquire and feed back a domain name resolution result to a local domain name resolution server in a target cloud domain;
the second sending module 330 is configured to provide the domain name resolution result fed back by the target domain name caching device to the local client.
The technical scheme of the embodiment of the invention is applied to a local domain name resolution server in a set cloud domain, and the target cloud domain matched with a domain name resolution request of a local client is identified, wherein a domain name cache device is arranged in each cloud domain, the domain name cache device can access the local domain name resolution server in the cloud domain, the domain name resolution request is sent to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain, and the domain name resolution result fed back by the target domain name cache device is provided for the local client.
Optionally, the method further includes: the configuration module is used for adding the address of the local domain name resolution server into a first nameserver configuration item in the domain name resolution configuration file before identifying a target cloud domain matched with a domain name resolution request of a local client; deleting a rotate variable in an options configuration item in the domain name resolution configuration file.
Optionally, the method further includes: and the address acquisition module is used for acquiring an access address of the target domain name cache device matched with the target cloud domain from a domain name mapping table stored locally according to the target domain name carried in the domain name resolution request after the target cloud domain matched with the domain name resolution request of the local client is identified.
The domain name resolution device provided by the embodiment of the invention can execute the domain name resolution method applied to setting the local domain name resolution server in the cloud domain provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a domain name resolution device in the fourth embodiment of the present invention, which is suitable for a case where a domain name resolution result is obtained across clouds. As shown in fig. 4, the domain name resolution apparatus is applied to a domain name cache device in a target cloud domain, and includes:
a first receiving module 410, configured to receive a domain name resolution request sent by a local domain name resolution server in another cloud domain;
a second receiving module 420, configured to send the domain name resolution request to a target local domain name resolution server in a target cloud domain, and receive a domain name resolution result sent by the target local domain name resolution server;
and the feedback module 430 is configured to feed back the domain name resolution result to the local domain name resolution server in another cloud domain.
The technical scheme of the embodiment of the invention is applied to domain name cache equipment in a target cloud domain, and the domain name resolution request is sent to the target local domain name resolution server in the target cloud domain by receiving the domain name resolution request sent by the local domain name resolution server in other cloud domains, and the domain name resolution result is fed back to the local domain name resolution servers in other cloud domains by receiving the domain name resolution request sent by the local domain name resolution server in the target cloud domain, so that the problem that the domain name resolution can not be realized across clouds in the prior art is solved, and the domain name cache equipment is arranged in each cloud domain, so that the local domain name resolution server can obtain the domain name resolution result from any cloud domain, and the domain name resolution across clouds is realized.
Optionally, the method further includes: the storage module is used for storing the domain name resolution result after receiving the domain name resolution result sent by the target local domain name resolution server; further comprising: the cache processing module is used for judging whether domain name resolution results corresponding to domain name resolution requests are stored locally or not after receiving the domain name resolution requests sent by local domain name resolution servers in other cloud domains; and if so, feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
Optionally, the method further includes: and the deleting module is used for deleting the domain name resolution result stored locally if receiving a resolution failure response fed back aiming at the domain name resolution result after feeding back the domain name resolution result to the local domain name resolution servers in other cloud domains. Optionally, the domain name caching device in the target cloud domain is deployed in the target cloud domain in a virtual machine manner.
The domain name resolution device provided by the embodiment of the invention can execute the domain name resolution method applied to the domain name cache equipment in the target cloud domain provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an electronic device in a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The electronic device 12 may be a local domain name resolution server in a set cloud domain, or a domain name caching device in a target cloud domain, and its components may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing, such as implementing a domain name resolution method provided by an embodiment of the present invention, by running a program stored in the system memory 28.
Namely: the method for realizing domain name resolution is applied to a local domain name resolution server in a set cloud domain, and comprises the following steps:
identifying a target cloud domain matched with a domain name resolution request of a local client, wherein a domain name cache device is arranged in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain;
sending a domain name resolution request to target domain name cache equipment according to an access address of the target domain name cache equipment matched with the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache equipment to acquire and feed back a domain name resolution result to a local domain name resolution server in a target cloud domain;
and providing the domain name resolution result fed back by the target domain name cache device to the local client.
Or, another domain name resolution method is implemented, which is applied to a domain name cache device in a target cloud domain, and includes:
receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains;
sending the domain name resolution request to a target local domain name resolution server in a target cloud domain, and receiving a domain name resolution result sent by the target local domain name resolution server;
and feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used to execute a domain name resolution method when executed by a computer processor.
Namely: the domain name resolution method is applied to a local domain name resolution server in a set cloud domain, and comprises the following steps:
identifying a target cloud domain matched with a domain name resolution request of a local client, wherein a domain name cache device is arranged in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain;
sending a domain name resolution request to target domain name cache equipment according to an access address of the target domain name cache equipment matched with the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache equipment to acquire and feed back a domain name resolution result to a local domain name resolution server in a target cloud domain;
and providing the domain name resolution result fed back by the target domain name cache device to the local client.
Or, another domain name resolution method is executed, and the method is applied to domain name cache equipment in a target cloud domain, and comprises the following steps:
receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains;
sending the domain name resolution request to a target local domain name resolution server in a target cloud domain, and receiving a domain name resolution result sent by the target local domain name resolution server;
and feeding back the domain name resolution result to local domain name resolution servers in other cloud domains.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
1. A domain name resolution method is applied to a local domain name resolution server in a set cloud domain, and comprises the following steps:
identifying a target cloud domain matched with a domain name resolution request of a local client, wherein a domain name cache device is arranged in each cloud domain, and the domain name cache device can access a local domain name resolution server in the cloud domain;
sending the domain name resolution request to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache device to acquire and feed back a domain name resolution result to a local domain name resolution server in the target cloud domain;
and providing the domain name resolution result fed back by the target domain name cache device to the local client.
2. The method of claim 1, further comprising, prior to identifying a target cloud domain matching a domain name resolution request of a local client:
adding the address of a local domain name resolution server into a first nameserver configuration item in a domain name resolution configuration file;
deleting a rotate variable in an options configuration item in the domain name resolution configuration file.
3. The method of claim 1, after identifying a target cloud domain matching a domain name resolution request of a local client, further comprising:
and acquiring an access address of the target domain name cache device matched with the target cloud domain from a locally stored domain name mapping table according to the target domain name carried in the domain name resolution request.
4. A domain name resolution method is applied to domain name cache equipment in a target cloud domain, and comprises the following steps:
receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains;
sending the domain name resolution request to a target local domain name resolution server in the target cloud domain, and receiving a domain name resolution result sent by the target local domain name resolution server;
and feeding back the domain name resolution result to the local domain name resolution servers in other cloud domains.
5. The method according to claim 4, further comprising, after receiving the domain name resolution result sent by the target local domain name resolution server:
storing the domain name resolution result;
after receiving the domain name resolution request sent by the local domain name resolution server in the other cloud domain, the method further includes:
judging whether a domain name resolution result corresponding to the domain name resolution request is stored locally;
and if so, feeding back the domain name resolution result to the local domain name resolution servers in other cloud domains.
6. The method according to claim 5, further comprising, after feeding back the domain name resolution result to the local domain name resolution server in the other cloud domain:
and if an analysis failure response fed back according to the domain name analysis result is received, deleting the locally stored domain name analysis result.
7. The method according to claim 4, wherein the domain name caching device in the target cloud domain is deployed in the target cloud domain by means of a virtual machine.
8. A domain name resolution device is applied to a local domain name resolution server in a set cloud domain, and comprises:
the system comprises an identification module, a local client and a domain name resolution server, wherein the identification module is used for identifying a target cloud domain matched with a domain name resolution request of a local client, and domain name cache equipment is arranged in each cloud domain and can access the local domain name resolution server in the cloud domain;
the first sending module is used for sending the domain name resolution request to the target domain name cache device according to the access address of the target domain name cache device matched with the target cloud domain;
the domain name resolution request is used for indicating the target domain name cache device to acquire and feed back a domain name resolution result to a local domain name resolution server in the target cloud domain;
and the second sending module is used for providing the domain name resolution result fed back by the target domain name cache device to the local client.
9. A domain name resolution device is applied to domain name cache equipment in a target cloud domain, and comprises:
the first receiving module is used for receiving domain name resolution requests sent by local domain name resolution servers in other cloud domains;
the second receiving module is used for sending the domain name resolution request to a target local domain name resolution server in the target cloud domain and receiving a domain name resolution result sent by the target local domain name resolution server;
and the feedback module is used for feeding back the domain name resolution result to the local domain name resolution servers in other cloud domains.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a domain name resolution method as claimed in any one of claims 1 to 3, or to implement a domain name resolution method as claimed in any one of claims 4 to 7.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a domain name resolution method according to any one of claims 1 to 3, or carries out a domain name resolution method according to any one of claims 4 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010038793.1A CN111245944B (en) | 2020-01-14 | 2020-01-14 | Domain name resolution method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010038793.1A CN111245944B (en) | 2020-01-14 | 2020-01-14 | Domain name resolution method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111245944A true CN111245944A (en) | 2020-06-05 |
CN111245944B CN111245944B (en) | 2022-10-04 |
Family
ID=70869008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010038793.1A Active CN111245944B (en) | 2020-01-14 | 2020-01-14 | Domain name resolution method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111245944B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112929464A (en) * | 2021-02-22 | 2021-06-08 | 中国电子信息产业集团有限公司第六研究所 | Identification analysis method, device, system, dynamic adapter and readable storage medium |
CN116319676A (en) * | 2023-05-23 | 2023-06-23 | 阿里云计算有限公司 | Domain name resolution method, device, storage medium and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984637A (en) * | 2010-11-02 | 2011-03-09 | 中兴通讯股份有限公司 | Content distribution implementation method and system |
CN103051740A (en) * | 2012-12-13 | 2013-04-17 | 上海牙木通讯技术有限公司 | Domain name resolution method, domain name system (DNS) server and domain name resolution system |
CN103281409A (en) * | 2013-06-24 | 2013-09-04 | 广州菁英信息技术有限公司 | Domain name resolution method of mobile internet and DNS server based on TCP protocol |
CN103780715A (en) * | 2014-01-29 | 2014-05-07 | 百度在线网络技术(北京)有限公司 | Domain name resolution implementing method, client side and cloud server |
CN106973122A (en) * | 2016-01-14 | 2017-07-21 | 中国移动通信集团浙江有限公司 | A kind of domain name system and its emergent solution based on cloud storage |
CN110290233A (en) * | 2019-06-27 | 2019-09-27 | 广州虎牙科技有限公司 | Domain name analytic method, device, server and computer readable storage medium |
CN110602270A (en) * | 2019-11-01 | 2019-12-20 | 北京博睿宏远数据科技股份有限公司 | Domain name resolution method and device, computer equipment and storage medium |
-
2020
- 2020-01-14 CN CN202010038793.1A patent/CN111245944B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984637A (en) * | 2010-11-02 | 2011-03-09 | 中兴通讯股份有限公司 | Content distribution implementation method and system |
CN103051740A (en) * | 2012-12-13 | 2013-04-17 | 上海牙木通讯技术有限公司 | Domain name resolution method, domain name system (DNS) server and domain name resolution system |
CN103281409A (en) * | 2013-06-24 | 2013-09-04 | 广州菁英信息技术有限公司 | Domain name resolution method of mobile internet and DNS server based on TCP protocol |
CN103780715A (en) * | 2014-01-29 | 2014-05-07 | 百度在线网络技术(北京)有限公司 | Domain name resolution implementing method, client side and cloud server |
CN106973122A (en) * | 2016-01-14 | 2017-07-21 | 中国移动通信集团浙江有限公司 | A kind of domain name system and its emergent solution based on cloud storage |
CN110290233A (en) * | 2019-06-27 | 2019-09-27 | 广州虎牙科技有限公司 | Domain name analytic method, device, server and computer readable storage medium |
CN110602270A (en) * | 2019-11-01 | 2019-12-20 | 北京博睿宏远数据科技股份有限公司 | Domain name resolution method and device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
域名国家工程研究中心: "DNS云学堂 关于DNS缓存,你想知道的都在这里", 《BLOG.CSDN.NET/WEIXIN_38354951/ARTICLE/DETAILS/111595020》 * |
散尽浮华: "DNS之BIND使用小结(Forward转发)", 《CNBLOGS.COM/KEVINGRACE/P/9399989.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112929464A (en) * | 2021-02-22 | 2021-06-08 | 中国电子信息产业集团有限公司第六研究所 | Identification analysis method, device, system, dynamic adapter and readable storage medium |
CN116319676A (en) * | 2023-05-23 | 2023-06-23 | 阿里云计算有限公司 | Domain name resolution method, device, storage medium and system |
CN116319676B (en) * | 2023-05-23 | 2023-10-20 | 阿里云计算有限公司 | Domain name resolution method, device, storage medium and system |
Also Published As
Publication number | Publication date |
---|---|
CN111245944B (en) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9531664B2 (en) | Selecting between domain name system servers of a plurality of networks | |
CN107948203A (en) | A kind of container login method, application server, system and storage medium | |
CN110602270B (en) | Domain name resolution method and device, computer equipment and storage medium | |
US6993583B2 (en) | Dynamically sharing a pool of IP addresses | |
CN114385091B (en) | Method and device for realizing network disk drive character, network disk and storage medium | |
US7761552B2 (en) | Root node for integrating NAS of different user name spaces | |
CN110958127B (en) | Exception handling method, device and equipment and computer storage medium | |
CN111866206A (en) | Distributed domain name resolution method, device and equipment | |
CN111245944B (en) | Domain name resolution method and device, electronic equipment and storage medium | |
CN112528274B (en) | Data processing method, device, electronic equipment and storage medium | |
CN113765988A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN110809070A (en) | Website domain name resolution record processing method and device, electronic equipment and storage medium | |
CN110677307B (en) | Service monitoring method, device, equipment and storage medium | |
CN112291384A (en) | Information processing method for domain name resolution and electronic equipment | |
CN113992382A (en) | Service data processing method and device, electronic equipment and storage medium | |
US20040003113A1 (en) | Apparatus, system and method of double-checking DNS provided IP addresses | |
US11520851B2 (en) | Passive DNS system | |
US11134117B1 (en) | Network request intercepting framework for compliance monitoring | |
US11245717B1 (en) | Automated detection, alarming, and removal of subdomain takeovers | |
US20060224720A1 (en) | Method, computer program product, and system for mapping users to different application versions | |
US11936757B1 (en) | Pull-based on-demand application deployment to edge node | |
CN114301872B (en) | Domain name based access method and device, electronic equipment and storage medium | |
CN114338279A (en) | Terminal access method and device and server | |
CN112804366A (en) | Method and device for resolving domain name | |
CN114297495A (en) | Service data searching method and device, electronic equipment and storage medium |
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 |