CN106131246A - The changing method of dns resolution record and device - Google Patents

The changing method of dns resolution record and device Download PDF

Info

Publication number
CN106131246A
CN106131246A CN201610801632.7A CN201610801632A CN106131246A CN 106131246 A CN106131246 A CN 106131246A CN 201610801632 A CN201610801632 A CN 201610801632A CN 106131246 A CN106131246 A CN 106131246A
Authority
CN
China
Prior art keywords
dns resolution
dns
life cycle
resolution record
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610801632.7A
Other languages
Chinese (zh)
Other versions
CN106131246B (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.)
You Pu Information Technology Co Ltd Of Ufsoft
Original Assignee
You Pu Information Technology Co Ltd Of Ufsoft
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 You Pu Information Technology Co Ltd Of Ufsoft filed Critical You Pu Information Technology Co Ltd Of Ufsoft
Priority to CN201610801632.7A priority Critical patent/CN106131246B/en
Publication of CN106131246A publication Critical patent/CN106131246A/en
Application granted granted Critical
Publication of CN106131246B publication Critical patent/CN106131246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention proposes the changing method of a kind of dns resolution record, the switching device of dns resolution record, wherein, described changing method includes: when being updated original DNS resolution record, arranges switching and prepares initial time, and original DNS resolution record includes fixing life cycle and an IP address;Within the fixing life cycle that adaptive switched preparation initial time starts, feedback is asked to include the first life cycle less than fixing life cycle and the first dns resolution record of an IP address for the dns resolution from arbitrary dns caching server;After terminating for the first life cycle, feedback is asked to include the second dns resolution record of the second life cycle and the 2nd IP address for the dns resolution from arbitrary dns caching server, second life cycle was the random number less than fixing life cycle, for arbitrary dns caching server, the second dns resolution record was fed back to client.This technical scheme, in the case of the operation principle not affecting dns caching server and efficiency, using the teaching of the invention it is possible to provide dns resolution record accurately.

Description

