Movatterモバイル変換


[0]ホーム

URL:


CN103297548B - The update method and device of domain name mapping rule in a kind of cloud computing environment - Google Patents

The update method and device of domain name mapping rule in a kind of cloud computing environment
Download PDF

Info

Publication number
CN103297548B
CN103297548BCN201210043053.2ACN201210043053ACN103297548BCN 103297548 BCN103297548 BCN 103297548BCN 201210043053 ACN201210043053 ACN 201210043053ACN 103297548 BCN103297548 BCN 103297548B
Authority
CN
China
Prior art keywords
domain name
main frame
fictitious host
current
current virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210043053.2A
Other languages
Chinese (zh)
Other versions
CN103297548A (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.)
Shanghai Shangda Networking Development Co., Ltd.
Original Assignee
SHANGHAI SHANGDA NETWORKING DEVELOPMENT 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 SHANGHAI SHANGDA NETWORKING DEVELOPMENT Co LtdfiledCriticalSHANGHAI SHANGDA NETWORKING DEVELOPMENT Co Ltd
Priority to CN201210043053.2ApriorityCriticalpatent/CN103297548B/en
Publication of CN103297548ApublicationCriticalpatent/CN103297548A/en
Application grantedgrantedCritical
Publication of CN103297548BpublicationCriticalpatent/CN103297548B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses the update method of domain name mapping rule and device, methods described in a kind of cloud computing environment to include:In the case where the current IP of current empty machine produces change, the current IP of current empty machine in fictitious host computer registration table is updated, and the current IP for other empty machines that current empty machine is relied on is obtained from home domain name resolution rules file;Current empty machine sends IP change messages according to the current IP of other empty machines to other empty machines, and other empty machines judge whether current empty machine is empty machine that it is relied on according to the IP change messages;If it is, the domain name mapping rule that other empty machines are local according to the IP renewals after change, if it is not, then other empty machine refusal IP change messages.The embodiment of the present invention can in fact there are currently no the overall situation name server in the case of, automatically update the domain name mapping rule for the empty machine that some empty machine is relied on, so as to exempt the operation of the manual maintenance of user, the efficiency of renewal is improved, reduces the O&M expense of cloud computing environment.

Description

