CN108737586A - A kind of calamity of inquiry of the domain name service is for switching method and apparatus - Google Patents

A kind of calamity of inquiry of the domain name service is for switching method and apparatus Download PDF

Info

Publication number
CN108737586A
CN108737586A CN201710261128.7A CN201710261128A CN108737586A CN 108737586 A CN108737586 A CN 108737586A CN 201710261128 A CN201710261128 A CN 201710261128A CN 108737586 A CN108737586 A CN 108737586A
Authority
CN
China
Prior art keywords
backup
disaster recovery
recovery device
domain name
master server
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
CN201710261128.7A
Other languages
Chinese (zh)
Other versions
CN108737586B (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.)
INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
Original Assignee
INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
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 INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC filed Critical INTERNET DOMAIN NAME SYSTEM BEIJING ENGINEERING RESEARCH CENTER LLC
Priority to CN201710261128.7A priority Critical patent/CN108737586B/en
Publication of CN108737586A publication Critical patent/CN108737586A/en
Application granted granted Critical
Publication of CN108737586B publication Critical patent/CN108737586B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The invention discloses a kind of calamities of inquiry of the domain name service for switching method and apparatus, belongs to internet security technical field, method includes:Periodically monitor the service availability of master server;When the service availability for monitoring master server is less than preset value, the top level domain in asking the dns query message received parses, and obtains backup & disaster recovery device address corresponding with top level domain;According to backup & disaster recovery device address, the destination server that dns query message is asked is switched into backup & disaster recovery device, so that backup & disaster recovery device provides inquiry of the domain name service.The present invention switches to backup & disaster recovery device by the destination server for asking dns query message, so that backup & disaster recovery device provides inquiry of the domain name service, thereby reduce leads to the influence suffered by WHOIS service availabilities since the randomness and duration of WAN network congestion are indefinite.

Description