The changing method of dns resolution record and device
Technical field
The present invention relates to Internet technical field, in particular to changing method and the one of a kind of dns resolution record The switching device of dns resolution record.
Background technology
At present, although DNS (Domain Name System, the domain name system) analysis request of client can directly to DNS name resolution server (hereinafter referred to as dns resolution server) sends.But generally client all can be to the DNS in present networks Cache servers (dns caching server) request DNS name resolution, then by DNS Cache servers unification to dns resolution Server initiates analysis request, as it is shown in figure 1, between dns resolution server, DNS Cache servers and End-Customer end Relation, so can effectively shunt the pressure of dns resolution server, and shorten parsing delay, wherein, present networks here, This ranks such as generally scope is an industrial zone, or Beijing UNICOM, Shanghai Telecom.
DNS Cache servers can cache dns resolution record, and the cache-time of dns resolution record is serviced by dns resolution Device is specified, and the cache-time that current dns resolution server returns dns resolution record to DNS Cache servers is fixing Value, is additionally, since caching impact, the same with other caching system, inevitably exists between different cached copies Inconsistence problems.Such as, dns resolution server is by the IP (Internet Protocol, Internet protocol) of domain name A IP2 is revised as from IP1 in location, but DNS Cache servers can't perceive this amendment within a certain period of time, its caching Parsing address in dns resolution record remains IP1, then, for the whole network, dns resolution record effective time (i.e. The cache-time of dns resolution record) within, domain name A may be resolved to IP1, it is also possible to is resolved to IP2.
Being additionally, since DNS system substantially together to set up with the Internet, the caching impact of DNS Cache servers causes Dns resolution record switching problem the most accurately exists always.
For the problems referred to above, in most cases, for example, certain news website, behind its switching IP address, certain user The content seen is relatively new, and other users see the most older content, and this situation can't have notable wound to application Evil, so in most cases selecting to have ignored this problem.
Other is also had to apply, such as Net silver, payment system etc., by the way of noticing downtime, out of service Some hours, dns resolution record then can be fully completed within switching in these hours, although solves above-mentioned dns resolution note Record switching problem the most accurately, and project plan comparison is simple, but cost is to need interrupting service, can bring bad body to user Test.
Further, it is also possible to avoiding this problem, such as IP1 Yu IP2 in the realization within website is all access server, and They can carry the data to same application server or same data server, so, although after the handover two Individual IP is in work, but data itself can't be chaotic.
When some are harsher, the technical pattern within website is upgraded, such as background application server (a kind of script made embedded web page can be by Internet service to replace with ASPNET from Java (Object-Oriented Programming Language) Device perform server side scripts technology), data base replace with ES (Elastic from MySQL (Relational DBMS) Search, a kind of search server).These scenes are at multiple IP as when accessing front end, and its rear end is applied or data, services Device disunity.So, when two IP work simultaneously, it is clear that data corruption can be caused.Current solution is to be solved by DNS The timeliness (i.e. effective time or cache-time) of new record is set to 0 second, and such DNS Cache servers can remove DNS every time Resolution server obtains state-of-the-art record, is i.e. equivalent to abandon DNS Cache servers, and this obviously can be to dns resolution server Cause huge access pressure, and for correspondence, each dns resolution request is all the dns resolution service by accessing public network Device obtains dns resolution record, then its dns resolution request deadline can be impacted.
Therefore, how in the case of the operation principle not affecting DNS Cache servers and efficiency, it is provided that accurately Dns resolution record, effectively shortens the time simultaneously parsing old IP address in network-wide basis with new IP address, i.e. shortens complete The chaotic time period that in the range of net, old IP address and new IP address occur simultaneously, become technical problem urgently to be resolved hurrily.
Summary of the invention
The present invention is based on the problems referred to above, it is proposed that a kind of new technical scheme, makes dns resolution server at needs more During new dns resolution record, use certain switchover policy to shorten or avoid switching the downtime of dns resolution record, with not In the case of affecting operation principle and the efficiency of dns caching server, using the teaching of the invention it is possible to provide dns resolution record accurately, effectively contract The short time simultaneously parsing old IP address and new IP address in network-wide basis, in i.e. shortening network-wide basis, old IP address is with new The chaotic time period that IP address occurs simultaneously.
In view of this, according to the first aspect of the invention, it is proposed that the changing method of a kind of dns resolution record, including: when When being updated original DNS resolution record, arranging switching and prepare initial time, wherein, described original DNS resolution record includes Fixing life cycle and an IP address;Preparing in the described fixing life cycle that initial time starts from described switching, for coming Feedback the first dns resolution record, wherein, described first dns resolution record is asked from the dns resolution of arbitrary dns caching server Including less than first life cycle of described fixing life cycle and a described IP address;After terminating described first life cycle, pin Feedback the second dns resolution record, wherein, described 2nd DNS are asked in dns resolution from described arbitrary dns caching server Solve new record and include that the second life cycle and the 2nd IP address, described second life cycle are random less than described fixing life cycle Number, feeds back to client for described arbitrary dns caching server by described second dns resolution record.
In this technical scheme, when dns resolution server needs to be updated the original DNS resolution record of arbitrary domain name Time, first the switching preparation initial time being ready for dns resolution record is set, then from this switching prepares initial time Original DNS resolution record a fixing life cycle in, for arbitrary dns caching server for the DNS of this arbitrary domain name During analysis request, to the first dns resolution record that this arbitrary dns caching server feedback is different from original DNS resolution record, its The IP address comprised still for an IP address of original DNS resolution record, its first life cycle then ratio original DNS resolution record Fixing life cycle short, so, when arriving switching and preparing a fixing life cycle after initial time starts, all accessed The dns caching server of dns resolution server all had been received by being shorter than fixing life cycle the life cycle of a dns resolution record First dns resolution record, and its out-of-service time be this first life cycle;Then, after reaching this first life cycle, arbitrary DNS delays Depositing server and all will send the new dns resolution request for this arbitrary domain name to dns resolution server, the most now DNS solves Analysis server feeds back the second dns resolution record to this arbitrary dns caching server, and it contains the of original DNS resolution record One IP address be updated after the 2nd IP address, but now dns resolution server is to different dns caching server feedbacks The second life cycle of the second dns resolution record then for the random number less than the fixing generation phase, be unfixed life cycle, as This, can effectively smooth and distribute the pressure that each dns caching server sends new dns resolution request to dns resolution server Power, has i.e. upset each dns caching server and has sent the time of new dns resolution request to dns resolution server, and at not shadow In the case of ringing operation principle and the efficiency of DNS Cache servers, it is provided that dns resolution record accurately.
In technique scheme, it is preferable that after preparing initial time from described switching after Preset Time, for Feedback the 3rd dns resolution record is asked in dns resolution from described arbitrary dns caching server, and wherein, described Preset Time is big Described fixing life cycle, and described 3rd dns resolution record includes described fixing life cycle and described 2nd IP address, with For described arbitrary dns caching server, described 3rd dns resolution record is fed back to described client.
In this technical scheme, further, switching prepare after initial time more than fixing life cycle default time After between, i.e. after the second dns resolution request having fed back (Preset Time-fixing life cycle) time to dns caching server, then Can ask to feed back effective time for fixing life cycle with regard to the dns resolution of any of the above-described domain name for arbitrary dns caching server And the 3rd dns resolution record that IP address is the 2nd IP address after updating, solve in network-wide basis effectively to shorten simultaneously Separate out the time of old IP address and new IP address, i.e. shorten the confusion that old IP address in network-wide basis occurs with new IP address simultaneously Time period, thus promote Consumer's Experience.
In any of the above-described technical scheme, it is preferable that described Preset Time be two described fixing life cycle sum.
In this technical scheme, Preset Time can be set to the time span of two fixing life cycles, the most also may be used It is set as that other are more than the time of fixing life cycle with practical situation.
In any of the above-described technical scheme, it is preferable that described first life cycle is described fixing life cycle and lapse of time Difference, described lapse of time is to feed back the current time of described first dns resolution record to prepare initial time with described switching Difference.
In this technical scheme, first life cycle less than fixing life cycle of the first dns resolution record can be that this is solid Determine to prepare initial time to feeding back a DNS to dns caching server with dns resolution server from the switching arranged life cycle The difference of this loss period of the current time of record.
In any of the above-described technical scheme, it is preferable that the span of described fixing life cycle is: 10 minutes~120 points Clock.
In this technical scheme, dns resolution server is the effective of the dns resolution record to dns caching server feedback The span of the fixed value (i.e. fixing life cycle) of time is preferably 10 minutes~120 minutes;Can certainly be according to reality Border demand arranges other fixed values.
According to the second aspect of the invention, it is proposed that the switching device of a kind of dns resolution record, including: module is set, use In when original DNS resolution record is updated, switching is set and prepares initial time, wherein, described original DNS resolution record Including fixing life cycle and an IP address;First resolves feedback module, for preparing initial time from described switching Described fixing life cycle in, for from arbitrary dns caching server dns resolution ask feedback the first dns resolution record, Wherein, described first dns resolution record includes less than first life cycle of described fixing life cycle and a described IP address;The Two resolve feedback module, for after terminating described first life cycle, for the DNS from described arbitrary dns caching server Analysis request feeds back the second dns resolution record, and wherein, described second dns resolution record includes the second life cycle and the 2nd IP ground Location, described second life cycle is the random number less than described fixing life cycle, for described arbitrary dns caching server by described Second dns resolution record feeds back to client.
In this technical scheme, when dns resolution server needs to be updated the original DNS resolution record of arbitrary domain name Time, first the switching preparation initial time being ready for dns resolution record is set, then from this switching prepares initial time Original DNS resolution record a fixing life cycle in, for arbitrary dns caching server for the DNS of this arbitrary domain name During analysis request, to the first dns resolution record that this arbitrary dns caching server feedback is different from original DNS resolution record, its The IP address comprised still for an IP address of original DNS resolution record, its first life cycle then ratio original DNS resolution record Fixing life cycle short, so, when arriving switching and preparing a fixing life cycle after initial time starts, all accessed The dns caching server of dns resolution server all had been received by being shorter than fixing life cycle the life cycle of a dns resolution record First dns resolution record, and its out-of-service time be this first life cycle;Then, after reaching this first life cycle, arbitrary DNS delays Depositing server and all will send the new dns resolution request for this arbitrary domain name to dns resolution server, the most now DNS solves Analysis server feeds back the second dns resolution record to this arbitrary dns caching server, and it contains the of original DNS resolution record One IP address be updated after the 2nd IP address, but now dns resolution server is to different dns caching server feedbacks The second life cycle of the second dns resolution record then for the random number less than the fixing generation phase, be unfixed life cycle, as This, can effectively smooth and distribute the pressure that each dns caching server sends new dns resolution request to dns resolution server Power, has i.e. upset each dns caching server and has sent the time of new dns resolution request to dns resolution server, and at not shadow In the case of ringing operation principle and the efficiency of DNS Cache servers, it is provided that dns resolution record accurately.
In technique scheme, it is preferable that also include: the 3rd resolves feedback module, for when preparing from described switching After initial time after Preset Time, ask feedback the 3rd for the dns resolution from described arbitrary dns caching server Dns resolution record, wherein, described Preset Time is more than described fixing life cycle, and described 3rd dns resolution record includes institute State fixing life cycle and described 2nd IP address, for described arbitrary dns caching server by anti-for described 3rd dns resolution record It is fed to described client.
In this technical scheme, further, switching prepare after initial time more than fixing life cycle default time After between, i.e. after the second dns resolution request having fed back (Preset Time-fixing life cycle) time to dns caching server, then Can ask to feed back effective time for fixing life cycle with regard to the dns resolution of any of the above-described domain name for arbitrary dns caching server And the 3rd dns resolution record that IP address is the 2nd IP address after updating, solve in network-wide basis effectively to shorten simultaneously Separate out the time of old IP address and new IP address, i.e. shorten the confusion that old IP address in network-wide basis occurs with new IP address simultaneously Time period, thus promote Consumer's Experience.
In any of the above-described technical scheme, it is preferable that described Preset Time be two described fixing life cycle sum.
In this technical scheme, Preset Time can be set to the time span of two fixing life cycles, the most also may be used It is set as that other are more than the time of fixing life cycle with practical situation.
In any of the above-described technical scheme, it is preferable that described first life cycle is described fixing life cycle and lapse of time Difference, described lapse of time is to feed back the current time of described first dns resolution record to prepare initial time with described switching Difference.
In this technical scheme, first life cycle less than fixing life cycle of the first dns resolution record can be that this is solid Determine to prepare initial time to feeding back a DNS to dns caching server with dns resolution server from the switching arranged life cycle The difference of this loss period of the current time of record.
In any of the above-described technical scheme, it is preferable that the span of described fixing life cycle is: 10 minutes~120 points Clock.
In this technical scheme, dns resolution server is the effective of the dns resolution record to dns caching server feedback The span of the fixed value (i.e. fixing life cycle) of time is preferably 10 minutes~120 minutes;Can certainly be according to reality Border demand arranges other fixed values.
By technical scheme, make dns resolution server when needs update dns resolution record, use certain Switchover policy shorten or avoid switch dns resolution record downtime, with former in the work not affecting dns caching server Reason with efficiency in the case of, using the teaching of the invention it is possible to provide dns resolution record accurately, effectively shorten parse in network-wide basis simultaneously old The chaotic time that in IP address and the time of new IP address, i.e. shortening network-wide basis, old IP address occurs with new IP address simultaneously Section.
Accompanying drawing explanation
Fig. 1 shows the pass between dns resolution server, dns caching server and client in related art scheme It it is schematic diagram;
Fig. 2 shows the schematic flow sheet of the changing method of the dns resolution record of embodiments of the invention;
Fig. 3 shows the schematic block diagram of the switching device of the dns resolution record of embodiments of the invention;
Fig. 4 shows the schematic diagram of the dns resolution server feedback dns resolution record of the first embodiment of the present invention;
Fig. 5 shows the schematic diagram of the dns resolution server feedback dns resolution record of the second embodiment of the present invention;
Fig. 6 shows the schematic diagram of the dns resolution server feedback dns resolution record of the third embodiment of the present invention.
Detailed description of the invention
In order to the above-mentioned purpose of the present invention, feature and advantage can be more clearly understood that, real with concrete below in conjunction with the accompanying drawings The present invention is further described in detail by mode of executing.It should be noted that in the case of not conflicting, the enforcement of the application Feature in example and embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the present invention, but, the present invention also may be used Implementing to use other to be different from other modes described here, therefore, protection scope of the present invention is not by described below The restriction of specific embodiment.
Fig. 2 shows the schematic flow sheet of the changing method of the dns resolution record of embodiments of the invention.
As in figure 2 it is shown, the changing method of dns resolution record according to an embodiment of the invention, including below scheme step:
Step 202, when being updated original DNS resolution record, arranges switching and prepares initial time, wherein, described Original DNS resolution record includes fixing life cycle and an IP address.
Step 204, is preparing in the described fixing life cycle that initial time starts from described switching, for from arbitrary The dns resolution request feedback first dns resolution record of dns caching server, wherein, described first dns resolution record includes little The first life cycle and a described IP address described fixing life cycle.
Step 206, after terminating described first life cycle, for the dns resolution from described arbitrary dns caching server Request feedback the second dns resolution record, wherein, described second dns resolution record includes the second life cycle and the 2nd IP address, institute Stating for the second life cycle is the random number less than described fixing life cycle, for described arbitrary dns caching server by described second Dns resolution record feeds back to client.
In this technical scheme, when dns resolution server needs to be updated the original DNS resolution record of arbitrary domain name Time, first the switching preparation initial time being ready for dns resolution record is set, then from this switching prepares initial time Original DNS resolution record a fixing life cycle in, for arbitrary dns caching server for the DNS of this arbitrary domain name During analysis request, to the first dns resolution record that this arbitrary dns caching server feedback is different from original DNS resolution record, its The IP address comprised still for an IP address of original DNS resolution record, its first life cycle then ratio original DNS resolution record Fixing life cycle short, so, when arriving switching and preparing a fixing life cycle after initial time starts, all accessed The dns caching server of dns resolution server all had been received by being shorter than fixing life cycle the life cycle of a dns resolution record First dns resolution record, and its out-of-service time be this first life cycle;Then, after reaching this first life cycle, arbitrary DNS delays Depositing server and all will send the new dns resolution request for this arbitrary domain name to dns resolution server, the most now DNS solves Analysis server feeds back the second dns resolution record to this arbitrary dns caching server, and it contains the of original DNS resolution record One IP address be updated after the 2nd IP address, but now dns resolution server is to different dns caching server feedbacks The second life cycle of the second dns resolution record then for the random number less than the fixing generation phase, be unfixed life cycle, as This, can effectively smooth and distribute the pressure that each dns caching server sends new dns resolution request to dns resolution server Power, has i.e. upset each dns caching server and has sent the time of new dns resolution request to dns resolution server, and at not shadow In the case of ringing operation principle and the efficiency of DNS Cache servers, it is provided that dns resolution record accurately.
Further, dns resolution server is the effective time of the dns resolution record to dns caching server feedback The span of fixed value (i.e. fixing life cycle) is preferably 10 minutes~120 minutes;Can certainly be according to the actual requirements Other fixed values are set.
Further, when preparing after initial time after Preset Time from described switching, for from described arbitrary DNS Dns resolution request feedback the 3rd dns resolution record of caching server, wherein, described Preset Time is more than described fixing existence Phase, and described 3rd dns resolution record includes described fixing life cycle and described 2nd IP address, for described arbitrary DNS Described 3rd dns resolution record is fed back to described client by caching server.
In this technical scheme, further, switching prepare after initial time more than fixing life cycle default time After between, i.e. after the second dns resolution request having fed back (Preset Time-fixing life cycle) time to dns caching server, then Can ask to feed back effective time for fixing life cycle with regard to the dns resolution of any of the above-described domain name for arbitrary dns caching server And the 3rd dns resolution record that IP address is the 2nd IP address after updating, solve in network-wide basis effectively to shorten simultaneously Separate out the time of old IP address and new IP address, i.e. shorten the confusion that old IP address in network-wide basis occurs with new IP address simultaneously Time period, thus promote Consumer's Experience.
It is possible to further Preset Time to be set to the time span of two fixing life cycles, naturally it is also possible to actual Situation is set as that other are more than the time of fixing life cycle.
In any of the above-described technical scheme, further, when described first life cycle is described fixing life cycle and passage Between difference, described lapse of time is to feed back the current time of described first dns resolution record when preparing initial with described switching Between difference.
In this technical scheme, first life cycle less than fixing life cycle of the first dns resolution record can be that this is solid Determine to prepare initial time to feeding back a DNS to dns caching server with dns resolution server from the switching arranged life cycle The difference of this loss period of the current time of record.
Fig. 3 shows the schematic block diagram of the switching device of the dns resolution record of embodiments of the invention.
As it is shown on figure 3, the switching device 300 of dns resolution record according to an embodiment of the invention, including: module is set 302, first feedback module 304 and the second parsing feedback module 306 are resolved.
Wherein, module 302 is set, for when original DNS resolution record is updated, switching is set when preparing initial Between, wherein, described original DNS resolution record includes fixing life cycle and an IP address;First resolves feedback module 304, uses In preparing in the described fixing life cycle that initial time starts from described switching, for from arbitrary dns caching server Dns resolution request feedback the first dns resolution record, wherein, described first dns resolution record included less than described fixing life cycle The first life cycle and a described IP address;Second resolves feedback module 306, is used for after terminating described first life cycle, Feedback the second dns resolution record, wherein, described second is asked for the dns resolution from described arbitrary dns caching server Dns resolution record include the second life cycle and the 2nd IP address, described second life cycle be less than described fixing life cycle with Machine number, feeds back to client for described arbitrary dns caching server by described second dns resolution record.
In this technical scheme, when dns resolution server needs to be updated the original DNS resolution record of arbitrary domain name Time, first the switching preparation initial time being ready for dns resolution record is set, then from this switching prepares initial time Original DNS resolution record a fixing life cycle in, for arbitrary dns caching server for the DNS of this arbitrary domain name During analysis request, to the first dns resolution record that this arbitrary dns caching server feedback is different from original DNS resolution record, its The IP address comprised still for an IP address of original DNS resolution record, its first life cycle then ratio original DNS resolution record Fixing life cycle short, so, when arriving switching and preparing a fixing life cycle after initial time starts, all accessed The dns caching server of dns resolution server all had been received by being shorter than fixing life cycle the life cycle of a dns resolution record First dns resolution record, and its out-of-service time be this first life cycle;Then, after reaching this first life cycle, arbitrary DNS delays Depositing server and all will send the new dns resolution request for this arbitrary domain name to dns resolution server, the most now DNS solves Analysis server feeds back the second dns resolution record to this arbitrary dns caching server, and it contains the of original DNS resolution record One IP address be updated after the 2nd IP address, but now dns resolution server is to different dns caching server feedbacks The second life cycle of the second dns resolution record then for the random number less than the fixing generation phase, be unfixed life cycle, as This, can effectively smooth and distribute the pressure that each dns caching server sends new dns resolution request to dns resolution server Power, has i.e. upset each dns caching server and has sent the time of new dns resolution request to dns resolution server, and at not shadow In the case of ringing operation principle and the efficiency of DNS Cache servers, it is provided that dns resolution record accurately.
Further, dns resolution server is the effective time of the dns resolution record to dns caching server feedback The span of fixed value (i.e. fixing life cycle) is preferably 10 minutes~120 minutes;Can certainly be according to the actual requirements Other fixed values are set.
Further, the switching device 300 of described dns resolution record also includes: the 3rd resolves feedback module 308, is used for After preparing initial time from described switching after Preset Time, solve for the DNS from described arbitrary dns caching server Analysis request feedback the 3rd dns resolution record, wherein, described Preset Time is more than described fixing life cycle, and described 3rd DNS Solve new record and include described fixing life cycle and described 2nd IP address, for described arbitrary dns caching server by described the Three dns resolution records feed back to described client.
In this technical scheme, further, switching prepare after initial time more than fixing life cycle default time After between, i.e. after the second dns resolution request having fed back (Preset Time-fixing life cycle) time to dns caching server, then Can ask to feed back effective time for fixing life cycle with regard to the dns resolution of any of the above-described domain name for arbitrary dns caching server And the 3rd dns resolution record that IP address is the 2nd IP address after updating, solve in network-wide basis effectively to shorten simultaneously Separate out the time of old IP address and new IP address, i.e. shorten the confusion that old IP address in network-wide basis occurs with new IP address simultaneously Time period, thus promote Consumer's Experience.
It is possible to further Preset Time to be set to the time span of two fixing life cycles, naturally it is also possible to actual Situation is set as that other are more than the time of fixing life cycle.
In any of the above-described technical scheme, further, when described first life cycle is described fixing life cycle and passage Between difference, described lapse of time is to feed back the current time of described first dns resolution record when preparing initial with described switching Between difference.
In this technical scheme, first life cycle less than fixing life cycle of the first dns resolution record can be that this is solid Determine to prepare initial time to feeding back a DNS to dns caching server with dns resolution server from the switching arranged life cycle The difference of this loss period of the current time of record.
Below in conjunction with Fig. 4 to Fig. 6, the specific embodiment of the present invention is described in detail, in this embodiment, dns resolution Server includes three duties: generally state, prepare switching state and switching completes for the first time, its these three states it Between switch over, to complete the switching to dns resolution record, and then provide dns resolution record accurately, it is to avoid during application upgrade Dual system works the problems such as the data corruption that causes, and downtime when shortening or avoid system to switch simultaneously.Specifically:
(1) under usual state
The life cycle that the dns resolution record that dns resolution server returns to dns caching server every time comprises is fixed value (i.e. fixing life cycle), as shown in Figure 4, this fixed value is 10 minutes, and the most different dns caching servers was visited in the different time Asking dns resolution server, the effective time (i.e. fixed value) of the dns resolution record got is the most identical.
(2) prepare under switching state
When dns resolution server needs to change dns resolution record, dns resolution server enters this state.Solve at DNS In the default life cycle (equal with above-mentioned fixed value, i.e. to fix life cycle) of new record, directly do not return to dns caching server Go back to the new IP address (the i.e. the 2nd IP address) after change, but still return to old IP address (the i.e. the oneth IP address), but dns resolution The life cycle of record is: life cycle (the i.e. first life cycle)=default life cycle-(current time-preparations switch time started) (i.e. lapse of time), wherein, current time is to dns caching server return, dns resolution server includes that old IP address is with new Time of dns resolution record of life cycle, prepare the switching time started be dns resolution server settings start perform DNS Solve time of switching of new record, the most in this condition, the effective time of the dns resolution record that dns resolution server returns with Time passage change, as it is shown in figure 5, different dns caching servers accesses dns resolution server in the different time, is obtained The effective time of the dns resolution record got differs, and is in particular: 10 minutes (the most default life cycle)-(access the time (i.e. Current time)-11:00 (i.e. preparing the switching time started)).
(3) switching completes for the first time
When (prepare switching time started+dns resolution and record default life cycle) this time arrives, the most all access The DNS Cache servers crossing dns resolution server had received the DNS being shorter than default entry lifetime life cycle one time Solve new record, and their out-of-service time can point to same time point, after this time point, all of DNS Cache Server all can initiate new dns resolution request to dns resolution server, without obtaining data from self Cache, now Dns resolution server will send new IP address.
Requiring supplementation with explanation, at this moment return the dns resolution record of new IP address, its life cycle is: 0~dns resolution record Random number between default life cycle.Rather than dns resolution records default life cycle, to reach smooth distribution DNS Cache clothes Business device sends the pressure of dns resolution request to dns resolution server, and switching completes for the first time, and dns resolution server returns The effective time (the i.e. second life cycle) of dns resolution record is the random number between 0 to set time, as shown in Figure 6, be 0~ Random number between 10 minutes.
When (prepare switching time started+2 × dns resolution and record default life cycle) this time arrives, dns resolution takes Business device revert to usual state, and IP address has switched.
Technical scheme is described in detail above in association with accompanying drawing, by technical scheme, makes dns resolution Server, when needs update dns resolution record, uses certain switchover policy to shorten or avoids switching stopping of dns resolution record The machine time, with in the case of the operation principle not affecting dns caching server and efficiency, using the teaching of the invention it is possible to provide dns resolution accurately Record, effectively shortens the time simultaneously parsing old IP address in network-wide basis with new IP address, i.e. shortens network-wide basis The chaotic time period that interior old IP address occurs with new IP address simultaneously.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, that is made any repaiies Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. the changing method of a dns resolution record, it is characterised in that including:
When being updated original DNS resolution record, arranging switching and prepare initial time, wherein, described original DNS resolution is remembered Record includes fixing life cycle and an IP address;
Preparing in the described fixing life cycle that initial time starts from described switching, for from arbitrary dns caching server Dns resolution request feedback the first dns resolution record, wherein, described first dns resolution record includes less than described fixing existence First life cycle of phase and a described IP address;
After terminating described first life cycle, ask feedback second for the dns resolution from described arbitrary dns caching server Dns resolution record, wherein, described second dns resolution record includes the second life cycle and the 2nd IP address, described second life cycle For the random number less than described fixing life cycle, for described arbitrary dns caching server by anti-for described second dns resolution record It is fed to client.
The changing method of dns resolution record the most according to claim 1, it is characterised in that
After preparing initial time from described switching after Preset Time, for from described arbitrary dns caching server Dns resolution request feedback the 3rd dns resolution record, wherein,
Described Preset Time is more than described fixing life cycle, and
Described 3rd dns resolution record includes described fixing life cycle and described 2nd IP address, for described arbitrary DNS cache Described 3rd dns resolution record is fed back to described client by server.
The changing method of dns resolution record the most according to claim 2, it is characterised in that described Preset Time is two Described fixing life cycle sum.
The changing method of dns resolution record the most according to any one of claim 1 to 3, it is characterised in that
Described first life cycle is the difference of described fixing life cycle and lapse of time, and described lapse of time is feedback described first The current time of dns resolution record prepares the difference of initial time with described switching.
The changing method of dns resolution record the most according to any one of claim 1 to 3, it is characterised in that described fixing The span of life cycle is: 10 minutes~120 minutes.
6. the switching device of a dns resolution record, it is characterised in that including:
Module is set, for when original DNS resolution record is updated, switching is set and prepares initial time, wherein, described Original DNS resolution record includes fixing life cycle and an IP address;
First resolves feedback module, for preparing in the described fixing life cycle that initial time starts from described switching, for Feedback the first dns resolution record, wherein, described first dns resolution note are asked in dns resolution from arbitrary dns caching server Record includes less than first life cycle of described fixing life cycle and a described IP address;
Second resolves feedback module, for after terminating described first life cycle, for from described arbitrary dns caching server Dns resolution request feedback the second dns resolution record, wherein, described second dns resolution record includes the second life cycle and second IP address, described second life cycle is the random number less than described fixing life cycle, will for described arbitrary dns caching server Described second dns resolution record feeds back to client.
The switching device of dns resolution record the most according to claim 6, it is characterised in that also include:
3rd resolves feedback module, is used for after preparing initial time from described switching after Preset Time, for from institute State arbitrary dns caching server dns resolution request feedback the 3rd dns resolution record, wherein,
Described Preset Time is more than described fixing life cycle, and
Described 3rd dns resolution record includes described fixing life cycle and described 2nd IP address, for described arbitrary DNS cache Described 3rd dns resolution record is fed back to described client by server.
The switching device of dns resolution record the most according to claim 7, it is characterised in that described Preset Time is two Described fixing life cycle sum.
9. according to the switching device of the dns resolution record according to any one of claim 6 to 8, it is characterised in that
Described first life cycle is the difference of described fixing life cycle and lapse of time, and described lapse of time is feedback described first The current time of dns resolution record prepares the difference of initial time with described switching.
10. according to the switching device of the dns resolution record according to any one of claim 6 to 8, it is characterised in that described solid Determining the span of life cycle is: 10 minutes~120 minutes.
CN201610801632.7A 2016-09-05 2016-09-05 The switching method and device of dns resolution record Active CN106131246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610801632.7A CN106131246B (en) 2016-09-05 2016-09-05 The switching method and device of dns resolution record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610801632.7A CN106131246B (en) 2016-09-05 2016-09-05 The switching method and device of dns resolution record