The update method and device of domain name mapping rule in a kind of cloud computing environment
Technical field
The present invention relates to field of cloud calculation, in particular, is related to domain name mapping rule in a kind of cloud computing environmentUpdate method and device.
Background technology
IP address is the basis to be communicated by network between computer.Because the IP address of computer may becomeChange (such as due to using dynamic IP addressing distribution mechanism to distribute IP etc. for computer), many applications often substitute IP using domain nameAddress.In application running, computer domain name finally still needs to resolve to IP, needs to configure domain name clothes for this computerBusiness device or the domain name mapping rule dependent on local.
Because name server for computer provides a global domain name resolution service, therefore, taken in domain name mappingIt is engaged in the range of device, all computers must not use identical domain name;In addition, when the IP of computer changes, it is necessary to andDomain name mapping rule in Shi Gengxin name servers, to ensure the correctness of domain name resolution service.In traditional computer netIn network, it is contemplated that name server it is of overall importance, the domain name mapping rule in name server is less changes.ThisOutside, in order to ensure the service quality of domain name resolution service and scalability, name server is often organized as hierarchical structure, differentThe name server of level often caches the domain name mapping rule of oneself, and therefore, being changed in Computer IP needs to updateIn the case of domain name mapping rule, newest domain name mapping rule often will can just come into force by one long time.
In cloud computing environment, the inside IP of the virtual machine of user is often dynamically distributes, even using static IPEmpty machine, its internal IP is it can also happen that change after restart, in addition, after empty machine saves as mirror image and deletion, again according toThe empty machine of new mirror image application, its internal IP also tend to be new.In the case where this internal IP can change, if usingName server dependent on an inside to parse domain name for empty machine, and the name server frequently will certainly will be updated inside itDomain name mapping rule.This aspect is that name server brings great computing cost, while is also whole cloud computing environmentBring extra O&M expense.Because once introducing a name server in cloud computing environment, lost to eliminate single-pointEffect, it just must at least be re-introduced into the standby host of a name server.
The domain name mapping that the mechanism of another kind parsing domain name is local dependent on computer is regular.The rule is entered manually by userRow safeguards that is, user must clearly know the inside IP for the empty machine that its application is relied on, and set domain name mapping to advise accordinglyThen (such as:my.db 192.168.1.7).
In cloud computing environment, it is contemplated that the inside IP of empty machine is likely to change at any time, and therefore, user obviously can notThe inside IP for the empty machine that its application of real-time perception is relied on change, the empty machine that especially its application is relied on is by other usersWhen providing and safeguarding.Because the inside IP of empty machine in cloud computing environment is often dynamically distributes, therefore it is deployed on empty machineAnd it must be upgraded in time and the domain name using related all empty machines using domain name using the Distributed Application of internal domain nameResolution rules, just it can guarantee that after the inside IP of empty machine of service is provided for application and changed, whole Distributed Application can alsoNormal operation.
Prior art can provide independent inside name server to support the inside of empty machine inside cloud computing platformDomain name mapping.May often it be changed in view of the inside IP of empty machine, the solution will cause internal name serverDomain name mapping rule frequently changes, so as to influence the domain name resolution service inside whole cloud computing platform.In addition, the technologyExtra cost is brought for the O&M of whole cloud computing platform, including for providing the physics of reliable and stable domain name resolution serviceFacility, corresponding human cost etc..
But it is not dependent on the prior art of interior fields name server, it is desirable to user's manual maintenance portion local domain of empty machineName resolution rules.This requires user to perceive the inside IP of its empty machine relied on change in time, and it is local to upgrade in timeDomain name mapping rule.Obviously, in cloud computing environment, as the service that the application of user provides dependent on multiple empty machines, Huo ZheyongSome empty machines that family is relied on are when being safeguarded by other users, user can not real-time perception void machine IP changes.
To sum up, the name server of cloud computing environment internal independence is difficult to handle in cloud computing environment frequently in the prior artThe change for the frequently domain name mapping rule that IP changes are brought inside the empty machine of generation, the domain name clothes of cloud computing environment internal independenceDevice be engaged in by as internal applications bottleneck, and extra expense is brought for the operation and maintenance of whole cloud computing environment.And the domain name mapping rule of the computer-internal of another prior art requires user's manual maintenance, easily error, and nothingMethod upgrades in time after the inside IP of its empty machine relied on changes, can not normal operation so as to easily cause to apply.
The content of the invention
In view of this, the invention provides in a kind of cloud computing environment domain name mapping rule update method and device, withOperation and maintenance when updating domain name mapping rule in the prior art to cloud computing environment is overcome to bring extra expense, Yi JigengThe problem of new efficiency and low accuracy rate.
To achieve the above object, the present invention provides following technical scheme:
The update method of domain name mapping rule in a kind of cloud computing environment, including:
Whether the current IP of detection current virtual main frame produces change;
The current virtual main frame current IP produce change in the case of, update fictitious host computer registration table described in whenThe current IP of preceding fictitious host computer, and obtain from home domain name resolution rules file other that the current virtual main frame relied onThe current IP of fictitious host computer;Wherein, the fictitious host computer registration table is used to store the mark of each fictitious host computer and reflecting for current IPPenetrate relation;The home domain name resolution rules file is used to store domain of the current virtual main frame to other fictitious host computersName resolution rules, domain name resolution rules include the domain name of other fictitious host computers and current IP mapping relations;
The current virtual main frame sends IP according to the current IP of other fictitious host computers to other described fictitious host computersChange message, the IP after the mark of IP change messages including the current virtual main frame and its change, with trigger it is described itsHis fictitious host computer judges whether the current virtual main frame is fictitious host computer that it is relied on according to the IP change messages;IfBe, then other described fictitious host computers domain name mapping rule local according to the IP renewals after the change, if it is not, then it is described itsHe refuses the IP change messages by fictitious host computer.
Preferably, after other described fictitious host computers refuse the IP change messages, in addition to:
After the current virtual main frame obtains the renewal of other fictitious host computers from the fictitious host computer registration tableIP, and IP change messages are sent again according to the IP after the renewal;
Described in the case where IP change messages are refused by other described fictitious host computers again, the current virtual main frameDomain name mapping rule corresponding to being deleted from the domain name mapping rule file of local.
Preferably, in addition to:
After the domain name mapping rule increase instruction of user is received, parsed in the home domain name of the current virtual main frameCorresponding increase domain name mapping rule in rule file, or,
After the domain name mapping redundant rule elimination for receiving user instructs, parsed in the home domain name of the current virtual main frameIt is corresponding in rule file to delete domain name mapping rule.
Preferably, in addition to:
Other fictitious host computers that the current virtual main frame is relied on into increase or the domain name mapping rule deleted are sent outSend domain name to rely on request or release domain name and rely on request, in order to which other described fictitious host computers increase or delete local correspondingDomain name mapping rule.
Preferably, whether the current IP of the detection current virtual main frame produces change, specifically includes:
In the case where the current virtual main frame uses static IP, the IP of the current virtual main frame is directly obtained, andJudge whether consistent with the IP pre-saved;
Or in the case where the current virtual main frame uses dynamic IP, periodically obtain the current virtual masterThe IP of machine, and whether the IP for judging currently to obtain is consistent with the IP of the last time preservation.
The updating device of domain name mapping rule in a kind of cloud computing environment, including:
Whether detection module, the current IP for detecting current virtual main frame produce change;
Update module, in the case of producing change in the current IP of the current virtual main frame, update fictitious host computerThe current IP of current virtual main frame described in registration table;The fictitious host computer registration table be used for store each fictitious host computer mark andCurrent IP mapping relations;
Acquisition module, for other for obtaining that the current virtual main frame relied on from home domain name resolution rules fileThe current IP of fictitious host computer;The home domain name resolution rules file is used to store the current virtual main frame to other described voidIntend the domain name mapping rule of main frame, domain name resolution rules include the domain name of other fictitious host computers and current IP mappingRelation;
Sending module, IP changes are sent to other described fictitious host computers for the current IP according to other fictitious host computersMessage, the IP after the mark of IP change messages including the current virtual main frame and its change, to trigger, described other are emptyIntend main frame according to the IP change messages judge the current virtual main frame whether be its dependence fictitious host computer;If it is,Other described fictitious host computers domain name mapping rule local according to the IP renewals after the change, if it is not, then other described voidIntend main frame and refuse the IP change messages.
Preferably, in addition to:
Second acquisition module, other described void are obtained from the fictitious host computer registration table for the current virtual main frameIntend the IP after the renewal of main frame;
The then sending module, it is additionally operable to send IP change messages again according to the IP after the renewal;
Removing module, for it is described IP change messages again by other described fictitious host computers refuse in the case of, instituteState current virtual main frame domain name mapping rule corresponding to deletion from the domain name mapping rule file of local.
Preferably, in addition to:
Increase module, after being instructed in the domain name mapping rule increase for receiving user, in the current virtual main frameHome domain name resolution rules file in corresponding increase domain name mapping rule;
Removing module, after being instructed in the domain name mapping redundant rule elimination for receiving user, in the current virtual main frameHome domain name resolution rules file in corresponding delete domain name mapping rule.
Preferably, the sending module, it is additionally operable to the current virtual main frame and is advised to increase or the domain name mapping deletedOther fictitious host computers relied in then, which send domain name dependence request or release domain name, relies on request, in order to other described voidIntend main frame increase or delete domain name mapping rule corresponding to local.
Preferably, the detection module, is specifically included:
First acquisition submodule, in the case of using static IP in the current virtual main frame, directly described in acquisitionThe IP of current virtual main frame, and judge whether consistent with the IP pre-saved;
Second acquisition submodule, in the case of using dynamic IP in the current virtual main frame, periodically obtainThe IP of the current virtual main frame, and whether the IP for judging currently to obtain is consistent with the IP of the last time preservation.
Understood via above-mentioned technical scheme, compared with prior art, the embodiment of the present invention can there are currently no the overall situation in factIn the case of name server, the domain name mapping rule for the fictitious host computer that some fictitious host computer is relied on is automatically updated, so as toExempt the manual maintenance operation of user, improve the efficiency of renewal, reduce the O&M expense of cloud computing environment.In addition, this hairThe inside IP changes of empty machine where bright embodiment can monitor it automatically, and other void of the notice dependent on the current empty machine in timeMachine;The inside IP change informations from its other empty machine relied on can be also received in time simultaneously, and the current empty machine that upgrades in timeLocal domain name mapping rule, solve how in the case of no internal name server, automatically update cloud computing ringThe technical problem of domain name mapping rule inside empty machine in border, so as to ensure the inside IP of the empty machine relied in some applicationAfter changing, the application is remained able to according to the correct IP parsed after changing of domain name mapping rule inside empty machine.
The embodiment of the present invention can apply to a relatively independent empty machine set, mutual not shadow between different empty machine setRing, therefore the embodiment of the present invention has good autgmentability, no matter in application environment user how many, do not affect of the invention realThe application of example is applied, even if the increase of total system scale nor affects on the validity of the embodiment of the present invention.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existingThere is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only thisThe embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basisThe accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart of the update method embodiment 1 of domain name mapping rule in cloud computing environment disclosed by the invention;
Fig. 2 is the flow chart of the update method embodiment 2 of domain name mapping rule in cloud computing environment disclosed by the invention;
Fig. 3 is the flow chart for increasing domain name mapping rule in the embodiment of the present invention;
Fig. 4 is the flow chart that domain name mapping rule is deleted in the embodiment of the present invention;
Fig. 5 is the embodiment of the present invention applied to system architecture diagram in practice;
Fig. 6 is the structural representation of the updating device embodiment 1 of domain name mapping rule in cloud computing environment disclosed by the inventionFigure;
Fig. 7 is the structural representation of the updating device embodiment 2 of domain name mapping rule in cloud computing environment disclosed by the inventionFigure;
The structural representation of the updating device embodiment 3 of domain name mapping rule in Fig. 8 cloud computing environments disclosed by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not madeEmbodiment, belong to the scope of protection of the invention.
The disclosed domain name mapping Policy Updates device centered on fictitious host computer of the embodiment of the present invention, can be deployed inA software module inside fictitious host computer.The software module can be installed manually as needed by user, can also be built inIn the mirror image of fictitious host computer, so as to install the software module while fictitious host computer is created.The software module is in runningIn, the inside IP changes of itself, and other virtual masters of the notice dependent on the fictitious host computer in time on the one hand can be monitored in real timeMachine;On the other hand, the software module real-time reception is from other virtual inside IP change messages, and the local domain that upgrades in timeName resolution rules.The embodiment of the present invention carries out automatically updating for domain name mapping rule centered on empty machine, has good extensionProperty, suitable for the cloud computing environment of random scale, and above-mentioned software module can as a part for each fictitious host computer, becauseThis will not be that cloud computing environment brings extra O&M expense, nor affect on the efficiency and accuracy of renewal.
Embodiment one
Shown in Figure 1, Fig. 1 is the update method of domain name mapping rule in cloud computing environment disclosed in the embodiment of the present inventionThe flow chart of embodiment 1, the present embodiment mainly describe in detail from the implementation process of invention to each step, the present embodimentIt can include:
Step 101:Whether the current IP of detection current virtual main frame produces change.
This step can be realized by " IP change monitorings device ".In this example, it is assumed that all parts of software module areActivated operation, " IP change monitorings device " upon actuation, start to detect itself IP (being the current IP of fictitious host computer) whether withThe IP being recorded in before this in fictitious host computer registration table is identical.Wherein, the fictitious host computer registration table is used to store each fictitious host computerMark and current IP mapping relations, in the present embodiment, fictitious host computer registration table is global, is that the registration table can be withShared by the fictitious host computer of the overall situation, preserve the mark of each fictitious host computer of the overall situation and the current IP of each fictitious host computer reflectsPenetrate relation.
The realization of this step is also required to a point situation, in the case where the current virtual main frame uses static IP, directly obtainsThe IP of the current virtual main frame is taken, and is judged whether consistent with the IP pre-saved.Namely when empty machine uses static IPWhen, software module need to only obtain an IP upon actuation, and by its compared with the IP preserved in fictitious host computer registration table i.e.Can.
Or in the case where the current virtual main frame uses dynamic IP, periodically obtain the current virtual masterThe IP of machine, and whether the IP for judging currently to obtain is consistent with the IP of the last time preservation.When empty machine uses dynamic IP, it is necessary to weekThe IP of the detection local of phase property, and compared with the last IP with being recorded in fictitious host computer registration table before.
Step 102:In the case where the current IP of the current virtual main frame produces change, fictitious host computer registration table is updatedDescribed in current virtual main frame current IP.
IP change monitorings device once detects that the current IP of current virtual main frame produces change, it is necessary to update fictitious host computer noteIP information in volume table, this step update the purpose of fictitious host computer registration table, are in order to which other fictitious host computers can be from the registrationThe IP of the current fictitious host computer recent renewal is found in table, so can also ensure that the IP got from the registration table is as far as possibleNewest, so as to improve the efficiency of renewal and the degree of accuracy.
Step 103:Other for obtaining that the current virtual main frame relied on from home domain name resolution rules file are virtualThe current IP of main frame.
This step from the dependence between the fictitious host computer in home domain name resolution rules file, obtains described work as againThe current IP for other fictitious host computers that preceding fictitious host computer is relied on.Wherein, current virtual main frame relies on containing for other fictitious host computersJustice is, when current virtual main frame needs to access some fictitious host computer, then it is assumed that current virtual main frame is to some fictitious host computerWith dependence.
Wherein, the home domain name resolution rules file is used to store the current virtual main frame to other described virtual mastersThe domain name mapping rule of machine, domain name resolution rules include the domain name of other fictitious host computers and current IP mapping is closedSystem.Current virtual main frame is the domain name for knowing other fictitious host computers, then from local when other fictitious host computers are accessedDomain name mapping rule file in get IP corresponding to the domain name of other fictitious host computers, directly according to the IP of other fictitious host computersConduct interviews.It should be noted that each fictitious host computer all preserves a domain name mapping rule file, in the domain nameThe domain name and IP for other main frames that the in store fictitious host computer is relied on oneself in resolution rules file.
Step 104:The current virtual main frame is virtually led according to the current IP of other fictitious host computers to described otherMachine sends IP change messages, the IP after the mark of IP change messages including the current virtual main frame and its change.
Current virtual main frame when IP changes according to obtaining other empty machine lists for being relied on of the current empty machine, and one by one toIts other fictitious host computer relied on sends IP change messages.Wherein, the IP change messages include the mark of the current virtual main frameKnow and its change after IP, its form can be shaped like<Fictitious host computer identifies, current IP>.
Step 105:Other described fictitious host computers according to the IP change messages judge the current virtual main frame whether beIts fictitious host computer relied on, if it is, into step 106, if it is not, then into step 107.
When other fictitious host computers that current empty machine is relied on receive IP change messages, the first domain locally preserved according to oneselfEmpty machine mark in the mark and IP change messages of fictitious host computer in name dependence manager, it is possible to judge current virtual masterWhether machine is fictitious host computer that it is relied on, if it does, extended meeting accesses the current virtual after representing above-mentioned other fictitious host computersMain frame, rather than if, then mean that other fictitious host computers subsequently will not temporarily access the current fictitious host computer, therefore, otherFictitious host computer need not be concerned about the IP and its change information of current virtual main frame.
Step 106:Other described fictitious host computers domain name mapping rule local according to the IP renewals after the change.
Other fictitious host computers update home domain name resolution rules file according to the IP after the change of current virtual main frame,It can so ensure that newest domain name mapping rule can be obtained after each fictitious host computer starts, because other empty machines may beThe empty machine changes IP before starting.
Step 107:Other described fictitious host computers refuse the IP change messages.
And in the case where other fictitious host computers need not be concerned about the IP and its change information of current virtual main frame, other are emptyThe IP change messages can directly be refused by intending main frame, without any processing.
In the present embodiment, automatically updating for the empty machine domain name that empty machine is relied on, therefore, empty machine domain are carried out centered on empty machineThe change frequency and scope of name will be all limited in the range of the empty machine that some empty machine relied on, it means that with the prior art according toThe mode in global domain name server is relied to compare, the embodiment of the present invention has good autgmentability, suitable for the cloud of any scaleComputing environment.Also, the embodiment of the present invention is applied to parse in the empty machine set of domain name, for separate applicationSpeech, it is between the introduced software module of the invention and separate, even if therefore the invention break down, also can only influenceSome local empty machine and its application, without bringing influence to other fictitious host computers or even the overall situation.The last embodiment of the present inventionIt can apply to inside empty machine, also can need to unload according to user and install, therefore will not also bring extra cloud computing environmentO&M expense.
The embodiment of the present invention can apply to a relatively independent empty machine set, mutual not shadow between different empty machine setRing, therefore the embodiment of the present invention has good autgmentability, no matter in application environment user how many, do not affect of the invention realApply the application of example, i.e. total system scale increase does not influence the validity of the embodiment of the present invention, compared with prior art in the overall situationThe scheme of name server, global domain name server after the increase of total system scale, in theory can by the performance of name serverReduced with the increase of rule.
To sum up, the embodiment of the present invention can in fact there are currently no the overall situation name server in the case of, automatically update someThe domain name mapping rule for the fictitious host computer that fictitious host computer is relied on, so as to exempt the operation of the manual maintenance of user, improves renewalEfficiency, reduce the O&M expense of cloud computing environment.
Embodiment two
Shown in reference picture 2, Fig. 2 is the update method of domain name mapping rule in cloud computing environment disclosed in the embodiment of the present inventionImplementation process is discussed in detail mainly in combination with software module in practice in the flow chart of embodiment 2, the present embodiment, the present embodimentFlow can include:
Step 201:Initialized by " the Self management system " of current virtual main frame, including generation one is globally uniqueFictitious host computer mark, and the mark of the fictitious host computer is preserved into fictitious host computer registration table with its IP mapping relations.
Wherein, " Self management system " is One function module, and after fictitious host computer operation, " Self management system " can detectWhether the current virtual main frame where itself is to run for the first time, such as can be by judging locally with the presence or absence of some with managing certainlyReason system related logo file is realized.If first time is run, then " Self management system " will generate a new pipe certainlySystem identifier (being the mark of fictitious host computer) is managed, and " fictitious host computer registration table " is write together with the current IP of current virtual main frameIn.Then, " Self management system " startup " domain name dependence manager ", " IP change monitorings device " and " IP changes receiver ".
Step 202:Whether the current IP of IP change monitorings device detection current virtual main frame produces change.
Whether " IP change monitorings device " upon actuation, starts to detect itself IP with being recorded in before this in fictitious host computer registration tableIP it is identical, if it is not the same, explanation generate change, if identical, illustrate that the current IP of current virtual main frame is not producedChanging.
Step 203:In the case where the current IP of the current virtual main frame produces change, the renewal of IP change monitorings device is emptyIntend the current IP of current virtual main frame described in host registration table.
Once IP change monitorings device finds that the current IP of current virtual main frame changes, then fictitious host computer registration table is updatedThe IP of middle preserved current virtual main frame.
Step 204:IP change monitorings device obtained from home domain name resolution rules file current virtual main frame institute according toThe current IP of other bad fictitious host computers.
IP change monitorings device obtains current empty machine institute from the local domain name mapping rule file of current virtual main frame againAll empty machine lists relied on, so that the fictitious host computer subsequently relied on one by one to it sends IP change messages.
Step 205:The IP change monitorings device is virtually led according to the current IP of other fictitious host computers to described otherMachine sends IP change messages, the IP after the mark of IP change messages including the current virtual main frame and its change.
Step 206:Other described fictitious host computers according to the IP change messages judge the current virtual main frame whether beIts fictitious host computer relied on, if it is, into step 207, if it is not, then into step 208.
" IP changes receiver " on other described fictitious host computers operationally receives the IP from current virtual main frameAfter change message, the empty machine ID in the empty machine ID and IP change messages preserved in manager is relied on according to the domain name of local first,It may determine that whether current virtual main frame is the empty machine oneself relied on.
Step 207:Other described fictitious host computers domain name mapping rule local according to the IP renewals after the change.
Step 208:Other described fictitious host computers refuse the IP change messages.
In the present embodiment, after step 208, can also include:
Step 209:The current virtual main frame obtains other fictitious host computers from the fictitious host computer registration tableIP after renewal, and IP change messages are sent again according to the IP after the renewal.
If other fictitious host computers refusal that the message is relied on by current virtual main frame, the IP of current virtual main frame becomeChange monitor and the newest IP for refusing its other empty machines is obtained from fictitious host computer registration table, and reattempted to according to the newest IPSend IP change messages.Because the IP change messages are rejected other the virtual masters for meaning that original current virtual main frame is relied onThe IP of machine may have occurred change, or other fictitious host computers have no longer been the empty machines that current virtual main frame is relied on.
Step 210:It is described current described in the case where IP change messages are refused by other described fictitious host computers againFictitious host computer domain name mapping rule corresponding to deletion from the domain name mapping rule file of local.
Once the IP change messages that current virtual main frame is sent are rejected again, then mean other void relied on originallyMachine, which has deleted, to be relied on the domain name of current empty machine, therefore can stop sending IP change messages to other empty machines, andThe Self management system identifier of purpose void machine can be further deleted from the domain name mapping rule file of local.
In the present embodiment, because in the IP changes of fictitious host computer, fictitious host computer registration table is updated first, it is possible toThe IP of newest fictitious host computer, and other fictitious host computers that ought be relied on again to current virtual main frame are got from registration tableJust stop sending and deleting corresponding domain name mapping rule when sending IP change messages, so allow in the embodiment of the present inventionUpdate method it is more accurate.
Embodiment three
It should be noted that the management of home domain name resolution rules can be carried out by " domain name dependence manager ", mainlyIncluding but not limited to:Increase the domain name mapping rule to other empty machines, the domain name mapping rule can be shaped like:<Other empty machinesCurrent IP, the domain name for local>, or delete to domain name mapping rule of other empty machines etc..With reference to shown in figure 3, updatingDuring the process of domain name is carried out, the flow of increase domain name mapping rule as follows can also be included:
Step 301:After the domain name mapping rule increase instruction of user is received, in the local of the current virtual main frameCorresponding increase domain name mapping rule in domain name mapping rule file.
In current empty machine running, user can be increased to it using " domain name dependence manager " therein at any timeThe domain name mapping of its empty machine.The logon mode of domain name can be carried out by visualization interface, can also be by various forms ofOrder line/API (API) is carried out.
By taking the API based on REST style as an example, the API forms for increasing empty machine domain name mapping are as follows:
POST http://localhost:9999/domain.name.for.vmIp=192.168.1.2
Wherein 9999 be the port (can be configured as needed) for domain name synchronization system," domain.name.for.vm " is the inside domain name of its empty machine relied on that the empty machine it is expected to use, " 192.168.1.2 "It is the current IP of its empty machine relied on, " POST " mode, which is shown to be, will create a new domain name.
The carrier of the domain name mapping rule of the module management is the local domain name mapping rule file of empty machine.Such asThe upper this documents of Linux are generally/etc/hosts, and this document is generally C on Windows:\WINDOWS\system32\drivers\etc\hosts.
Step 302:Other fictitious host computers hair that the current virtual main frame is relied on into increased domain name mapping ruleDomain name is sent to rely on request, to ask the dependence to other fictitious host computers.
When user increases domain name mapping rule by " domain name dependence manager ", domain name relies on manager can also be to correspondinglyEmpty machine in " Self management system " send domain name rely on request;The Self management system of requesting party will be carried simultaneously in these requestsUnite ID.When the module receives, domain name relies on request or releasing domain name is relied on after request, will be corresponded to locally recording or deletingSelf management system identifier and its in domain name used in local.
" domain name dependence manager " inside current virtual main frame will update home domain name resolution rules file, and to work as" the domain name dependence manager " transmission " domain name relies on request " for the empty machine that preceding fictitious host computer is relied on.If the domain name relies on requestNormally responded, then " domain name dependence manager " will obtain the mark of empty machine that is relied on from response;Otherwise with regard to explanationThe empty machine relied on does not install the Self management system of the embodiment of the present invention, or user have input the IP of mistake.In this feelingsUnder condition, " domain name dependence manager " optionally can also remind user to be confirmed.
Meanwhile the flow of corresponding above-mentioned increase domain name mapping rule, with reference to shown in figure 4, carried out in the process of more new domain nameIn, the flow for deleting domain name mapping rule as follows can also be included:
Step 401:After the domain name mapping redundant rule elimination for receiving user instructs, in the local of the current virtual main frameIt is corresponding in domain name mapping rule file to delete domain name mapping rule.
Similar, user can use " domain name dependence manager " to delete home domain name resolution rules.
Step 402:Other fictitious host computers hair that the current virtual main frame is relied on into the domain name mapping rule of deletionSend and release domain name dependence request.
Similar, when user deletes domain name mapping rule, after the domain name mapping rule file renewal of local, " domain nameRely on manager " send releasing domain name dependence request to " the domain name dependence manager " of corresponding relied on empty machine.OnceTo normal response, then the fictitious host computer of current empty machine, which identifies, deletes " the domain name dependence manager " of the empty machine relied on by itRemove.
Step 403:Other described fictitious host computers delete domain name mapping rule corresponding to local.
If other empty machines that current virtual main frame is relied on can not temporarily connect (such as shutdown), the current voidThe fictitious host computer that machine deletes other the empty machines relied on still through " the domain name dependence manager " of local identifies, once follow-up instituteOther the empty machines relied on start, and still send IP change messages to current empty machine, then the IP change receiver meetings of current empty machineCarry out respective handling.
With reference to shown in figure 5, it is applied to system architecture diagram in practice for the present embodiment.
In the present embodiment, local domain name rule parsing of the manager to each fictitious host computer can be relied on by domain nameRule file is managed, and domain name mapping rule therein can be deleted or increased, so as to realize to domain name solutionAnalyse the renewal of rule.
Method is described in detail in the invention described above disclosed embodiment, can be taken various forms for the method for the present inventionDevice realize, therefore the invention also discloses a kind of device, specific embodiment is given below and is described in detail.
Example IV
Shown in Figure 6, Fig. 6 is the updating device of domain name mapping rule in cloud computing environment disclosed in the embodiment of the present inventionThe structural representation of embodiment 1, described device can include:
Whether detection module 601, the current IP for detecting current virtual main frame produce change;
Wherein, in actual applications, the detection module 601, can specifically include:
First acquisition submodule, in the case of using static IP in the current virtual main frame, directly described in acquisitionThe IP of current virtual main frame, and judge whether consistent with the IP pre-saved;
Second acquisition submodule, in the case of using dynamic IP in the current virtual main frame, periodically obtainThe IP of the current virtual main frame, and whether the IP for judging currently to obtain is consistent with the IP of the last time preservation.
Update module 602, in the case of producing change in the current IP of the current virtual main frame, update virtual mainThe current IP of current virtual main frame described in machine registration table;The fictitious host computer registration table is used for the mark for storing each fictitious host computerAnd current IP mapping relations;
Acquisition module 603, for obtaining what the current virtual main frame was relied on from home domain name resolution rules fileThe current IP address of other fictitious host computers;The home domain name resolution rules file is used to store the current virtual main frame to instituteState the domain name mapping rule of other fictitious host computers, domain name resolution rules include the domain name of other fictitious host computers and currentIP mapping relations;
Sending module 604, for sending IP to other described fictitious host computers according to the current IP of other fictitious host computersChange message, the IP after the mark of IP change messages including the current virtual main frame and its change, with trigger it is described itsHis fictitious host computer judges whether the current virtual main frame is fictitious host computer that it is relied on according to the IP change messages;IfBe, then other described fictitious host computers domain name mapping rule local according to the IP renewals after the change, if it is not, then it is described itsHe refuses the IP change messages by fictitious host computer.
In the present embodiment, in cloud computing environment the updating device of domain name mapping rule carried out centered on empty machine empty machine institute according toBad empty machine domain name automatically updates, and therefore, the change frequency and scope of empty machine domain name will all be limited in some empty machine and be relied onEmpty machine in the range of, it means that with the prior art depend on global domain name server mode compared with, the embodiment of the present inventionWith good autgmentability, suitable for the cloud computing environment of any scale.Also, the embodiment of the present invention is applied to parse domainIt is between the introduced software module of the invention and separate for separate application in the empty machine set of name, even if therefore the invention break down, some local empty machine and its application also can be only influenceed, without giving other virtual mainMachine or even the overall situation bring influence.The last embodiment of the present invention can apply to inside empty machine, also can need to unload according to user andInstallation, therefore will not also bring the O&M expense of extra cloud computing environment.
Embodiment five
With reference to shown in figure 7, Fig. 7 is the updating device of domain name mapping rule in cloud computing environment disclosed in the embodiment of the present inventionThe structural representation of embodiment 2, when in use except four modules described in example IV, it can also include:
Second acquisition module 701, obtained for the current virtual main frame from the fictitious host computer registration table it is described itsIP after the renewal of his fictitious host computer;
The then sending module 604, it is additionally operable to send IP change messages again according to the IP after the renewal;
Removing module 702, for it is described IP change messages again by other described fictitious host computers refuse in the case of,Current virtual main frame domain name mapping rule corresponding to deletion from the domain name mapping rule file of local.
Embodiment six
With reference to shown in figure 8, the updating device of domain name mapping rule is real in cloud computing environment disclosed in Fig. 8 embodiment of the present inventionApply the structural representation of example 3, in various embodiments, described device in addition to four modules that example IV includes,It can also include:
Increase module 801, after being instructed in the domain name mapping rule increase for receiving user, in the current virtual masterCorresponding increase domain name mapping rule in the home domain name resolution rules file of machine;
Removing module 802, after being instructed in the domain name mapping redundant rule elimination for receiving user, in the current virtual masterIt is corresponding in the home domain name resolution rules file of machine to delete domain name mapping rule.
The sending module 604, the current virtual main frame is additionally operable into increase or the domain name mapping rule deletedOther fictitious host computers for being relied on, which send domain name and rely on request or release domain name, relies on request, and other are virtual main in order to describedMachine increases or deleted domain name mapping rule corresponding to local.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to oneEntity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operationAny this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to containLid nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including thoseElement, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to includeIntrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded thatOther identical element also be present in process, method, article or equipment including the key element.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processorCapable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only depositReservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technologyIn any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention.A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined hereinGeneral Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the inventionThe embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase oneThe most wide scope caused.