A kind of calamity of inquiry of the domain name service is for switching method and apparatus
Technical field
The present invention relates to internet security technology, more particularly to a kind of calamity of inquiry of the domain name service is for switching method and dress It sets.
Background technology
Whether WHOIS is to be registered for nslookup and the database of the details of registered domain name.Pass through Just whether WHOIS can realize the inquiry to domain-name information, for example, domain name registration service mechanism, to confirm domain name data It really is registered to domain name registration center, is often inquired by WHOIS;Many Internet users carry out Internet punchings for another example When unrestrained, it is desirable to further appreciate that the details of domain name, at this moment can also be inquired by WHOIS.From the point of view of intuitive, WHOIS is exactly It is linked to the search engine of dns database.The WHOIS information of each domain name/IP is preserved by corresponding management organization;Not same area The WHOIS information of name suffix needs to different whois databases to inquire, such as the whois database of .com and the WHOIS of .edu Database is just different.
Internet domain name system is responsible for and is coordinated to Internet Name and Number Assignment Agency (ICANN) System, provides according to ICANN, and the addresss of service WHOIS of new general top level domain are necessary for whois.nic. { tld }, in the address Registration office provides the inquiry service based on plain text agreement (RFC3912) on 43 ports, is registered on 80 ports of the address Office provides the page interrogation function based on http protocol.
For domain name registration service mechanism and numerous Internet users, the availability and performance of inquiry of the domain name service are straight It connects and affects its impression for using internet, meanwhile, SLA (Service Level Agreement, Service Level Agreement) is to domain Also there are strict requirements for the Service Level Objective standard of name inquiry service, wherein whois Server, whois Web service availabilities It is 99.9%.However, under conditions of using single node deployment architecture, gathered around if there is WAN network fluctuation or network Plug, the network reachability of service arrangement node will be deteriorated, and WHOIS service availabilities can be caused drastically to decline.
Therefore, it exists in the prior art since the randomness and duration of WAN network congestion are indefinite, and WHOIS is caused to take The problem of business availability is affected.
Invention content
In order to reduce influence of the random congestion of wide area network to WHOIS service availabilities, the present invention provides a kind of domain names to look into The calamity of service is ask for switching method and apparatus.The technical solution is as follows:
In a first aspect, provide a kind of calamity of inquiry of the domain name service for switching method, the method includes:
Periodically monitor the service availability of master server;
When the service availability for monitoring the master server is less than preset value, the dns query message received is asked Top level domain in asking is parsed, and backup & disaster recovery device address corresponding with the top level domain is obtained;
According to backup & disaster recovery device address, the destination server of domain name information inquiring request is switched into the calamity Standby server, so that the backup & disaster recovery device provides inquiry of the domain name service.
With reference to first aspect, in the first possible implementation, the method further includes:
When the service availability for monitoring the master server is restored to the preset value, next domain-name information is looked into The destination server for asking request switches back to the master server, so that the master server provides inquiry of the domain name service.
With reference to first aspect, in second of possible realization method, the service for periodically monitoring master server Before availability step, the method further includes:
It is synchronized using the domain name registration information of the master server as Backup Data and copies to the backup & disaster recovery device.
Second of possible realization method with reference to first aspect, it is described by institute in the third possible realization method The domain name registration information for stating master server synchronizes as Backup Data and copies to the backup & disaster recovery device and include:
According to the domain name registration information of the master server, index data is generated;
The index data is synchronized as the Backup Data and copies to the backup & disaster recovery device.
With reference to first aspect to the third any one possible realization method of first aspect, in the 4th kind of possible reality It is described when the service availability for monitoring the master server is less than preset value in existing mode, to the domain-name information received Top level domain in inquiry request is parsed, and is obtained backup & disaster recovery device address corresponding with the top level domain and is included:
According to the domain-name information entrained by domain name information inquiring request, the top level domain is determined;
Dns resolution is carried out to the top level domain, and corresponding with the top level domain according to the acquisition of dns resolution result Backup & disaster recovery device address, described address include at least one of the addresses IPv4 and the addresses IPv6;
Record at least one of the addresses IPv4 and the addresses IPv6.
Second aspect provides a kind of calamity of inquiry of the domain name service for switching device, and described device includes:
Receiving unit, for receiving dns query message request;
Monitoring unit, the service availability for periodically monitoring master server;
Parse acquiring unit, for when monitor the master server service availability be less than preset value when, to receive To dns query message request in top level domain parsed, obtain corresponding with top level domain backup & disaster recovery device Address;
Switch unit is used for according to backup & disaster recovery device address, by the destination service of domain name information inquiring request Device switches to the backup & disaster recovery device, so that the backup & disaster recovery device provides inquiry of the domain name service.
In conjunction with second aspect, in the first possible implementation, described device further includes switchback unit, the switchback Unit is specifically used for:
When the service availability for monitoring the master server is restored to the preset value, next domain-name information is looked into The destination server for asking request switches back to the master server, so that the master server provides inquiry of the domain name service.
In conjunction with second aspect, in second of possible realization method, described device further includes copied cells, the duplication Unit is specifically used for:
It is synchronized using the domain name registration information of the master server as Backup Data and copies to the backup & disaster recovery device.
In conjunction with second of possible realization method of second aspect, in the third possible realization method, the duplication Unit includes:
Subelement is generated, for the domain name registration information according to the master server, generates index data;
Subelement is replicated, the backup & disaster recovery is copied to for synchronizing the index data as the Backup Data Device.
In conjunction with the third any one possible realization method of second aspect to second aspect, in the 4th kind of possible reality In existing mode, the parsing acquiring unit includes:
Determination subelement determines described top for the domain-name information entrained by domain name information inquiring request Domain name;
Parsing obtain subelement, for the top level domain carry out dns resolution, and according to dns resolution result obtain with Top level domain corresponding backup & disaster recovery device address, described address include at least one in the addresses IPv4 and the addresses IPv6 Kind;
Subelement is recorded, for recording at least one of the addresses IPv4 and the addresses IPv6.
The third aspect, provides a kind of electronic equipment, and the electronic equipment includes memory and connects with the memory The processor connect, wherein the memory calls the memory to be stored for storing batch processing code, the processor Program code for performing the following operations:
Periodically monitor the service availability of master server;
When the service availability for monitoring the master server is less than preset value, the dns query message received is asked Top level domain in asking is parsed, and backup & disaster recovery device address corresponding with the top level domain is obtained;
According to backup & disaster recovery device address, the destination server of domain name information inquiring request is switched into the calamity Standby server, so that the backup & disaster recovery device provides inquiry of the domain name service.
In conjunction with the third aspect, in the first possible implementation, the processor calls the memory to be stored Program code for performing the following operations:
When the service availability for monitoring the master server is restored to the preset value, next domain-name information is looked into The destination server for asking request switches back to the master server, so that the master server provides inquiry of the domain name service.
In conjunction with the third aspect, in second of possible realization method, the processor calls the memory to be stored Program code for performing the following operations:
It is synchronized using the domain name registration information of the master server as Backup Data and copies to the backup & disaster recovery device.
In conjunction with second of possible realization method of the third aspect, in the third possible realization method, the processing Device calls program code that the memory stored for performing the following operations:
According to the domain name registration information of the master server, index data is generated;
The index data is synchronized as the Backup Data and copies to the backup & disaster recovery device.
In conjunction with the third any one possible realization method of the third aspect to the third aspect, in the 4th kind of possible reality In existing mode, the processor calls program code that the memory stored for performing the following operations:
According to the domain-name information entrained by domain name information inquiring request, the top level domain is determined;
Dns resolution is carried out to the top level domain, and corresponding with the top level domain according to the acquisition of dns resolution result Backup & disaster recovery device address, described address include at least one of the addresses IPv4 and the addresses IPv6;
Record at least one of the addresses IPv4 and the addresses IPv6.
An embodiment of the present invention provides a kind of calamities of inquiry of the domain name service for switching method and apparatus, including:Periodically Monitor the service availability of master server;When the service availability for monitoring the master server is less than preset value, to receiving To dns query message request in top level domain parsed, obtain corresponding with top level domain backup & disaster recovery device Address;According to backup & disaster recovery device address, it is standby that the destination server of domain name information inquiring request is switched into the calamity Server, so that the backup & disaster recovery device provides inquiry of the domain name service.It is available by the service for periodically monitoring master server Property, realize the service availability for grasping master server in real time;In addition, by when the service availability for monitoring the master server When less than preset value, the top level domain in asking the dns query message received parses, and obtains and the top level domain Name corresponding backup & disaster recovery device address, and according to backup & disaster recovery device address, by the mesh of domain name information inquiring request Mark server switches to the backup & disaster recovery device, so that the backup & disaster recovery device provides inquiry of the domain name service, so as to more suitable Inquiry of the domain name service freely is provided for domain name registration service mechanism and Internet user, is thereby reduced since WAN network is gathered around The randomness and duration of plug are indefinite and lead to the influence suffered by WHOIS service availabilities.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of calamity of inquiry of the domain name service provided in an embodiment of the present invention for switching method flow chart;
Fig. 2 is a kind of calamity of inquiry of the domain name service provided in an embodiment of the present invention for switching method flow chart;
Fig. 3 is a kind of calamity of inquiry of the domain name service provided in an embodiment of the present invention for switching device structural schematic diagram;
Fig. 4 is a kind of electronic equipment schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention Figure, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist The every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a kind of calamities of inquiry of the domain name service for switching method, this method can be applied to due to The scene that the randomness and duration of the network blockage of wide area network are indefinite and WHOIS service availabilities is caused drastically to decline, except this it Outside, this method is also applied to the bursts such as the scene of other influences WHOIS service availabilities, such as WHOIS server catastrophic failures Situation, the embodiment of the present invention are not limited specific application scenarios.
In addition, it is necessary to explanation, described " master server " and " backup & disaster recovery device " is equal in embodiments of the present invention Can be individual server, or the server cluster being made of multiple servers, and in the server cluster, multiple clothes Information sharing between business device;Wherein, " master server " and " backup & disaster recovery device ", in difference nominally merely to distinguishing two Server, and it is not limited to difference of two servers in function or priority, in practical applications, according to application environment With the difference of needs, " master server " and " backup & disaster recovery device " can be set to " master server " or " backup & disaster recovery Device ", the present invention are simultaneously not limited.
Embodiment one is a kind of calamity of inquiry of the domain name service provided in an embodiment of the present invention for switching method, referring to Fig.1 institute Show, this method includes:
101, the service availability of master server is periodically monitored.
102, when the service availability for monitoring master server is less than preset value, the dns query message received is asked Top level domain in asking is parsed, and backup & disaster recovery device address corresponding with top level domain is obtained.
Specifically, the process can be:
According to the entrained domain-name information of dns query message request, top level domain is determined;
Dns resolution is carried out to top level domain, and backup & disaster recovery corresponding with top level domain is obtained according to dns resolution result Device address, address include at least one of the addresses IPv4 and the addresses IPv6;
Record at least one of the addresses IPv4 and the addresses IPv6.
103, according to backup & disaster recovery device address, the destination server that dns query message is asked is switched into backup & disaster recovery Device, so that backup & disaster recovery device provides inquiry of the domain name service.
Optionally, method further includes:
When the service availability for monitoring master server is restored to preset value, by next domain name information inquiring request Destination server switches back to master server, so that master server provides inquiry of the domain name service.
Optionally, before step 101, method further includes:
The domain name registration information of master server is synchronized as Backup Data and copies to backup & disaster recovery device.
Specifically, the process may include:
According to the domain name registration information of master server, index data is generated;
Index data is synchronized as Backup Data and copies to backup & disaster recovery device.
An embodiment of the present invention provides a kind of calamities of inquiry of the domain name service for switching method, by periodically monitoring main clothes The service availability of business device realizes the service availability for grasping master server in real time;In addition, monitoring master server by working as Service availability be less than preset value when, to receive dns query message request in top level domain parse, obtain with Top level domain corresponding backup & disaster recovery device address, and according to backup & disaster recovery device address, the target that dns query message is asked Server switches to backup & disaster recovery device, so that backup & disaster recovery device provides inquiry of the domain name service, so as to be more swimmingly domain name Registration service mechanism and Internet user provide inquiry of the domain name service, thereby reduce the randomness due to WAN network congestion And duration is indefinite and leads to the influence suffered by WHOIS service availabilities.
Embodiment two is a kind of calamity of inquiry of the domain name service provided in an embodiment of the present invention for switching method, reference Fig. 2 institutes Show, this method includes:
201, according to the domain name registration information of master server, index data is generated.
Wherein, master server can solve the same top level domain for storing the corresponding domain name registration information of top level domain Illustrative, top level domain .top is analysed at least one master server, then the master server for corresponding to the .top top level domain can be with For IPv4_master and/or IPv6_master.
Domain name registration information include at least domain name, registrar, registration body, registrant, registrant's mailbox, the registration date, One or more of update date, expiration date, domain name state, name server.
Specifically, the process may include:
Obtain the domain name registration information database stored in master server;
Using domain name registration information database as data source, by index maker, solr index files library is generated.
Further, it is also possible to realize the above process by other means, the present invention does not limit specific generating process specifically It is fixed.
202, index data is synchronized as Backup Data and copies to backup & disaster recovery device.
Specifically, the process may include:
Establish the communication connection between master server and backup & disaster recovery device;
Index data in master server is corresponded into real-time synchronization and copies to backup & disaster recovery device;
Determine the consistency of the index data and the index data in backup & disaster recovery device in master server.
Wherein, it the index data in master server is corresponded into real-time synchronization copies to backup & disaster recovery device and include:
By master server, the newer index data of institute copies in backup & disaster recovery device after preset time node.
In practical applications, preset time node can be set as 60s or other times.
Illustratively, if a top level domain is .top top level domain, presetting master server corresponding with the .top top level domain is IPv4_master, IPv6_master, corresponding backup & disaster recovery device is IPv4_slave, IPv6_slave, by IPv4_ Corresponding synchronize copies to IPv4_slave, IPv6_ to the index data of domain name registration information respectively in master, IPv6_master slave。
In embodiments of the present invention, calamity is copied to due to synchronizing by regarding the index data of master server as Backup Data Standby server, so that the consistency of the index data of backup & disaster recovery device and master server, so that it is guaranteed that backup & disaster recovery device exists Accuracy when inquiry of the domain name service is provided.Moreover, comparing in the prior art not by index data directly by master server Domain name registration information database copy to for backup & disaster recovery device, the present invention can be improved by index data duplication synchronize it is multiple Data copying efficiency during system, in addition, when the service availability of master server is less than preset value, due to backup & disaster recovery device Inquiry of the domain name service is provided by index data, and inquiry velocity can be improved using index, therefore backup & disaster recovery can be improved Device provides response speed when inquiry of the domain name service, to realize the high availability of inquiry of the domain name service.
It is worth noting that, step 201 to step 202 is realized using the domain name registration information of master server as backup number According to the process for copying to backup & disaster recovery device is synchronized, other than the mode of step, the process can also be realized by other means, The embodiment of the present invention is not limited specific mode.
It should be noted that it is not necessary that step 201 is performed both by before executing step 203 every time to step 202, if the standby clothes of calamity It is engaged in the index data of device stored domain name registration information, then can not execute step 201 to step 202, directly execute step 203。
203, the service availability for periodically monitoring master server, judges the service feasibility of the master server monitored Otherwise whether less than preset value, 209 are thened follow the steps if so, thening follow the steps 204.
Wherein, preset value can be preset according to specific needs, and the present invention does not make specifically specific preset value It limits.
Service availability, the i.e. percentage of service uptime, be SLA (Service Level Agreement, Service Level Agreement) in core Measure Indexes.
Specifically, being monitored to the service availability of master server according to preset monitoring frequency, wherein monitoring frequency Rate could be provided as 60 beats/min, can also be other, the monitoring frequency, the present invention couple are configured with specific reference to actual needs Specific monitoring frequency is not especially limited.
In addition, periodically monitoring the service availability of master server, which can also include:
The monitoring record being monitored to the service availability of master server is stored, and the storage side of monitoring record is set Formula, wherein monitoring record includes at least one in the corresponding IP address of master server, port and master server title.
In the embodiment of the present invention, by periodically monitoring the service availability of master server, master server is grasped in real time Service availability, so as to efficiently provide inquiry of the domain name service.
Optionally, method further includes:
When the service availability for monitoring master server is less than preset value, exported according to preset warning strategies corresponding Warning information, wherein the warning strategies can be set according to the numerical value of service availability.
Due to by when monitor master server service availability be less than preset value when, it is defeated according to preset warning strategies Go out corresponding warning information, consequently facilitating maintenance personnel can make corresponding dimension according to the urgency level of different warning information Shield.
204, according to the entrained domain-name information of dns query message request, top level domain is determined.
Wherein, top level domain can classify by purposes, be ended up respectively with different suffix:.com (public for business Department);.top (all companies are used for);Net (is used for network service);.org (for tissue association etc.);.gov (it is used for portion of government Door);.edu (it is used for educational institution);.mil (it is used for military field);.int (it is used for international organization).It can also be carried out by geography Classification, if .CN represents China .UK represents Britain.
Specifically, the process may include:
The dns query message request that user terminal is sent is obtained, domain-name information is carried in dns query message request;
Judge to whether there is preset field in whole fields that domain-name information is included, and if it exists, then according to preset field With the correspondence of top level domain, top level domain is determined.
Illustratively, preset field is " .top ", if it includes " .top " to extract field from domain-name information, it is determined that should It is .top top level domain that dns query message, which asks corresponding top level domain,.
In practical applications, user terminal may include desktop computer, it is personal computer, above-knee property computer, mobile phone, a Personal digital assistant etc..
In addition to this, IP address can also be carried in dns query message request, the type of the IP address can be IPv4, Can also be IPv6, the present invention is not especially limited dns query message request.
205, dns resolution is carried out to top level domain, and standby according to dns resolution result acquisition calamity corresponding with top level domain Server address, address include at least one of the addresses IPv4 and the addresses IPv6.
Wherein, backup & disaster recovery device address is the network address for identifying WHOIS backup & disaster recovery devices;IPv4 address sizes are 32, IPv6 address sizes are 128.
Specifically, the process may include:
Dns server, the dns server is called to be used to parse top level domain by corresponding api interface, wherein Api interface is application programming interface;
According to the correspondence between the top level domain and IP address pre-established in dns server, top level domain is parsed, Wherein, top level domain corresponds to the addresses IPv4 and/or IPv6;
IP address corresponding with top level domain is obtained, which is backup & disaster recovery device address.
Wherein, which can be single dns server, can also be the DNS being made of multiple dns servers Server cluster, if dns server cluster, then optimal by the network parameter and above-mentioned DNS of available dns server execution Resolving.
It is worth noting that, step 204 to step 205 is realized when the service availability for monitoring master server is less than in advance If when value, the top level domain in asking the dns query message received parses, and obtains corresponding with top level domain The process of backup & disaster recovery device address can also realize that the process, the present invention are real by other means other than the mode of step Example is applied to be not limited specific mode.
In embodiments of the present invention, by when monitor master server service availability be less than preset value when, to receive To dns query message request in top level domain parsed, with obtaining corresponding with top level domain backup & disaster recovery device Location, the top level domain realized in asking dns query message parses, to get suitable backup & disaster recovery device address Purpose.
206, at least one of the addresses IPv4 and the addresses IPv6 are recorded.
Specifically, the process may include:
Top level domain and the corresponding addresses IPv4 are recorded, A records are generated;And/or
Top level domain and the corresponding addresses IPv6 are recorded, AAAA records are generated;
The cache-time of A records and AAAA records that backup & disaster recovery device address is arranged is A seconds.
In practical applications, A seconds can be 60 seconds, in this way when switch backup & disaster recovery device when, service availability loss It can control in minute grade, to reduce the influence caused by WHOIS availabilities when network blocks for a long time.
In the embodiment of the present invention, by recording at least one of the addresses IPv4 and the addresses IPv6, so that in master server Service availability be restored to before preset value, when receiving next domain name information inquiring request from record obtain and top The destination server of next domain name information inquiring request is directly switched to by the corresponding address of grade domain name without parsing again Corresponding backup & disaster recovery device, to improve the speed of switching backup & disaster recovery device.
It is worth noting that, without being performed both by step 206 before executing step 207 every time, step can also executed After 205, step 207 is directly executed, the present invention is not especially limited to whether executing step 206 before executing step 207.
207, according to backup & disaster recovery device address, the destination server that dns query message is asked is switched into backup & disaster recovery Device.
Specifically, the process may include:
According to the type of backup & disaster recovery device address, available backup & disaster recovery device is selected from preset backup & disaster recovery device cluster As destination server;
Dns query message request is forwarded to the backup & disaster recovery device as destination server.
Wherein, according to backup & disaster recovery device address, select available backup & disaster recovery device as mesh from backup & disaster recovery device cluster Server is marked, which may include:
When backup & disaster recovery device address style is IPv4, judge in backup & disaster recovery device cluster with the presence or absence of the calamity of corresponding IPv4 Standby server, and if it exists, then, as destination server, if being not present, taken corresponding to the backup & disaster recovery device of IPv4 from calamity is standby It is the backup & disaster recovery device of IPv6 as destination server that address style is selected in business device cluster;
When backup & disaster recovery device address style is IPv6, judge in backup & disaster recovery device cluster with the presence or absence of the calamity of corresponding IPv6 Standby server, and if it exists, then, as destination server, if being not present, taken corresponding to the backup & disaster recovery device of IPv6 from calamity is standby It is the backup & disaster recovery device of IPv4 as destination server that address is selected in business device cluster.
208, backup & disaster recovery device provides inquiry of the domain name service.
Specifically, the process may include:
Domain-name information in the dns query message request sent according to user terminal, backup & disaster recovery node is from index data Inquiry domain name registration information corresponding with domain-name information, and export query result.
In the embodiment of the present invention, due to by the way that according to backup & disaster recovery device address, the target of dns query message request is taken Business device switches to backup & disaster recovery device, so that backup & disaster recovery device provides inquiry of the domain name service, so as to be more swimmingly that domain name is noted Volume service organization and Internet user provide inquiry of the domain name service, thereby reduce due to WAN network congestion randomness and Duration is indefinite and leads to the influence suffered by WHOIS service availabilities, to realize the high availability of WHOIS services.
209, the destination server of next domain name information inquiring request is switched back into master server, so that master server carries For inquiry of the domain name service.
Specifically, the process may include:
According to the entrained domain-name information of dns query message request, top level domain is determined;
Dns resolution is carried out to top level domain, and master server corresponding with top level domain is obtained according to dns resolution result Address, address include at least one of the addresses IPv4 and the addresses IPv6;
Record at least one of the addresses IPv4 and the addresses IPv6.
In the embodiment of the present invention, since the randomness of network congestion may make under backup & disaster recovery device WHOIS service availabilities Drop, and by when the service availability for monitoring master server is restored to preset value, by next domain name information inquiring request Destination server switch back to master server so that master server provide inquiry of the domain name service so that inquiry of the domain name ask Task can be handled efficiently in time, and the high availability of WHOIS services is furthermore achieved.
An embodiment of the present invention provides a kind of calamities of inquiry of the domain name service for switching method, by periodically monitoring main clothes The service availability of business device realizes the service availability for grasping master server in real time;In addition, monitoring master server by working as Service availability be less than preset value when, to receive dns query message request in top level domain parse, obtain with Top level domain corresponding backup & disaster recovery device address, and according to backup & disaster recovery device address, the target that dns query message is asked Server switches to backup & disaster recovery device, so that backup & disaster recovery device provides inquiry of the domain name service, so as to be more swimmingly domain name Registration service mechanism and Internet user provide inquiry of the domain name service, thereby reduce the randomness due to WAN network congestion And duration is indefinite and leads to the influence suffered by WHOIS service availabilities.
Embodiment three is a kind of calamity of inquiry of the domain name service provided in an embodiment of the present invention for switching device, reference Fig. 3 institutes Show, device 3 includes:
Receiving unit 31, for receiving dns query message request;
Monitoring unit 32, the service availability for periodically monitoring master server;
Parse acquiring unit 33, for when monitor master server service availability be less than preset value when, to receiving Dns query message request in top level domain parsed, obtain corresponding with top level domain backup & disaster recovery device address;
Switch unit 34, for according to backup & disaster recovery device address, the destination server of dns query message request to be switched To backup & disaster recovery device, so that backup & disaster recovery device provides inquiry of the domain name service.
Optionally, device 3 further includes switchback unit 35, and switchback unit 35 is specifically used for:
When the service availability for monitoring master server is restored to preset value, by next domain name information inquiring request Destination server switches back to master server, so that master server provides inquiry of the domain name service.
Optionally, device 3 further includes copied cells 36, and copied cells 36 are specifically used for:
The domain name registration information of master server is synchronized as Backup Data and copies to backup & disaster recovery device.
Optionally, copied cells 36 include:
Subelement 361 is generated, for the domain name registration information according to master server, generates index data;
Subelement 362 is replicated, backup & disaster recovery device is copied to for synchronizing index data as Backup Data.
Optionally, parsing acquiring unit 33 includes:
Determination subelement 331, for according to the entrained domain-name information of dns query message request, determining top level domain;
Parsing obtains subelement 332, for carrying out dns resolution to top level domain, and obtains and pushes up according to dns resolution result Grade domain name corresponding backup & disaster recovery device address, address includes at least one of the addresses IPv4 and the addresses IPv6;
Subelement 333 is recorded, for recording at least one of the addresses IPv4 and the addresses IPv6.
An embodiment of the present invention provides a kind of calamities of inquiry of the domain name service for switching device, and the device is by periodically supervising The service availability of master server is controlled, realizes the service availability for grasping master server in real time;In addition, monitoring main clothes by working as When the service availability of business device is less than preset value, the top level domain in asking the dns query message received parses, Backup & disaster recovery device address corresponding with top level domain is obtained, and according to backup & disaster recovery device address, dns query message is asked Destination server switch to backup & disaster recovery device so that backup & disaster recovery device provide inquiry of the domain name service, so as to more swimmingly Inquiry of the domain name service is provided for domain name registration service mechanism and Internet user, is thereby reduced due to WAN network congestion Randomness and duration are indefinite and lead to the influence suffered by WHOIS service availabilities.
Example IV is a kind of electronic equipment provided in an embodiment of the present invention, and with reference to shown in Fig. 4, electronic equipment 4 includes depositing Reservoir 41 and the processor 42 being connect with memory 41, wherein memory 41 is for storing batch processing code, processor 42 Call the program code that memory 41 is stored for performing the following operations:
Periodically monitor the service availability of master server;
When the service availability for monitoring master server is less than preset value, in asking the dns query message received Top level domain parsed, obtain corresponding with top level domain backup & disaster recovery device address;
According to backup & disaster recovery device address, the destination server that dns query message is asked is switched into backup & disaster recovery device, with Backup & disaster recovery device is set to provide inquiry of the domain name service.
Optionally, the program code that the calling of processor 42 memory 41 is stored is for performing the following operations:
When the service availability for monitoring master server is restored to preset value, by next domain name information inquiring request Destination server switches back to master server, so that master server provides inquiry of the domain name service.
Optionally, the program code that the calling of processor 42 memory 41 is stored is for performing the following operations:
The domain name registration information of master server is synchronized as Backup Data and copies to backup & disaster recovery device.
Optionally, the program code that the calling of processor 42 memory 41 is stored is for performing the following operations:
According to the domain name registration information of master server, index data is generated;
Index data is synchronized as Backup Data and copies to backup & disaster recovery device.
Optionally, the program code that the calling of processor 42 memory 41 is stored is for performing the following operations:
According to the entrained domain-name information of dns query message request, top level domain is determined;
Dns resolution is carried out to top level domain, and backup & disaster recovery corresponding with top level domain is obtained according to dns resolution result Device address, address include at least one of the addresses IPv4 and the addresses IPv6;
Record at least one of the addresses IPv4 and the addresses IPv6.
An embodiment of the present invention provides a kind of electronic equipment, the electronic equipment is by periodically monitoring the clothes of master server Business availability realizes the service availability for grasping master server in real time;In addition, by can be used when the service for monitoring master server Property be less than preset value when, to receive dns query message request in top level domain parse, obtain and top level domain Corresponding backup & disaster recovery device address, and according to backup & disaster recovery device address, the destination server that dns query message is asked is cut Backup & disaster recovery device is shifted to, so that backup & disaster recovery device provides inquiry of the domain name service, so as to be more swimmingly domain name registration service Mechanism and Internet user provide inquiry of the domain name service, thereby reduce due to WAN network congestion randomness and duration not Determine and leads to the influence suffered by WHOIS service availabilities.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
It should be noted that:The calamity for the inquiry of the domain name service that above-described embodiment provides is executing inquiry of the domain name for switching device It, only the example of the division of the above functional modules, can basis in practical application when the calamity of service is for switching method It needs and completes above-mentioned function distribution by different function modules, i.e., the internal structure of device is divided into different function moulds Block, to complete all or part of the functions described above.It is cut in addition, the calamity for the inquiry of the domain name service that above-described embodiment provides is standby Changing device and the calamity of inquiry of the domain name service belong to same design for switching method embodiment, and specific implementation process refers to method reality Example is applied, which is not described herein again.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of calamity of inquiry of the domain name service is for switching method, which is characterized in that the method includes:
Periodically monitor the service availability of master server;
When the service availability for monitoring the master server is less than preset value, in asking the dns query message received Top level domain parsed, obtain corresponding with top level domain backup & disaster recovery device address;
According to backup & disaster recovery device address, the destination server of domain name information inquiring request is switched into the standby clothes of the calamity Business device, so that the backup & disaster recovery device provides inquiry of the domain name service.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When the service availability for monitoring the master server is restored to the preset value, next dns query message is asked The destination server asked switches back to the master server, so that the master server provides inquiry of the domain name service.
3. according to the method described in claim 1, it is characterized in that, the service availability for periodically monitoring master server Before step, the method further includes:
It is synchronized using the domain name registration information of the master server as Backup Data and copies to the backup & disaster recovery device.
4. according to the method described in claim 3, it is characterized in that, it is described using the domain name registration information of the master server as Backup Data, which synchronizes, to be copied to the backup & disaster recovery device and includes:
According to the domain name registration information of the master server, index data is generated;
The index data is synchronized as the Backup Data and copies to the backup & disaster recovery device.
5. method according to any one of claims 1 to 4, which is characterized in that described to monitor the master server Service availability be less than preset value when, to receive dns query message request in top level domain parse, obtain Backup & disaster recovery device address corresponding with the top level domain includes:
According to the domain-name information entrained by domain name information inquiring request, the top level domain is determined;
Dns resolution is carried out to the top level domain, and standby according to dns resolution result acquisition calamity corresponding with the top level domain Server address, described address include at least one of the addresses IPv4 and the addresses IPv6;
Record at least one of the addresses IPv4 and the addresses IPv6.
6. a kind of calamity of inquiry of the domain name service is for switching device, which is characterized in that described device includes:
Receiving unit, for receiving dns query message request;
Monitoring unit, the service availability for periodically monitoring master server;
Parse acquiring unit, for when monitor the master server service availability be less than preset value when, to what is received Top level domain in dns query message request is parsed, with obtaining backup & disaster recovery device corresponding with the top level domain Location;
Switch unit, for according to backup & disaster recovery device address, the destination server of domain name information inquiring request to be cut The backup & disaster recovery device is shifted to, so that the backup & disaster recovery device provides inquiry of the domain name service.
7. device according to claim 6, which is characterized in that described device further includes switchback unit, the switchback unit It is specifically used for:
When the service availability for monitoring the master server is restored to the preset value, next dns query message is asked The destination server asked switches back to the master server, so that the master server provides inquiry of the domain name service.
8. device according to claim 6, which is characterized in that described device further includes copied cells, the copied cells It is specifically used for:
It is synchronized using the domain name registration information of the master server as Backup Data and copies to the backup & disaster recovery device.
9. device according to claim 8, which is characterized in that the copied cells include:
Subelement is generated, for the domain name registration information according to the master server, generates index data;
Subelement is replicated, the backup & disaster recovery device is copied to for synchronizing the index data as the Backup Data.
10. according to the device described in claim 6 to 9 any one, which is characterized in that the parsing acquiring unit includes:
Determination subelement determines the top level domain for the domain-name information entrained by domain name information inquiring request;
Parsing obtain subelement, for the top level domain carry out dns resolution, and according to dns resolution result obtain with it is described Top level domain corresponding backup & disaster recovery device address, described address include at least one of the addresses IPv4 and the addresses IPv6;
Subelement is recorded, for recording at least one of the addresses IPv4 and the addresses IPv6.
CN201710261128.7A 2017-04-20 2017-04-20 Disaster recovery switching method and device for domain name query service Active CN108737586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710261128.7A CN108737586B (en) 2017-04-20 2017-04-20 Disaster recovery switching method and device for domain name query service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710261128.7A CN108737586B (en) 2017-04-20 2017-04-20 Disaster recovery switching method and device for domain name query service