Publications (2)

Publication Number Publication Date
CN106131246A true CN106131246A (en) 2016-11-16
CN106131246B CN106131246B (en) 2019-06-21

Family

ID=57271740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610801632.7A Active CN106131246B (en) 2016-09-05 2016-09-05 The switching method and device of dns resolution record

Country Status (1)

Country Link
CN (1) CN106131246B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243265A (en) * 2016-12-27 2018-07-03 中国移动通信集团浙江有限公司 A kind of dns resolution processing method and processing device
CN109547585A (en) * 2019-01-14 2019-03-29 中国雄安集团数字城市科技有限公司 A method of based on being switched fast for edge calculations cloud

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272407A (en) * 2008-04-28 2008-09-24 杭州华三通信技术有限公司 Caching detecting method, caching detecting device and detection responding device for domain name system
US20110264865A1 (en) * 2010-04-27 2011-10-27 Symantec Corporation Techniques for directory server integration
CN102469167A (en) * 2010-11-01 2012-05-23 中国移动通信集团北京有限公司 Domain name query implementing method and system
CN103825969A (en) * 2013-10-29 2014-05-28 电子科技大学 DNS query method based on anonymous network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272407A (en) * 2008-04-28 2008-09-24 杭州华三通信技术有限公司 Caching detecting method, caching detecting device and detection responding device for domain name system
US20110264865A1 (en) * 2010-04-27 2011-10-27 Symantec Corporation Techniques for directory server integration
CN102469167A (en) * 2010-11-01 2012-05-23 中国移动通信集团北京有限公司 Domain name query implementing method and system
CN103825969A (en) * 2013-10-29 2014-05-28 电子科技大学 DNS query method based on anonymous network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243265A (en) * 2016-12-27 2018-07-03 中国移动通信集团浙江有限公司 A kind of dns resolution processing method and processing device
CN109547585A (en) * 2019-01-14 2019-03-29 中国雄安集团数字城市科技有限公司 A method of based on being switched fast for edge calculations cloud