Claims (10)

CN201210043053.2A2012-02-232012-02-23The update method and device of domain name mapping rule in a kind of cloud computing environmentActiveCN103297548B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210043053.2ACN103297548B (en)2012-02-232012-02-23The update method and device of domain name mapping rule in a kind of cloud computing environment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210043053.2ACN103297548B (en)2012-02-232012-02-23The update method and device of domain name mapping rule in a kind of cloud computing environment

Publications (2)

Publication NumberPublication Date
CN103297548A CN103297548A (en)2013-09-11
CN103297548Btrue CN103297548B (en)2017-12-19

Family

ID=49097851

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210043053.2AActiveCN103297548B (en)2012-02-232012-02-23The update method and device of domain name mapping rule in a kind of cloud computing environment

Country Status (1)

CountryLink
CN (1)CN103297548B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105897946B (en)*2016-04-082019-04-26北京搜狐新媒体信息技术有限公司 A method and system for obtaining an access address
CN105933467B (en)*2016-04-272018-11-20浪潮电子信息产业股份有限公司Periodic detection method for information change of client host
CN108073487A (en)*2017-11-232018-05-25郑州云海信息技术有限公司A kind of server Hostname reporting functions test method and system
CN109587290B (en)*2019-01-042022-06-28平安科技(深圳)有限公司Domain name resolution method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101662511A (en)*2009-10-102010-03-03中国电信股份有限公司Network address distributing method, DHCP server, access system and method thereof
CN102315968A (en)*2011-09-192012-01-11华中科技大学Network configuration method in virtual machine environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9384097B2 (en)*2009-09-092016-07-05Verisign, Inc.Method and system for recovery of a failed registry

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101662511A (en)*2009-10-102010-03-03中国电信股份有限公司Network address distributing method, DHCP server, access system and method thereof
CN102315968A (en)*2011-09-192012-01-11华中科技大学Network configuration method in virtual machine environment