Publications (2)

Publication Number Publication Date
CN108737586A true CN108737586A (en) 2018-11-02
CN108737586B CN108737586B (en) 2021-09-28

Family

ID=63933503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710261128.7A Active CN108737586B (en) 2017-04-20 2017-04-20 Disaster recovery switching method and device for domain name query service

Country Status (1)

Country Link
CN (1) CN108737586B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290173A (en) * 2019-05-23 2019-09-27 网宿科技股份有限公司 A kind of active and standby DNS synchronous method and device
CN110445641A (en) * 2019-07-11 2019-11-12 烽火通信科技股份有限公司 The main/standby switching method and system of dns-proxy server
CN111711542A (en) * 2020-06-22 2020-09-25 北京思特奇信息技术股份有限公司 Disaster recovery switching method and device based on DNS (Domain name System), electronic equipment and storage medium
CN112261174A (en) * 2020-10-21 2021-01-22 北京云联壹云技术有限公司 Multi-cloud-fusion DNS (Domain name Server) analysis method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304346A (en) * 2008-06-27 2008-11-12 北京星网锐捷网络技术有限公司 Method and apparatus for monitoring link
CN103560922A (en) * 2013-11-18 2014-02-05 北京特立信电子技术股份有限公司 Disaster recovery method and system
US8656209B2 (en) * 2011-05-27 2014-02-18 Verisign, Inc. Recovery of a failed registry
CN103634269A (en) * 2012-08-21 2014-03-12 中国银联股份有限公司 A single sign-on system and a method
CN103714097A (en) * 2012-10-09 2014-04-09 阿里巴巴集团控股有限公司 Method and device for accessing database
CN106385469A (en) * 2016-08-25 2017-02-08 厦门易名科技股份有限公司 Concurrent processing based WHOIS query method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304346A (en) * 2008-06-27 2008-11-12 北京星网锐捷网络技术有限公司 Method and apparatus for monitoring link
US8656209B2 (en) * 2011-05-27 2014-02-18 Verisign, Inc. Recovery of a failed registry
CN103634269A (en) * 2012-08-21 2014-03-12 中国银联股份有限公司 A single sign-on system and a method
CN103714097A (en) * 2012-10-09 2014-04-09 阿里巴巴集团控股有限公司 Method and device for accessing database
CN103560922A (en) * 2013-11-18 2014-02-05 北京特立信电子技术股份有限公司 Disaster recovery method and system
CN106385469A (en) * 2016-08-25 2017-02-08 厦门易名科技股份有限公司 Concurrent processing based WHOIS query method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290173A (en) * 2019-05-23 2019-09-27 网宿科技股份有限公司 A kind of active and standby DNS synchronous method and device
CN110445641A (en) * 2019-07-11 2019-11-12 烽火通信科技股份有限公司 The main/standby switching method and system of dns-proxy server
CN111711542A (en) * 2020-06-22 2020-09-25 北京思特奇信息技术股份有限公司 Disaster recovery switching method and device based on DNS (Domain name System), electronic equipment and storage medium
CN112261174A (en) * 2020-10-21 2021-01-22 北京云联壹云技术有限公司 Multi-cloud-fusion DNS (Domain name Server) analysis method and device