Also Published As

Publication number Publication date
CN106131246B (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN109067930B (en) Domain name access method, domain name resolution method, server, terminal and storage medium
CN112087333A (en) Micro-service registration center cluster and information processing method thereof
US9451302B2 (en) Fusion device, system and method for implementing internet protocol television service
CN104852934A (en) Method for realizing flow distribution based on front-end scheduling, device and system thereof
US20210409298A1 (en) Method for scoring a service node, and method and server for scheduling a domain name system
CN103905574B (en) A kind of DNS Operational Visits method, DNS data synchronous method and equipment
US20090019143A1 (en) Redirection techniques in a communication network
CA2751149C (en) Method and apparatus for tracking device management data changes
CN103685590A (en) Method and system for obtaining IP (internet protocol) address
CN105610993B (en) A kind of domain name analytic method, apparatus and system
CN103581351B (en) The method and apparatus of network access
US20110145316A1 (en) Proactive dns query system based on call flow analysis
JP2007207231A (en) Method for accessing distributed service in network
WO2019052058A1 (en) Domain name redirecting method and system
CN106131246A (en) The changing method of dns resolution record and device
KR20190007041A (en) Method and device for data version comparison between time zone transit stations
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
JP2008522464A (en) Method and system for agent to redirect terminal request
CN107896257A (en) Method, apparatus, equipment and the medium of deploying client subsystem function
CN103200033B (en) CDN and network integration system and the electoral machinery of primary, spare scheduling unit thereof
KR20210130989A (en) api gateway accelerator system and methods
CN109842691A (en) The domain name synchronous method and relevant device of Cache system and dns server
CN106331201A (en) Domain name system resource record caching control method and server
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
US11336579B2 (en) Predictive Anycast traffic shaping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant