CN109587290A - A kind of method and relevant apparatus of domain name mapping - Google Patents

A kind of method and relevant apparatus of domain name mapping Download PDF

Info

Publication number
CN109587290A
CN109587290A CN201910007409.9A CN201910007409A CN109587290A CN 109587290 A CN109587290 A CN 109587290A CN 201910007409 A CN201910007409 A CN 201910007409A CN 109587290 A CN109587290 A CN 109587290A
Authority
CN
China
Prior art keywords
domain name
cloud
cloud host
virtual private
address
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
Application number
CN201910007409.9A
Other languages
Chinese (zh)
Other versions
CN109587290B (en
Inventor
匡光彩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910007409.9A priority Critical patent/CN109587290B/en
Publication of CN109587290A publication Critical patent/CN109587290A/en
Application granted granted Critical
Publication of CN109587290B publication Critical patent/CN109587290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The present invention relates to domain name mapping fields, provide the method and relevant apparatus of a kind of domain name mapping.When a kind of method of domain name mapping includes: that cloud host initiates domain name analysis request, virtual private cloud gateway receives the first domain name mapping request message that cloud host is sent, wherein the first domain name mapping request message carries the domain name that cloud host requests access to;Virtual private cloud gateway searches whether there is matched first domain name of domain name requested access to cloud host in the domain name mapping flow table data in Centralized Controller;First domain name if it exists, then virtual private cloud gateway obtains the first IP address corresponding with the first domain name from the domain name mapping flow table data in Centralized Controller;First domain name mapping back message is issued cloud host by virtual private cloud gateway, wherein the first domain name mapping back message carries the first IP address.The technical solution of the embodiment of the present invention, can be flexibly to the customized domain name mapping of cloud host in virtual private cloud.

Description

A kind of method and relevant apparatus of domain name mapping
Technical field
The present invention relates to domain name mapping field more particularly to the methods and relevant apparatus of a kind of domain name mapping.
Background technique
With the continuous maturation of virtualization and cloud computing technology, more and more cloud computing manufacturers start to provide virtual privately owned Cloud service is owned in virtual private cloud currently, the domain name mapping scheme of cloud computing manufacturer is all the domain name mapping for using centralization Cloud host share the domain name resolution server of a set of centralization.
When needing to the customized domain name mapping of cloud host in virtual private cloud, need in the host file of cloud host Domain name and the corresponding IP address of domain name are configured, when cloud host initiates domain name analysis request, first lookup and cloud in host file The matched domain name of the domain name that host requests access to, if there is the matched domain name of domain name requested access to cloud host then from host The corresponding IP address of domain name is obtained in file, then cloud host directly accesses the IP address, in this way, when to institute in virtual private cloud When some cloud hosts carry out customized domain name mapping, need to modify the host file of all cloud hosts, when in virtual private cloud When the quantity of cloud host is more, the larger workload of the host file of all cloud hosts is modified, and cannot be flexibly to separate unit Cloud host, Duo Taiyun host or entire virtual private cloud system carry out customized domain name mapping.
Summary of the invention
The embodiment of the present invention provides the method and relevant apparatus of a kind of domain name mapping, to flexibly in virtual private cloud Cloud host carry out customized domain name mapping.
First aspect present invention provides a kind of method of domain name mapping, and the method is applied to virtual private cloud system, institute It states and is equipped with Centralized Controller in virtual private cloud system, the domain name mapping flow table data of cloud host are stored in the Centralized Controller In, domain name parsing flow table data packet includes N number of domain name and N number of IP address, and N number of domain name and N number of IP address are one by one Corresponding, N is positive integer, comprising:
When the cloud host initiates domain name analysis request, virtual private cloud gateway receives the first domain that the cloud host is sent Name analysis request message, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to;
The virtual private cloud gateway searches whether in the domain name parsing flow table data in the Centralized Controller In the presence of matched first domain name of domain name requested access to the cloud host;
First domain name if it exists, then the virtual private cloud gateway is from the domain name solution in the Centralized Controller It analyses and obtains the first IP address corresponding with first domain name in flow table data;
First domain name mapping back message is issued the cloud host by the virtual private cloud gateway, wherein described first Domain name mapping back message carries first IP address.
Second aspect of the present invention provides a kind of device of domain name mapping, comprising:
Receiving module, for receiving the first domain name that the cloud host is sent when cloud host initiates domain name analysis request Analysis request message, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to;
Searching module, in the Centralized Controller domain name parsing flow table data in search whether exist with Matched first domain name of the domain name that the cloud host requests access to;
Module is obtained, for first domain name if it exists, then from the domain name resolution flow in the Centralized Controller The first IP address corresponding with first domain name is obtained in table data;
Sending module, for the first domain name mapping back message to be issued the cloud host, wherein the first domain name solution It analyses back message and carries first IP address.
Third aspect present invention provides a kind of electronic equipment of domain name mapping, and the electronic equipment includes processor, deposits Reservoir, communication interface and one or more programs, wherein one or more of programs are stored in the memory, And it is configured to be executed by the processor, described program includes the instruction for executing any of the above-described embodiment.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer readable storage medium is used for Computer program is stored, the computer program is executed by the processor, to realize any of the above-described embodiment.
It can be seen that being equipped with collection in virtual private cloud the invention proposes a kind of method of domain name mapping and relevant apparatus Middle controller, when needing to carry out customized domain name mapping to the cloud host in virtual private cloud, by the domain name mapping of cloud host Flow table data are stored in Centralized Controller, and when cloud host initiates domain name analysis request, virtual private cloud gateway receives cloud host The domain name mapping request message of transmission, the domain name mapping request message carry the domain name that cloud host requests access to, then virtual private There is cloud gateway to initiate to inquire to Centralized Controller, inquiring in the domain name mapping flow table data stored in Centralized Controller whether there is The matched domain name of domain name requested access to cloud host, and if it exists, then obtained and the domain name from the domain name mapping flow table data The IP address is returned to cloud host by corresponding IP address, and cloud host can access the IP address.When needing to cloud host When customized domain name mapping is made an amendment, it is only necessary to the domain name mapping flow table data of cloud host are modified in Centralized Controller, Domain name and the corresponding IP address of domain name are modified in host file without being used in cloud host, it in this way can be flexibly to separate unit cloud master Machine, Duo Taiyun host or entire virtual private cloud system carry out customized domain name mapping.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of domain name analytic method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another domain name analytic method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another domain name analytic method provided in an embodiment of the present invention;
Fig. 4 is the virtual private cloud system schematic in the embodiment of the present invention;
Fig. 5 is a kind of Centralized Controller schematic diagram provided in an embodiment of the present invention;
Fig. 6 is another Centralized Controller schematic diagram provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of domain name mapping device provided in an embodiment of the present invention;
Fig. 8 be the present embodiments relate to hardware running environment electronic devices structure schematic diagram.
Specific embodiment
The embodiment of the present invention provides the method and relevant apparatus of domain name mapping, to flexibly to the cloud in virtual private cloud Host carries out customized domain name mapping.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
The embodiment of the present invention is applied to virtual private cloud system, and virtual private cloud system is equipped with Centralized Controller, concentrates Controller is used to control the operation of entire virtual private cloud system, customized when needing to carry out the cloud host in virtual private cloud When domain name mapping, first by the customized domain name mapping data of the cloud host, i.e. domain name mapping flow table data are stored in the concentration In controller, which includes N number of domain name and N number of IP address, and N number of domain name and N number of IP address correspond, N is positive integer, further includes virtual private cloud gateway and home domain name resolution server, home domain name solution in virtual private cloud system It analyses server and is used for domain name mapping.
Referring first to Fig. 1, Fig. 1 is a kind of flow chart for domain name analytic method that one embodiment of the present of invention provides.Its In, as shown in Figure 1, a kind of domain name analytic method that one embodiment of the present of invention provides may include:
101, when cloud host initiates domain name analysis request, virtual private cloud gateway receives the first domain that the cloud host is sent Name analysis request message, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to.
Cloud host in virtual private cloud can directly input domain name when accessing website, but access the corresponding net of the domain name When standing, need to be converted to domain name IP address to accessing the IP address, when the cloud host initiates domain name analysis request, the cloud Host generates the first domain name mapping request message, which carries the domain that the cloud host requests access to The first domain name mapping request message is issued virtual private cloud gateway by name, cloud host, virtual private cloud gateway receive this first Domain name mapping request message, and initiate to inquire to Centralized Controller.
102, the virtual private cloud gateway is searched in the domain name parsing flow table data in the Centralized Controller With the presence or absence of matched first domain name of domain name requested access to the cloud host.
The domain name mapping flow table data are stored in Centralized Controller, and the domain name mapping flow table data include N number of domain Name and N number of IP address, wherein each domain name has a corresponding IP address, and N is positive integer, in the domain name mapping flow table number Corresponding IP address can be obtained according to middle any one domain name according in N number of domain name, virtual private cloud gateway is N number of Search whether there is the first domain name identical with the domain name that the cloud host requests access in domain name.
Optionally, which also carries the IP address of the cloud host, and virtual private cloud gateway exists Before searching whether to have matched first domain name of domain name requested access to the cloud host in domain name mapping flow table data, virtually Private clound gateway inquires whether the cloud host has access authority according to the IP address of the cloud host, when the cloud host does not have access right In limited time, it is matched will not to search the domain name requested access to the cloud host in domain name mapping flow table data for virtual private cloud gateway First domain name, virtual private cloud gateway send the first domain name mapping error message, first domain name mapping error to the cloud host Message is used to indicate the cloud host and generates pop-up of the prompt without access authority.
103, first domain name if it exists, then the virtual private cloud gateway is from the domain in the Centralized Controller The first IP address corresponding with first domain name is obtained in name parsing flow table data.
First domain name if it exists, then in the domain name mapping flow table data in the presence of first IP corresponding with first domain name Location, virtual private cloud gateway obtains first IP address from the domain name mapping flow table data, by accessing first IP address It may have access to the domain name that the cloud host requests access to.
104, the first domain name mapping back message is issued the cloud host by the virtual private cloud gateway, wherein described First domain name mapping back message carries first IP address.
First domain name mapping back message is issued the cloud host by virtual private cloud gateway, which responds report Text carries first IP address can be according to the first domain name solution after the cloud host receives the first domain name mapping back message First IP address that analysis back message carries accesses first IP address.
Referring to fig. 2, Fig. 2 be another embodiment of the present invention provides another domain name analytic method flow chart.Its In, as shown in Fig. 2, another embodiment of the present invention provides another domain name analytic method may include:
201, when cloud host initiates domain name analysis request, virtual private cloud gateway receives the first domain name solution that cloud host is sent Analyse request message, wherein the first domain name mapping request message carries the domain name that cloud host requests access to.
Cloud host in virtual private cloud can directly input domain name when accessing website, but access the corresponding net of the domain name When standing, need to be converted to domain name IP address to accessing the IP address, when the cloud host initiates domain name analysis request, the cloud Host generates the first domain name mapping request message, which carries the domain that the cloud host requests access to The first domain name mapping request message is issued virtual private cloud gateway by name, cloud host, virtual private cloud gateway receive this first Domain name mapping request message, and initiate to inquire to Centralized Controller.
202, it searches whether to exist in domain name mapping flow table data of the virtual private cloud gateway in Centralized Controller and cloud Matched first domain name of the domain name that host requests access to.
The domain name mapping flow table data are stored in Centralized Controller, and the domain name mapping flow table data include N number of domain Name and N number of IP address, wherein each domain name has a corresponding IP address, and N is positive integer, in the domain name mapping flow table number Corresponding IP address can be obtained according to middle any one domain name according in N number of domain name, virtual private cloud gateway is N number of Search whether there is the first domain name identical with the domain name that the cloud host requests access in domain name.
Optionally, which also carries the IP address of the cloud host, and virtual private cloud gateway exists Before searching whether to have matched first domain name of domain name requested access to the cloud host in domain name mapping flow table data, virtually Private clound gateway inquires whether the cloud host has access authority according to the IP address of the cloud host, when the cloud host does not have access right In limited time, it is matched will not to search the domain name requested access to the cloud host in domain name mapping flow table data for virtual private cloud gateway First domain name, virtual private cloud gateway send the first domain name mapping error message, first domain name mapping error to the cloud host Message is used to indicate the cloud host and generates pop-up of the prompt without access authority.
203, the first domain name if it does not exist, then the first domain name mapping request message is transmitted to local by virtual private cloud gateway Domain name resolution server.
First domain name if it does not exist does not store the domain name mapping flow table data of the cloud host then in Centralized Controller, empty The first domain name mapping request message is transmitted to home domain name resolution server by quasi- private clound gateway, which asks Message is asked to carry the domain name that the cloud host requests access to, which is used to indicate home domain name parsing clothes Business device parses the first domain name mapping request message.
204, home domain name resolution server searches whether the domain requested access to cloud host in local cache record The matched domain name of name.
Browser can cache domain name and the corresponding IP address of domain name after the IP address for obtaining website domain name, by domain Name and the corresponding IP address of domain name are buffered in local cache, to reduce the loss of network request, domain name and the corresponding IP of domain name Address caching has fixed cache-time in local cache.
In fixed cache-time, if there is the domain name requested access to identical with the domain name stored in local cache, that Home domain name resolution server does not need to parse domain name, and IP corresponding with domain name can be obtained from local cache Address, if not in the identical domain name of domain name requested access in the cache of local, home domain name resolution server needs The domain name requested access to is parsed to obtain the corresponding IP address of domain name, fixes cache-time if more than, then this Region name resolution server still needs to parse domain name to obtain the corresponding IP address of domain name.
If 205, having the matched domain name of domain name requested access to cloud host, home domain name parsing in local cache record Server obtains IP address corresponding with the domain name that cloud host requests access to from local cache record.
206, the IP address is returned to virtual private cloud gateway by home domain name resolution server.
207, the IP address is returned to cloud host by virtual private cloud gateway.
If 208, the matched domain name of domain name not requested access to cloud host in local cache record, home domain name solution The domain name that analysis server requests access to cloud host is parsed to determine whether that parsing obtains the domain requested access to cloud host Corresponding second IP address of name.
Home domain name resolution server reads the address of root name server from configuration file, sends out to root name server Domain name mapping request is played, domain name mapping request carries the domain name that the cloud host requests access to.
After root name server receives domain name mapping request, the address of generic top-level domain server is returned into local Domain name resolution server, home domain name resolution server continue according to the address of generic top-level domain server to general top level domain Name server initiates domain name analysis request.
The address of domain server is returned to home domain name resolution server, home domain name solution by generic top-level domain server It analyses server and domain name analysis request is initiated to domain server according to the address of domain server, domain server parses cloud host request The IP address is returned to this by IP address corresponding with the domain name that the cloud host requests access to that the domain name of access is obtained, domain server Region name resolution server.
If 209, parsing obtains the second IP address, home domain name resolution server issues the second IP address virtual privately owned Cloud gateway.
If parsing obtains the second IP address, home domain name resolution server translates domain names into successfully message and issues virtual private There is cloud gateway, wherein the domain name mapping success message carries second IP address.
210, the second domain name mapping back message is issued cloud host by virtual private cloud gateway, wherein the second domain name mapping Back message carries the second IP address.
If 211, parsing does not obtain the second IP address, home domain name resolution server translates domain names into error messages hair Give virtual private cloud gateway.
212, when virtual private cloud gateway receives domain name mapping error messages, the second domain name mapping error message is issued Cloud host.
213, when cloud host receives the second domain name mapping error message, the pop-up of prompt domain name mapping error is generated.
Referring to Fig. 3, Fig. 3 be another embodiment of the present invention provides another domain name analytic method flow chart.Its In, as shown in figure 3, another embodiment of the present invention provides another domain name analytic method in, the M of M platform cloud host M domain name mapping flow table data correlation of identity and the M platform cloud host is stored in Centralized Controller, M platform host, M Identity and M domain name mapping flow table data correspond, and another domain name analytic method may include:
301, when cloud host initiates domain name analysis request, virtual private cloud gateway receives the second domain name solution that cloud host is sent Analyse request message, wherein the domain that the second domain name mapping request message carries the identity of cloud host and cloud host requests access to Name.
Cloud host in virtual private cloud can directly input domain name when accessing website, but access the corresponding net of the domain name When standing, need to be converted to domain name IP address to accessing the IP address, when the cloud host initiates domain name analysis request, the cloud Host generates the second domain name mapping request message, which carries the identity of the cloud host and be somebody's turn to do The second domain name mapping request message is issued virtual private cloud gateway by the domain name that cloud host requests access to, cloud host, virtual private There is cloud gateway to receive the second domain name mapping request message, and initiates to inquire to Centralized Controller.
302, virtual private cloud gateway searches whether to exist in Centralized Controller matched with the identity of cloud host First identity.
Associated storage M domain name solution of M identity of M platform cloud host and the M platform cloud host in Centralized Controller Analyse flow table data, wherein M platform host, M identity and M domain name mapping flow table data correspond.
Virtual private cloud gateway needs first to inquire centralized control before the domain name mapping flow table data for inquiring the cloud host With the presence or absence of matched first identity of identity with the cloud host in device, if there is no so illustrating centralized control The domain name mapping flow table data of the cloud host are not present in device, virtual private cloud gateway turns the second domain name mapping request message Home domain name resolution server is issued, the domain name that home domain name resolution server requests access to the cloud host parses.
303, the first identity if it exists, virtual private cloud gateway obtain and the first identity from Centralized Controller First domain name mapping flow table data of associated storage.
304, virtual private cloud gateway searches whether to exist in the first domain name mapping flow table data and requests to visit with cloud host Matched second domain name of the domain name asked.
Optionally, which also carries the IP address of the cloud host, and virtual private cloud gateway exists Before searching whether to have matched second domain name of domain name requested access to the cloud host in first domain name mapping flow table data, Virtual private cloud gateway inquires whether the cloud host has access authority according to the IP address of the cloud host, when the cloud host is not visited When asking permission, virtual private cloud gateway will not search the domain requested access to the cloud host in the first domain name mapping flow table data Matched second domain name of name, virtual private cloud gateway send the first domain name mapping error message, first domain name to the cloud host Parsing error message is used to indicate the cloud host and generates pop-up of the prompt without access authority.
305, the second domain name, virtual private cloud gateway obtain and the second domain from the first domain name mapping flow table data if it exists The corresponding third IP address of name.
306, third domain name mapping back message is issued cloud host by virtual private cloud gateway, wherein third domain name mapping Back message carries third IP address.
307, the second domain name mapping request message is transmitted to local domain by the second domain name, virtual private cloud gateway if it does not exist Name resolution server, the second domain name mapping request message are used to indicate home domain name resolution server and request the second domain name mapping Message is parsed.
Home domain name resolution server searches whether the domain name requested access to cloud host in local cache record The domain name matched.
Browser can cache domain name and the corresponding IP address of domain name after the IP address for obtaining website domain name, by domain Name and the corresponding IP address of domain name are buffered in local cache, to reduce the loss of network request, domain name and the corresponding IP of domain name Address caching has fixed cache-time in local cache.
If the matched domain name of domain name not requested access to cloud host in local cache record, home domain name parsing clothes The domain name that business device requests access to cloud host parses, specifically:
Home domain name resolution server reads the address of root name server from configuration file, sends out to root name server Domain name mapping request is played, domain name mapping request carries the domain name that the cloud host requests access to.
After root name server receives domain name mapping request, the address of generic top-level domain server is returned into local Domain name resolution server, home domain name resolution server continue according to the address of generic top-level domain server to general top level domain Name server initiates domain name analysis request.
The address of domain server is returned to home domain name resolution server, home domain name solution by generic top-level domain server It analyses server and domain name analysis request is initiated to domain server according to the address of domain server, domain server parses cloud host request The IP address is returned to this by IP address corresponding with the domain name that the cloud host requests access to that the domain name of access is obtained, domain server Region name resolution server.
The IP address is issued virtual private cloud gateway by home domain name resolution server.
The IP address is issued the cloud host by virtual private cloud gateway.
308, the second domain name mapping request message is transmitted to this by the first identity if it does not exist, virtual private cloud gateway Region name resolution server, the second domain name mapping request message are used to indicate home domain name resolution server to the second domain name mapping Request message is parsed.
Referring to Fig. 7, Fig. 7 be another embodiment of the present invention provides a kind of domain name mapping device schematic diagram.Wherein, As shown in fig. 7, another embodiment of the present invention provides a kind of domain name mapping device may include:
Receiving module 701, for receiving the first domain that the cloud host is sent when cloud host initiates domain name analysis request Name analysis request message, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to.
Searching module 702, for searching whether to deposit in the domain name parsing flow table data in the Centralized Controller In matched first domain name of domain name requested access to the cloud host.
Module 703 is obtained, for first domain name if it exists, then from the domain name parsing in the Centralized Controller The first IP address corresponding with first domain name is obtained in flow table data.
Sending module 704, for the first domain name mapping back message to be issued the cloud host, wherein first domain Name parsing back message carries first IP address.
The specific embodiment of domain name mapping device of the present invention and each embodiment of above-mentioned domain name analytic method are essentially identical, This is not repeated them here.
Referring to Fig. 8, Fig. 8 is the electronic devices structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The electronic equipment of domain name mapping of the embodiment of the present invention is virtual private cloud gateway, and cloud host can be mobile phone, plate Computer, laptop, palm PC, mobile internet device, wearable device or other kinds of terminal.
Wherein, as shown in figure 8, the electronic equipment for the hardware running environment that the embodiment of the present invention is related to may include:
Processor 801, such as CPU.
Memory 802, optionally, memory can be high speed RAM memory, be also possible to stable memory, such as Magnetic disk storage.
Communication interface 803, for realizing the connection communication between processor 801 and memory 802.
It will be understood by those skilled in the art that the structure of domain name mapping electronic equipment shown in Fig. 8 is not constituted to domain The restriction of name parsing electronic equipment may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
As shown in figure 8, may include operating system, network communication module and the program of domain name mapping in memory 802. Operating system is to manage and control the program of the electronic equipment hardware and software resource of domain name mapping, supports the program of domain name mapping And the operation of other software or program.Network communication module for realizing the communication between each component in the inside of memory 802, with And it is communicated between other hardware and softwares in the electronic equipment of domain name mapping.
In the electronic equipment of domain name mapping shown in Fig. 8, the electronic apparatus application is in virtual private cloud system, the void To intend being equipped with Centralized Controller in privately owned cloud system, the domain name mapping flow table data of cloud host are stored in the Centralized Controller, Domain name parsing flow table data packet includes N number of domain name and N number of IP address, and N number of domain name and N number of IP address one are a pair of It answers, N is positive integer.Processor 801 is used to execute the program of the domain name mapping stored in memory 802, performs the steps of
When the cloud host initiates domain name analysis request, the first domain name mapping request report that the cloud host is sent is received Text, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to.
It searches whether to exist in the domain name parsing flow table data in the Centralized Controller and be asked with the cloud host Seek matched first domain name of the domain name of access.
First domain name if it exists, then from the Centralized Controller domain name parsing flow table data in obtain with Corresponding first IP address of first domain name.
First domain name mapping back message is issued into the cloud host, wherein the first domain name mapping back message is taken With first IP address.
Optionally, the first domain name mapping request message also carries the IP address of the cloud host, controls in the concentration Search whether to exist the domain name requested access to the cloud host matched the in domain name parsing flow table data in device processed Before the step of one domain name, processor 801 is used to execute the program of the domain name mapping stored in memory 802, realizes following step It is rapid:
Inquire whether the cloud host has access authority according to the IP address of the cloud host.
When the cloud host does not have access authority, the first domain name mapping error message is issued into the cloud host, wherein The first domain name mapping error message is used to indicate the cloud host and generates pop-up of the prompt without access authority.
Further, processor 801 is also used to execute the program of the domain name mapping stored in memory 802, realizes following Step:
The first domain name mapping request message is then transmitted to home domain name parsing clothes by first domain name if it does not exist Business device, the first domain name mapping request message are used to indicate the home domain name resolution server to first domain name mapping Request message is parsed.
When the home domain name resolution server to the first domain name mapping request message parsed to obtain with it is described When corresponding second IP address of the domain name that cloud host requests access to, receive that the home domain name resolution server sends described the Two IP address.
Second domain name mapping back message is issued into the cloud host, wherein the second domain name mapping back message is taken With second IP address.
Further, processor 801 is also used to execute the program of the domain name mapping stored in memory 802, realizes following Step:
When the home domain name resolution server the first domain name mapping request message is parsed do not obtain with When corresponding second IP address of the domain name that the cloud host requests access to, receives the home domain name resolution server and send Domain name mapping error messages, wherein domain name parsing error messages be used to indicate the virtual private cloud gateway for second Domain name mapping error message issues the cloud host, and the second domain name mapping error message is used to indicate the cloud host and generates Prompt the pop-up of domain name mapping error.
Optionally, M domain name mapping flow table data correlation of M identity of M platform cloud host and the M platform cloud host It is stored in the Centralized Controller, the M platform cloud host, the M identity and the M domain name mapping flow table data It corresponds.Processor 801 is used to execute the program of the domain name mapping stored in memory 802, performs the steps of
When the cloud host initiates domain name analysis request, the second domain name mapping request report that the cloud host is sent is received Text, wherein the second domain name mapping request message carries the identity of the cloud host and the cloud host requests access to Domain name.
Search whether exist and the cloud master in the Centralized Controller according to the second domain name mapping request message The corresponding third IP address of the domain name that machine requests access to.
The third IP address if it exists then obtains the third IP address from the Centralized Controller.
Third domain name mapping back message is issued into the cloud host, wherein the third domain name mapping back message is taken With the third IP address.
Searching whether exist and the cloud in the Centralized Controller according to the second domain name mapping request message In the step of domain name that host requests access to corresponding third IP address, processor 801 is used to executing to be stored in memory 802 The program of domain name mapping, performs the steps of
The matched first identity mark of identity for having with the cloud host is searched whether in the Centralized Controller Know.
First identity if it exists is then obtained from the Centralized Controller and is associated with first identity First domain name mapping flow table data of storage.
Search whether there is the domain name requested access to the cloud host in the first domain name mapping flow table data The second domain name matched.
Second domain name if it exists is then searched in the first domain name mapping flow table data and is existed and second domain The corresponding third IP address of name.
Further, processor 801 is also used to execute the program of the domain name mapping stored in memory 802, realizes following Step:
The second domain name mapping request message is then transmitted to the home domain name by the third IP address if it does not exist Resolution server, the second domain name mapping request message are used to indicate the home domain name resolution server to second domain Name analysis request message is parsed.
When the home domain name resolution server to the second domain name mapping request message parsed to obtain with it is described When corresponding four IP address of the domain name that cloud host requests access to, receive that the home domain name resolution server sends described the Four IP address.
4th domain name mapping back message is issued into the cloud host, wherein the 4th domain name mapping back message is taken With the 4th IP address.
It should also be noted that, for the various method embodiments described above, for simple description, therefore, it is stated as a systems The combination of actions of column, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because For according to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method of domain name mapping, which is characterized in that the method is applied to virtual private cloud system, described virtual privately owned Centralized Controller is equipped in cloud system, the domain name mapping flow table data of cloud host are stored in the Centralized Controller, the domain Name parsing flow table data packet includes N number of domain name and N number of IP address, and N number of domain name and N number of IP address correspond, and N is positive Integer, comprising:
When the cloud host initiates domain name analysis request, virtual private cloud gateway receives the first domain name solution that the cloud host is sent Analyse request message, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to;
The virtual private cloud gateway searches whether exist in the domain name parsing flow table data in the Centralized Controller Matched first domain name of domain name requested access to the cloud host;
First domain name if it exists, then the virtual private cloud gateway is from the domain name resolution flow in the Centralized Controller The first IP address corresponding with first domain name is obtained in table data;
First domain name mapping back message is issued the cloud host by the virtual private cloud gateway, wherein first domain name It parses back message and carries first IP address.
2. the method according to claim 1, wherein the first domain name mapping request message also carries the cloud The IP address of host, the virtual private cloud gateway are searched in the domain name parsing flow table data in the Centralized Controller Before matched first domain name of domain name requested access to the cloud host, comprising:
The virtual private cloud gateway inquires whether the cloud host has access authority according to the IP address of the cloud host;
When the cloud host does not have access authority, the first domain name mapping error message is issued institute by the virtual private cloud gateway State cloud host, wherein the first domain name mapping error message is used to indicate the cloud host and generates prompt without access authority Pop-up.
3. according to the method described in claim 2, it is characterized by further comprising:
First domain name if it does not exist, then the first domain name mapping request message is transmitted to by the virtual private cloud gateway Home domain name resolution server, the first domain name mapping request message are used to indicate the home domain name resolution server to institute The first domain name mapping request message is stated to be parsed;
When the home domain name resolution server is parsed to obtain and the cloud master to the first domain name mapping request message When corresponding second IP address of the domain name that machine requests access to, the virtual private cloud gateway receives the home domain name analysis service Second IP address that device is sent;
Second domain name mapping back message is issued the cloud host by the virtual private cloud gateway, wherein second domain name It parses back message and carries second IP address.
4. according to the method described in claim 3, it is characterized by further comprising:
When the home domain name resolution server the first domain name mapping request message is parsed do not obtain with it is described When corresponding second IP address of the domain name that cloud host requests access to, the virtual private cloud gateway receives the home domain name The domain name mapping error messages that resolution server is sent, wherein domain name parsing error messages are used to indicate the virtual private There is cloud gateway that the second domain name mapping error message is issued the cloud host, the second domain name mapping error message is used to indicate The cloud host generates the pop-up of prompt domain name mapping error.
5. the method according to claim 1, wherein M identity of M platform cloud host and the M platform cloud master M domain name mapping flow table data correlation of machine is stored in the Centralized Controller, the M platform cloud host, the M identity mark Know and the M domain name mapping flow table data correspond, further includes:
When the cloud host initiates domain name analysis request, the virtual private cloud gateway receives the second domain that the cloud host is sent Name analysis request message, wherein the second domain name mapping request message carry the cloud host identity and the cloud The domain name that host requests access to;
The virtual private cloud gateway searches whether in the Centralized Controller according to the second domain name mapping request message In the presence of the corresponding third IP address of the domain name that is requested access to the cloud host;
The third IP address if it exists, then the virtual private cloud gateway obtains the 3rd IP from the Centralized Controller Address;
Third domain name mapping back message is issued the cloud host by the virtual private cloud gateway, wherein the third domain name It parses back message and carries the third IP address.
6. according to the method described in claim 5, it is characterized in that, the virtual private cloud gateway is according to the second domain name solution Analysis request message searches whether there is third corresponding with the domain name that the cloud host requests access in the Centralized Controller IP address includes:
The virtual private cloud gateway searches whether the identity for having with the cloud host in the Centralized Controller The first identity matched;
First identity if it exists, then the virtual private cloud gateway obtains and described the from the Centralized Controller First domain name mapping flow table data of one identity associated storage;
The virtual private cloud gateway is searched whether to exist in the first domain name mapping flow table data and be asked with the cloud host Seek matched second domain name of the domain name of access;
Second domain name if it exists, then the virtual private cloud gateway is searched in the first domain name mapping flow table data and is deposited In the third IP address corresponding with second domain name.
7. according to the method described in claim 6, it is characterized by further comprising:
The third IP address if it does not exist, then the virtual private cloud gateway forwards the second domain name mapping request message To the home domain name resolution server, the second domain name mapping request message is used to indicate the home domain name analysis service Device parses the second domain name mapping request message;
When the home domain name resolution server is parsed to obtain and the cloud master to the second domain name mapping request message When corresponding four IP address of the domain name that machine requests access to, the virtual private cloud gateway receives the home domain name analysis service The 4th IP address that device is sent;
4th domain name mapping back message is issued the cloud host by the virtual private cloud gateway, wherein the 4th domain name It parses back message and carries the 4th IP address.
8. a kind of device of domain name mapping, which is characterized in that described device includes:
Receiving module, for receiving the first domain name mapping that the cloud host is sent when cloud host initiates domain name analysis request Request message, wherein the first domain name mapping request message carries the domain name that the cloud host requests access to;
Searching module, in the Centralized Controller domain name parsing flow table data in search whether exist with it is described Matched first domain name of the domain name that cloud host requests access to;
Module is obtained, for first domain name if it exists, then parses flow table number from the domain name in the Centralized Controller The first IP address corresponding with first domain name is obtained according to middle;
Sending module, for the first domain name mapping back message to be issued the cloud host, wherein first domain name mapping is returned Message is answered to carry first IP address.
9. a kind of electronic equipment of domain name mapping, which is characterized in that the electronic equipment includes that processor, memory, communication connect Mouthful and one or more program, wherein one or more of programs are stored in the memory, and be configured by The processor executes, and described program includes the steps that requiring the instruction in any one of 1 to 7 method for perform claim.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing computer Program, the computer program are executed by the processor, to realize the described in any item methods of claim 1 to 7.
CN201910007409.9A 2019-01-04 2019-01-04 Domain name resolution method and related device Active CN109587290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910007409.9A CN109587290B (en) 2019-01-04 2019-01-04 Domain name resolution method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910007409.9A CN109587290B (en) 2019-01-04 2019-01-04 Domain name resolution method and related device

Publications (2)

Publication Number Publication Date
CN109587290A true CN109587290A (en) 2019-04-05
CN109587290B CN109587290B (en) 2022-06-28

Family

ID=65916047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910007409.9A Active CN109587290B (en) 2019-01-04 2019-01-04 Domain name resolution method and related device

Country Status (1)

Country Link
CN (1) CN109587290B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071918A (en) * 2019-04-19 2019-07-30 北京那镁克科技有限公司 A kind of data communications method and device based on mixed cloud
CN112910919A (en) * 2021-02-26 2021-06-04 北京百度网讯科技有限公司 Analysis method, analysis device, electronic device, and storage medium
CN113055502A (en) * 2021-02-08 2021-06-29 中国电子科技集团公司第十五研究所 Automatic domain name registration method suitable for private cloud
CN113630479A (en) * 2021-07-29 2021-11-09 万翼科技有限公司 Domain name resolution method and related product
CN113992626A (en) * 2021-10-22 2022-01-28 浪潮思科网络科技有限公司 Method, device and storage medium for realizing DNS
CN115529292A (en) * 2022-10-11 2022-12-27 中国农业银行股份有限公司 Access request processing method, device, equipment, system and storage medium
CN115529245A (en) * 2021-06-25 2022-12-27 深信服科技股份有限公司 Stream information completion method and device, cloud host equipment and computer storage medium
CN116033020A (en) * 2022-12-27 2023-04-28 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for enhancing physical gateway computing power
CN116033020B (en) * 2022-12-27 2024-05-10 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for enhancing physical gateway computing power

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790808A (en) * 2011-05-16 2012-11-21 奇智软件(北京)有限公司 Domain name resolution method and system, client
CN102790809A (en) * 2011-05-16 2012-11-21 奇智软件(北京)有限公司 Domain name system resolution method, device and client
CN103297548A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating domain name resolution rules in cloud computing environment
CN103780715A (en) * 2014-01-29 2014-05-07 百度在线网络技术(北京)有限公司 Domain name resolution implementing method, client side and cloud server
CN105095023A (en) * 2015-08-18 2015-11-25 北京皮尔布莱尼软件有限公司 Cloud host establishing device and method and calculating equipment
CN105227686A (en) * 2014-06-20 2016-01-06 中国电信股份有限公司 The Dynamic Configuration of cloud host domain name and system
CN107580065A (en) * 2017-09-15 2018-01-12 中国联合网络通信集团有限公司 A kind of private clound cut-in method and equipment
US10033691B1 (en) * 2016-08-24 2018-07-24 Amazon Technologies, Inc. Adaptive resolution of domain name requests in virtual private cloud network environments

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790808A (en) * 2011-05-16 2012-11-21 奇智软件(北京)有限公司 Domain name resolution method and system, client
CN102790809A (en) * 2011-05-16 2012-11-21 奇智软件(北京)有限公司 Domain name system resolution method, device and client
CN103297548A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating domain name resolution rules in cloud computing environment
CN103780715A (en) * 2014-01-29 2014-05-07 百度在线网络技术(北京)有限公司 Domain name resolution implementing method, client side and cloud server
CN105227686A (en) * 2014-06-20 2016-01-06 中国电信股份有限公司 The Dynamic Configuration of cloud host domain name and system
CN105095023A (en) * 2015-08-18 2015-11-25 北京皮尔布莱尼软件有限公司 Cloud host establishing device and method and calculating equipment
US10033691B1 (en) * 2016-08-24 2018-07-24 Amazon Technologies, Inc. Adaptive resolution of domain name requests in virtual private cloud network environments
CN107580065A (en) * 2017-09-15 2018-01-12 中国联合网络通信集团有限公司 A kind of private clound cut-in method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阮晓龙: "基于私有云数据中心开展实验教学的研究与实践", 《中国教育技术装备》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071918A (en) * 2019-04-19 2019-07-30 北京那镁克科技有限公司 A kind of data communications method and device based on mixed cloud
CN110071918B (en) * 2019-04-19 2020-10-09 北京那镁克科技有限公司 Data communication method and device based on hybrid cloud
CN113055502A (en) * 2021-02-08 2021-06-29 中国电子科技集团公司第十五研究所 Automatic domain name registration method suitable for private cloud
CN112910919A (en) * 2021-02-26 2021-06-04 北京百度网讯科技有限公司 Analysis method, analysis device, electronic device, and storage medium
CN112910919B (en) * 2021-02-26 2023-04-07 北京百度网讯科技有限公司 Analysis method, analysis device, electronic device, and storage medium
CN115529245A (en) * 2021-06-25 2022-12-27 深信服科技股份有限公司 Stream information completion method and device, cloud host equipment and computer storage medium
CN113630479A (en) * 2021-07-29 2021-11-09 万翼科技有限公司 Domain name resolution method and related product
CN113630479B (en) * 2021-07-29 2023-05-23 万翼科技有限公司 Domain name resolution method and related products
CN113992626A (en) * 2021-10-22 2022-01-28 浪潮思科网络科技有限公司 Method, device and storage medium for realizing DNS
CN115529292A (en) * 2022-10-11 2022-12-27 中国农业银行股份有限公司 Access request processing method, device, equipment, system and storage medium
CN116033020A (en) * 2022-12-27 2023-04-28 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for enhancing physical gateway computing power
CN116033020B (en) * 2022-12-27 2024-05-10 中国联合网络通信集团有限公司 Method, device, equipment and storage medium for enhancing physical gateway computing power

Also Published As

Publication number Publication date
CN109587290B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN109587290A (en) A kind of method and relevant apparatus of domain name mapping
RU2673403C2 (en) Website access method, device and website system
CN102647482B (en) Method and system for accessing website
CN102984286B (en) Method and device and system of domain name server (DNS) for buffering updating
US7827280B2 (en) System and method for domain name filtering through the domain name system
CN107948203A (en) A kind of container login method, application server, system and storage medium
CN103685590B (en) Obtain the method and system of IP address
US20090177778A1 (en) Session Affinity Cache and Manager
CN105939313B (en) Status code reorientation method and device
CN108183975A (en) A kind of method and system of domain name mapping
CN102143243A (en) Dynamic routing processing method and dynamic routing processing device and home gateway thereof
CN110557284A (en) data aggregation method and device based on client gateway
US7949724B1 (en) Determining attention data using DNS information
CN111641676A (en) Method and device for constructing third-party cloud monitoring service
CN112788126A (en) Resource downloading method, device, server and storage medium
CN107070988A (en) Message processing method and device
CN109067936A (en) A kind of method and device of domain name mapping
CN111147308A (en) Network management method and system based on micro-service architecture
CN111966482A (en) Edge computing system
CN109561165A (en) Domain name system configuration method and relevant apparatus
CN105871961B (en) A kind of method and device of gray scale publication routing
CN107911499A (en) Multi-line domain name analytic method and device
CN104980311B (en) Predict the method, apparatus and system of network access
CN108494870A (en) Dynamic data loading method based on CDN and device
CN103581260B (en) Customize the system and method for http proxy content

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