Summary of the invention
In view of this, the invention provides update method and the device of domain name mapping rule in a kind of cloud computing environment, bring extra expense for operation and the maintenance of cloud computing environment when upgrading the domain name mapping rule in the prior art to overcome, and update efficiency and the low problem of accuracy rate.
For achieving the above object, the invention provides following technical scheme:
The update method of domain name mapping rule in a kind of cloud computing environment comprises:
Whether the current IP that detects current fictitious host computer changes;
Under the situation that the current IP of described current fictitious host computer changes, upgrade the current IP of current fictitious host computer described in the fictitious host computer registration table, and from home domain name resolution rules file, obtain the current IP of other fictitious host computers that described current fictitious host computer relies on; Wherein, described fictitious host computer registration table is used for the sign of each fictitious host computer of storage and the mapping relations of current IP; Described home domain name resolution rules file is used for the described current fictitious host computer of storage to the domain name mapping rule of described other fictitious host computers, and the domain name resolution rules comprises the domain name of described other fictitious host computers and the mapping relations of current IP;
Described current fictitious host computer sends the IP change message according to the current IP of described other fictitious host computers to described other fictitious host computers, described IP change message comprises the sign of described current fictitious host computer and the IP after the variation thereof, judges according to described IP change message whether described current fictitious host computer is the fictitious host computer of its dependence to trigger described other fictitious host computers; If then described other fictitious host computers upgrade local domain name mapping rule according to the IP after the described variation, if not, then described other fictitious host computers are refused described IP change message.
Preferably, after described other fictitious host computers are refused described IP change message, also comprise:
Described current fictitious host computer obtains the IP after the renewal of described other fictitious host computers from described fictitious host computer registration table, and sends the IP change message again according to the IP after the described renewal;
Under the situation that the IP change message is refused by described other fictitious host computers again, described current fictitious host computer is deleted corresponding domain name mapping rule from the domain name mapping rule file of this locality described.
Preferably, also comprise:
After the domain name mapping rule that receives the user increases instruction, the corresponding domain name mapping rule that increases in the home domain name resolution rules file of described current fictitious host computer, perhaps,
After the domain name mapping redundant rule elimination instruction that receives the user, corresponding deletion domain name mapping rule in the home domain name resolution rules file of described current fictitious host computer.
Preferably, also comprise:
Described current fictitious host computer to increase or the domain name mapping rule of deletion in other fictitious host computers of relying on send domain names and rely on request or remove domain name and rely on request so that described other fictitious host computers increase or the local corresponding domain name mapping rule of deletion.
Preferably, whether the current IP of the current fictitious host computer of described detection changes, and specifically comprises:
Use under the situation of static IP at described current fictitious host computer, directly obtain the IP of described current fictitious host computer, and judge whether consistent with the IP that preserves in advance;
Perhaps, use under the situation of dynamic IP at described current fictitious host computer, periodically obtain the IP of described current fictitious host computer, and judge whether the current IP that obtains is consistent with the last IP that preserves.
The updating device of domain name mapping rule in a kind of cloud computing environment comprises:
Whether detection module changes for detection of the current IP of current fictitious host computer;
Update module is used for upgrading the current IP of current fictitious host computer described in the fictitious host computer registration table under the situation that the current IP at described current fictitious host computer changes; Described fictitious host computer registration table is used for the sign of each fictitious host computer of storage and the mapping relations of current IP;
Acquisition module is used for obtaining from home domain name resolution rules file the current IP of other fictitious host computers that described current fictitious host computer relies on; Described home domain name resolution rules file is used for the described current fictitious host computer of storage to the domain name mapping rule of described other fictitious host computers, and the domain name resolution rules comprises the domain name of described other fictitious host computers and the mapping relations of current IP;
Sending module, be used for sending the IP change message according to the current IP of described other fictitious host computers to described other fictitious host computers, described IP change message comprises the sign of described current fictitious host computer and the IP after the variation thereof, judges according to described IP change message whether described current fictitious host computer is the fictitious host computer of its dependence to trigger described other fictitious host computers; If then described other fictitious host computers upgrade local domain name mapping rule according to the IP after the described variation, if not, then described other fictitious host computers are refused described IP change message.
Preferably, also comprise:
Second acquisition module is used for the IP after described current fictitious host computer obtains described other fictitious host computers from described fictitious host computer registration table the renewal;
Then described sending module also is used for sending the IP change message again according to the IP after the described renewal;
Removing module is used for described under the situation that the IP change message is refused by described other fictitious host computers again, and described current fictitious host computer is deleted corresponding domain name mapping rule from the domain name mapping rule file of this locality.
Preferably, also comprise:
Increase module, be used for after the domain name mapping rule that receives the user increases instruction, the corresponding domain name mapping rule that increases in the home domain name resolution rules file of described current fictitious host computer;
Removing module is used for after the domain name mapping redundant rule elimination instruction that receives the user, corresponding deletion domain name mapping rule in the home domain name resolution rules file of described current fictitious host computer.
Preferably, described sending module, also be used for described current fictitious host computer and send domain names to other fictitious host computers that increase or the domain name mapping rule of deletion relies on and rely on request or remove domain name and rely on request, so that described other fictitious host computers increase or the local corresponding domain name mapping rule of deletion.
Preferably, described detection module specifically comprises:
First obtains submodule, is used for using under the situation of static IP at described current fictitious host computer, directly obtains the IP of described current fictitious host computer, and judges whether consistent with the IP that preserves in advance;
Second obtains submodule, is used for using under the situation of dynamic IP at described current fictitious host computer, periodically obtains the IP of described current fictitious host computer, and judges whether the current IP that obtains is consistent with the last IP that preserves.
Via above-mentioned technical scheme as can be known, compared with prior art, the embodiment of the invention can be implemented under the situation of the name server that does not have the overall situation, the domain name mapping rule of the fictitious host computer that the some fictitious host computers of automatic renewal rely on, thereby exempt user's manual maintenance operation, improve updating efficiency, reduced the O﹠M expense of cloud computing environment.In addition, the inside IP that the embodiment of the invention can be monitored the empty machine in its place automatically changes, and in time notifies other the empty machine that depends on this current empty machine; Also can in time receive the inside IP change information of other the empty machine that relies on from it simultaneously, and the domain name mapping rule of this locality of the current empty machine that upgrades in time, how solved is not having under the situation of inner name server, automatically upgrade the technical problem of the domain name mapping rule of the empty machine inside in the cloud computing environment, thereby guarantee that this application still can correctly parse the IP after the variation according to the domain name mapping rule of empty machine inside after the inside IP of the empty machine that certain application relies on changes.
The embodiment of the invention can be applied to a relatively independent empty machine set, be independent of each other between the different empty machine set, therefore the embodiment of the invention has good autgmentability, no matter how many users has in the applied environment, do not influence the application of the embodiment of the invention, even if the total system scale increases the validity that does not also influence the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The disclosed domain name mapping Policy Updates device centered by fictitious host computer of the embodiment of the invention can be a software module that is deployed in fictitious host computer inside.This software module can also can be built in the mirror image of fictitious host computer by user's manual installation as required, thereby when creating fictitious host computer this software module is installed.This software module is in running, and the inside IP that can monitor self on the one hand in real time changes, and in time notifies other fictitious host computer that depends on this fictitious host computer; On the other hand, this software module receives in real time from other virtual inside IP change message, and the local domain name mapping rule that upgrades in time.The embodiment of the invention is carried out the automatic renewal of domain name mapping rule centered by empty machine, has good autgmentability, be applicable to the cloud computing environment of random scale, and above-mentioned software module can be used as the part of each fictitious host computer, therefore can not influence updating efficiency and accuracy for cloud computing environment brings extra O﹠M expense yet.
Embodiment one
Referring to shown in Figure 1, Fig. 1 is the flow chart of the update method embodiment 1 of domain name mapping rule in the disclosed cloud computing environment of the embodiment of the invention, and present embodiment mainly describes in detail to each step from the realization flow of invention, and present embodiment can comprise:
Step 101: whether the current IP that detects current fictitious host computer changes.
This step can be realized by " IP change monitoring device ".In the present embodiment, suppose that each parts of software module have started operation, " IP change monitoring device " after startup, begin to detect self IP (namely being the current IP of fictitious host computer) whether be recorded in the fictitious host computer registration table before this in IP identical.Wherein, described fictitious host computer registration table is used for the sign of each fictitious host computer of storage and the mapping relations of current IP, in the present embodiment, the fictitious host computer registration table is overall, namely be that this registration table can be shared by the fictitious host computer of the overall situation, preserve the mapping relations of the current IP of the sign of each fictitious host computer of the overall situation and each fictitious host computer.
The realization of this step also needs the branch situation, uses under the situation of static IP at described current fictitious host computer, directly obtains the IP of described current fictitious host computer, and judges whether and consistent the getting final product of IP of preserving in advance.Also namely when empty machine uses static IP, software module only needs obtain one time IP after startup, and the IP that preserves in itself and the fictitious host computer registration table compared gets final product.
Perhaps, use under the situation of dynamic IP at described current fictitious host computer, periodically obtain the IP of described current fictitious host computer, and judge whether the current IP that obtains is consistent with the last IP that preserves.When empty machine uses dynamic IP, need the periodic local IP that surveys, and with fictitious host computer registration table before in the IP of the last time of recording compare.
Step 102: under the situation that the current IP of described current fictitious host computer changes, upgrade the current IP of current fictitious host computer described in the fictitious host computer registration table.
The current IP that in a single day IP change monitoring device detects current fictitious host computer changes, need to upgrade the IP information in the fictitious host computer registration table, this step is upgraded the purpose of fictitious host computer registration table, be the IP that can from this registration table, find this current fictitious host computer recent renewal for other fictitious host computers, can guarantee as far as possible that so also the IP that gets access to is up-to-date from this registration table, thereby can improve updating efficiency and accuracy.
Step 103: the current IP of from home domain name resolution rules file, obtaining other fictitious host computers that described current fictitious host computer relies on.
This step is again in the dependence between the fictitious host computer from home domain name resolution rules file, obtains the current IP of other fictitious host computers that described current fictitious host computer relies on.Wherein, the implication that current fictitious host computer relies on other fictitious host computers is, and when current fictitious host computer need be visited certain fictitious host computer, thinks that then current fictitious host computer has dependence to this certain fictitious host computer.
Wherein, described home domain name resolution rules file is used for the described current fictitious host computer of storage to the domain name mapping rule of described other fictitious host computers, and the domain name resolution rules comprises the domain name of described other fictitious host computers and the mapping relations of current IP.Current fictitious host computer is in other fictitious host computers of visit, it is the domain name of knowing other fictitious host computers, get access to the IP of the domain name correspondence of other fictitious host computers then from the domain name mapping rule file of this locality, direct IP according to other fictitious host computers conducts interviews and gets final product.Need to prove that each fictitious host computer is all preserved a domain name mapping rule file, domain name and the IP of other main frames that in store this fictitious host computer oneself relies in this domain name mapping rule file.
Step 104: described current fictitious host computer sends the IP change message according to the current IP of described other fictitious host computers to described other fictitious host computers, and described IP change message comprises the sign of described current fictitious host computer and the IP after the variation thereof.
Current fictitious host computer according to obtaining other empty machines tabulations that this current empty machine relies on, and sends the IP change message to other fictitious host computers of its dependence one by one when IP changes.Wherein, this IP change message comprise the sign of described current fictitious host computer and change after IP, its form can shape as<fictitious host computer sign, current IP 〉.
Step 105: described other fictitious host computers judge according to described IP change message whether described current fictitious host computer is the fictitious host computer of its dependence, if, then enter step 106, if not, then enter step 107.
When other fictitious host computers that current empty machine relies on receive the IP change message, rely on the sign of the fictitious host computer in the manager and the empty machine sign in the IP change message according to own local domain name of preserving earlier, just can judge whether this current fictitious host computer is the fictitious host computer of its dependence, if words, this current fictitious host computer is visited in extended meeting after representing above-mentioned other fictitious host computers, rather than words, then mean follow-up this current fictitious host computer of temporarily can not visiting of other fictitious host computers, therefore, other fictitious host computers do not need to be concerned about IP and the change information thereof of current fictitious host computer.
Step 106: described other fictitious host computers upgrade local domain name mapping rule according to the IP after the described variation.
The IP of these other fictitious host computers after according to the variation of current fictitious host computer, upgrade home domain name resolution rules file, other empty machine can guarantee like this after each fictitious host computer starts, can both obtain up-to-date domain name mapping rule, because may change IP before this void machine starts.
Step 107: described other fictitious host computers are refused described IP change message.
And do not need to be concerned about that other fictitious host computers can directly be refused this IP change message, are left intact under the situation of the IP of current fictitious host computer and change information thereof at other fictitious host computers.
In the present embodiment, centered by empty machine, carry out the automatic renewal of the empty machine domain name that empty machine was relied on, therefore, the change frequency of empty machine domain name and scope all will be limited in the empty machine scope that certain empty machine relies on, this means with prior art in depend on the global domain name server mode compare, the embodiment of the invention has good autgmentability, is applicable to the cloud computing environment of any scale.And, the embodiment of the invention is applied to need to resolve in the empty machine set of domain name, for separate application, also be separate between the software module that this invention is introduced, even if therefore this invention is broken down, also only can influence empty machine and the application thereof of certain part, and bring influence can for other fictitious host computers and even the overall situation.The last embodiment of the invention can be applied to empty machine inside, also can and install according to the unloading of user's needs, therefore also can not bring the O﹠M expense of extra cloud computing environment.
The embodiment of the invention can be applied to a relatively independent empty machine set, be independent of each other between the different empty machine set, therefore the embodiment of the invention has good autgmentability, no matter how many users has in the applied environment, do not influence the application of the embodiment of the invention, be the validity that the total system scale increases does not influence the embodiment of the invention, the scheme of the global domain name server compared to existing technology, the global domain name server is after the total system scale increases, and the performance of name server can reduce along with the increase of rule in theory.
To sum up, the embodiment of the invention can be implemented under the situation of name server that does not have the overall situation, upgrades the domain name mapping rule of the fictitious host computer that some fictitious host computers rely on automatically, thereby exempts user's manual maintenance operation, improve updating efficiency, reduced the O﹠M expense of cloud computing environment.
Embodiment two
With reference to shown in Figure 2, Fig. 2 is the flow chart of the update method embodiment 2 of domain name mapping rule in the disclosed cloud computing environment of the embodiment of the invention, present embodiment is mainly introduced implementation procedure in detail in conjunction with the software module in the reality, and the flow process of present embodiment can comprise:
Step 201: " from management system " by current fictitious host computer carries out initialization, comprises generating a fictitious host computer sign that the overall situation is unique, and the sign of this fictitious host computer and the mapping relations of its IP are saved in the fictitious host computer registration table.
Wherein, " from management system " is a functional module, after fictitious host computer operation, whether the current fictitious host computer that " from management system " can detect self place is operation for the first time, for example can locally whether have certain and realize from the relevant logo file of management system by judging.If operation for the first time, then " from management system " will generate one new for management system ID (namely being the sign of fictitious host computer), and write in " fictitious host computer registration table " with the current IP of current fictitious host computer.Subsequently, " from management system " startup " domain name dependence manager ", " IP change monitoring device " and " IP changes receiver ".
Whether the current IP that step 202:IP change monitoring device detects current fictitious host computer changes.
" IP change monitoring device " after startup, begin to detect self IP whether be recorded in the fictitious host computer registration table before this in IP identical, if inequality, illustrate to have produced variation, if identical, illustrate that then the current IP of current fictitious host computer does not change.
Step 203: under the situation that the current IP of described current fictitious host computer changes, IP change monitoring device upgrades the current IP of current fictitious host computer described in the fictitious host computer registration table.
In case IP change monitoring device finds that the current IP of current fictitious host computer changes, and then upgrades the IP of the current fictitious host computer of preserving in the fictitious host computer registration table.
Step 204:IP change monitoring device obtains the current IP of other fictitious host computers that described current fictitious host computer relies on from home domain name resolution rules file.
IP change monitoring device obtains all empty machines tabulations that current empty machine relies on again from the domain name mapping rule file of this locality of current fictitious host computer, in order to follow-uply send the IP change message to its fictitious host computer that relies on one by one.
Step 205: described IP change monitoring device sends the IP change message according to the current IP of described other fictitious host computers to described other fictitious host computers, and described IP change message comprises the sign of described current fictitious host computer and the IP after the variation thereof.
Step 206: described other fictitious host computers judge according to described IP change message whether described current fictitious host computer is the fictitious host computer of its dependence, if, then enter step 207, if not, then enter step 208.
" IP changes receiver " on described other fictitious host computers is after operation the time receives IP change message from current fictitious host computer, at first the empty machine ID that preserves in the domain name dependence manager according to this locality and the empty machine ID in the IP change message can judge whether current fictitious host computer is the own empty machine that relies on.
Step 207: described other fictitious host computers upgrade local domain name mapping rule according to the IP after the described variation.
Step 208: described other fictitious host computers are refused described IP change message.
In the present embodiment, after step 208, can also comprise:
Step 209: described current fictitious host computer obtains the IP after the renewal of described other fictitious host computers from described fictitious host computer registration table, and sends the IP change message again according to the IP after the described renewal.
If this message is refused by other fictitious host computers that current fictitious host computer relied on, then the IP change monitoring device of current fictitious host computer obtains the up-to-date IP of its other empty machines of refusal from the fictitious host computer registration table, and attempts sending the IP change message again according to this up-to-date IP.Because this IP change message is rejected the IP of other fictitious host computers that mean that original current fictitious host computer relies on variation may take place, perhaps these other fictitious host computers no longer have been empty machines that current fictitious host computer relies on.
Step 210: under the situation that the IP change message is refused by described other fictitious host computers again, described current fictitious host computer is deleted corresponding domain name mapping rule from the domain name mapping rule file of this locality described.
In case the IP change message that current fictitious host computer sends is rejected again, mean that then the domain name that other empty machines that originally rely on have been deleted current empty machine relies on, therefore can stop to send the IP change message to these other empty machine, and further can from the domain name mapping rule file of this locality, delete purpose void machine from management system ID.
In the present embodiment, because when the IP of fictitious host computer changes, at first upgrade the fictitious host computer registration table, so can from registration table, get access to the IP of up-to-date fictitious host computer, and when other fictitious host computers that rely on to current fictitious host computer again send the IP change message, just stop to send and delete corresponding domain name mapping rule, so just make that the update method in the embodiment of the invention is more accurate.
Embodiment three
Need to prove, can carry out the management of home domain name resolution rules by " domain name dependence manager ", mainly include but not limited to: increase the domain name mapping rule to other empty machine, this domain name mapping rule can shape as the current IP of<other empty machine, be used for local domain name 〉, perhaps delete the domain name mapping rule of other empty machine etc.With reference to shown in Figure 3, in more the process of new domain name is carried out, can also comprise the flow process of increase domain name mapping rule as follows:
Step 301: after the domain name mapping rule that receives the user increases instruction, the corresponding domain name mapping rule that increases in the home domain name resolution rules file of described current fictitious host computer.
In current empty machine running, the user can use wherein " domain name dependence manager " to increase the domain name mapping to other empty machine at any time.The logon mode of domain name can be to be undertaken by visualization interface, also can be undertaken by multi-form order line/API (API).
Be example with the API based on the REST style, the API form that increases empty machine domain name mapping is as follows:
POST?http://localhost:9999/domain.name.for.vm?ip=192.168.1.2
Wherein 9999 is ports (can be configured as required) for the domain name synchro system, " domain.name.for.vm " is the inside domain name of its empty machine that relies on of this void machine expectation use, " 192.168.1.2 " is the current IP of its empty machine that relies on, and " POST " mode shows it is to create a new domain name.
The carrier of the domain name mapping rule of this module management is the domain name mapping rule file of empty machine local.For example this document is generally/etc/hosts on Linux, on Windows this document be generally C: WINDOWS system32 drivers etc hosts.
Step 302: other fictitious host computers that described current fictitious host computer relies in the domain name mapping rule that increases send domain names and rely on request, with the dependence of request to described other fictitious host computers.
When the user increased the domain name mapping rule by " domain name dependence manager ", domain name relied on manager and also can send domain name to " from the management system " in the empty machine of correspondence and rely on request; These the request in carry simultaneously the requesting party from management system ID.When this module receive domain name rely on request or remove domain name rely on request after, will local record or deletion corresponding from management system ID and in this locality employed domain name.
" domain name dependence manager " will upgrade home domain name resolution rules file in current fictitious host computer inside, and " domain name dependence manager " transmission of the empty machine that relies on to current fictitious host computer " domain name relies on request ".If this domain name relies on request and is responded normally, the sign of " domain name dependence manager " the empty machine that will from response, obtain relying on then; Otherwise just the empty machine that relies on of explanation do not install the embodiment of the invention from management system, perhaps the user has imported wrong IP.In this case, " domain name dependence manager " can also optionally remind the user to confirm.
Simultaneously, the flow process of corresponding above-mentioned increase domain name mapping rule with reference to shown in Figure 4, in more the process of new domain name is carried out, can also comprise the flow process of deletion domain name mapping rule as follows:
Step 401: after the domain name mapping redundant rule elimination instruction that receives the user, corresponding deletion domain name mapping rule in the home domain name resolution rules file of described current fictitious host computer.
Similarly, the user can use " domain name dependence manager " deletion home domain name resolution rules.
Step 402: other fictitious host computers that described current fictitious host computer relies in the domain name mapping rule of deletion send to be removed domain names and relies on request.
Similarly, when the user deleted the domain name mapping rule, after the domain name mapping rule file of this locality was upgraded, " domain name dependence manager " sent the domain name dependence request of removing to " the domain name dependence manager " of the empty machine that relies on of correspondence.In case the normal response of obtaining, then the fictitious host computer of current empty machine sign will be by " domain name dependence manager " deletion of its empty machine that relies on.
Step 403: the local corresponding domain name mapping rule of described other fictitious host computer deletions.
If other empty machines that current fictitious host computer relies on temporarily can't connect (for example shutting down); then this current empty machine is still deleted the fictitious host computer sign of other empty machines that rely on by local " domain name dependence manager "; in case follow-up other empty machines that rely on start; and still send the IP change message to current empty machine, then the IP of current empty machine changes receiver and can carry out respective handling.
With reference to shown in Figure 5, for present embodiment is applied to system architecture diagram in the reality.
In the present embodiment, can rely on manager by domain name the domain name rule parsing rule file of this locality of each fictitious host computer is managed, can delete or increase etc. domain name mapping rule wherein, thereby realize renewal to the domain name mapping rule.
Describe method in detail among the disclosed embodiment of the invention described above, can adopt the device of various ways to realize for method of the present invention, therefore the invention also discloses a kind of device, provide specific embodiment below and be elaborated.
Embodiment four
Referring to shown in Figure 6, Fig. 6 is the structural representation of the updating device embodiment 1 of domain name mapping rule in the disclosed cloud computing environment of the embodiment of the invention, and described device can comprise:
Whether detection module 601 changes for detection of the current IP of current fictitious host computer;
Wherein, in actual applications, described detection module 601 specifically can comprise:
First obtains submodule, is used for using under the situation of static IP at described current fictitious host computer, directly obtains the IP of described current fictitious host computer, and judges whether consistent with the IP that preserves in advance;
Second obtains submodule, is used for using under the situation of dynamic IP at described current fictitious host computer, periodically obtains the IP of described current fictitious host computer, and judges whether the current IP that obtains is consistent with the last IP that preserves.
Update module 602 is used for upgrading the current IP of current fictitious host computer described in the fictitious host computer registration table under the situation that the current IP at described current fictitious host computer changes; Described fictitious host computer registration table is used for the sign of each fictitious host computer of storage and the mapping relations of current IP;
Acquisition module 603 is used for obtaining from home domain name resolution rules file the current IP address of other fictitious host computers that described current fictitious host computer relies on; Described home domain name resolution rules file is used for the described current fictitious host computer of storage to the domain name mapping rule of described other fictitious host computers, and the domain name resolution rules comprises the domain name of described other fictitious host computers and the mapping relations of current IP;
Sending module 604, be used for sending the IP change message according to the current IP of described other fictitious host computers to described other fictitious host computers, described IP change message comprises the sign of described current fictitious host computer and the IP after the variation thereof, judges according to described IP change message whether described current fictitious host computer is the fictitious host computer of its dependence to trigger described other fictitious host computers; If then described other fictitious host computers upgrade local domain name mapping rule according to the IP after the described variation, if not, then described other fictitious host computers are refused described IP change message.
In the present embodiment, the updating device of domain name mapping rule carries out the automatic renewal of the empty machine domain name that empty machine was relied in the cloud computing environment centered by empty machine, therefore, the change frequency of empty machine domain name and scope all will be limited in the empty machine scope that certain empty machine relies on, this means with prior art in depend on the global domain name server mode compare, the embodiment of the invention has good autgmentability, is applicable to the cloud computing environment of any scale.And, the embodiment of the invention is applied to need to resolve in the empty machine set of domain name, for separate application, also be separate between the software module that this invention is introduced, even if therefore this invention is broken down, also only can influence empty machine and the application thereof of certain part, and bring influence can for other fictitious host computers and even the overall situation.The last embodiment of the invention can be applied to empty machine inside, also can and install according to the unloading of user's needs, therefore also can not bring the O﹠M expense of extra cloud computing environment.
Embodiment five
With reference to shown in Figure 7, Fig. 7 is the structural representation of the updating device embodiment 2 of domain name mapping rule in the disclosed cloud computing environment of the embodiment of the invention, except four modules described in the embodiment four, can also comprise in use:
Second acquisition module 701 is used for the IP after described current fictitious host computer obtains described other fictitious host computers from described fictitious host computer registration table the renewal;
Then described sending module 604 also is used for sending the IP change message again according to the IP after the described renewal;
Removing module 702 is used for described under the situation that the IP change message is refused by described other fictitious host computers again, and described current fictitious host computer is deleted corresponding domain name mapping rule from the domain name mapping rule file of this locality.
Embodiment six
With reference to shown in Figure 8, the structural representation of the updating device embodiment 3 of domain name mapping rule in the disclosed cloud computing environment of Fig. 8 embodiment of the invention in different embodiment, four modules that described device comprises in embodiment four, can also comprise:
Increase module 801, be used for after the domain name mapping rule that receives the user increases instruction, the corresponding domain name mapping rule that increases in the home domain name resolution rules file of described current fictitious host computer;
Removing module 802 is used for after the domain name mapping redundant rule elimination instruction that receives the user, corresponding deletion domain name mapping rule in the home domain name resolution rules file of described current fictitious host computer.
Described sending module 604, also be used for described current fictitious host computer and send domain names to other fictitious host computers that increase or the domain name mapping rule of deletion relies on and rely on request or remove domain name and rely on request, so that described other fictitious host computers increase or the local corresponding domain name mapping rule of deletion.
Also need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.Do not having under the situation of more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments herein.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wideest scope consistent with principle disclosed herein and features of novelty.