Also Published As

Publication number Publication date
CN108737586B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN106850710B (en) Data cloud storage system, client terminal, storage server and application method
CN108737586A (en) A kind of calamity of inquiry of the domain name service is for switching method and apparatus
US7539150B2 (en) Node discovery and communications in a network
US9621512B2 (en) Dynamic network action based on DHCP notification
JP2010086115A (en) Root cause analysis method targeting information technology (it) device not to acquire event information, device and program
CN107544837B (en) Cloud service equipment performance data acquisition system, method and device
US6425008B1 (en) System and method for remote management of private networks having duplicate network addresses
CN109194525A (en) A kind of network node configuration method and management node
WO2013095770A1 (en) Method and apparatus for messaging in the cloud
CN106612339A (en) Domain name updating method, system and main DNS (Domain Name System) server
CN110730250A (en) Information processing method and device, service system and storage medium
CN113452561A (en) Topology generation method, device and equipment and readable storage medium
CN105282269A (en) Local DNS root server configuration method and service method
CN102594839B (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN110290163B (en) Data processing method and device
CN113938303A (en) Network detection and network management platform based on multi-mode network
CN108076165B (en) Method, equipment and system for domain name resolution information management
US10715608B2 (en) Automatic server cluster discovery
CN104348669B (en) A kind of Domain Hijacking detection method, system and device
van der Toorn et al. Saving Brian's privacy: the perils of privacy exposure through reverse DNS
CN113010385A (en) Task state updating method, device, equipment and medium
CN112187900A (en) DNS data updating method and system based on block chain shared cache
KR102097102B1 (en) Next generation address inforamtion synchronization system and method
TWI748653B (en) System and method for determining operation status of device by updating execution status
CN111490886B (en) Network data processing method and system

Legal Events

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