Also Published As

Publication numberPublication date
CN103297548A (en)2013-09-11

Similar Documents

PublicationPublication DateTitle
CN105897946B (en) A method and system for obtaining an access address
US9405757B2 (en)File storage system, apparatus, and file access method
EP2564330B1 (en)Techniques for directory server integration
EP1825376B1 (en)Content addressed storage device configured to maintain content address mapping
RU2413982C2 (en)Branch office dns storage and resolution
US7152104B2 (en)Method and apparatus for notifying administrators of selected events in a distributed computer system
CN110795395B (en)File deployment system and file deployment method
US20130144852A1 (en)Distributed event system for relational models
EP2564580B1 (en)Techniques for directory data resolution
CN109918359B (en)Database service persistence method and system based on sweep
CN103297548B (en)The update method and device of domain name mapping rule in a kind of cloud computing environment
WO2021031905A1 (en)Data management method, apparatus, device and system and computer-readable storage medium
CN107786551B (en)Method for accessing intranet server and device for controlling access to intranet server
CN113220633A (en)Unified file coding management method and system
WO2015047968A1 (en)Data caching policy in multiple tenant enterprise resource planning system
CN106385455A (en)CDN (Content Delivery Network) mirror-based whole site lock setting method
CN110457263A (en)A kind of date storage method and device
KR101175505B1 (en)System for providing user data storage enviroment using network based file system in n-screen
WO2023207175A1 (en)Scanning detection method, apparatus and system in hybrid cloud environment, and device and medium
US8117181B2 (en)System for notification of group membership changes in directory service
CN107332851A (en)Flow is controlled in a kind of virtual environment collocation method and system
US20070106733A1 (en)Cross-forest sharing
CN113676489B (en)Threat file handling method, device and medium
CN112036828B (en)Bare metal management method, device, equipment and medium
CN109873784A (en)Mixed cloud secure storage management system towards big data

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
ASSSuccession or assignment of patent right

Owner name:SHENGDA NETWORK DEVELOPMENT CO., LTD., SHANGHAI

Free format text:FORMER OWNER: SHANGHAI SHENGXIAO CLOUD COMPUTING TECHNOLOGY CO., LTD.

Effective date:20140605

C41Transfer of patent application or patent right or utility model
CORChange of bibliographic data

Free format text:CORRECT: ADDRESS; FROM: 201203 PUDONG NEW AREA, SHANGHAI TO: 201213 PUDONG NEW AREA, SHANGHAI

TA01Transfer of patent application right

Effective date of registration:20140605

Address after:201213 402-B room, No. 727 Zhangjiang Road, Shanghai, Pudong New Area

Applicant after:Shanghai Shangda Networking Development Co., Ltd.

Address before:201203 Shanghai Guo Shou Jing Road, Zhangjiang High Tech Park of Pudong New Area No. 356 building 3 room 124

Applicant before:Shanghai Shengxiao Cloud Computing Technology Co., Ltd.

C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp