CN113542449A - Domain name resolution method, system, computer equipment and readable storage medium - Google Patents

Domain name resolution method, system, computer equipment and readable storage medium Download PDF

Info

Publication number
CN113542449A
CN113542449A CN202110788388.6A CN202110788388A CN113542449A CN 113542449 A CN113542449 A CN 113542449A CN 202110788388 A CN202110788388 A CN 202110788388A CN 113542449 A CN113542449 A CN 113542449A
Authority
CN
China
Prior art keywords
domain name
load balancing
name resolution
selecting
service node
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.)
Pending
Application number
CN202110788388.6A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110788388.6A priority Critical patent/CN113542449A/en
Publication of CN113542449A publication Critical patent/CN113542449A/en
Pending legal-status Critical Current

Links

Images

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/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Abstract

The invention provides a domain name resolution method, a domain name resolution system, computer equipment and a readable storage medium, wherein the method comprises the following steps: receiving a domain name resolution request; acquiring a first preferred condition based on the domain name resolution request; and selecting a load balancing device according to the first preferred condition to analyze the domain name. The parsing system includes: a receiving unit, configured to receive a domain name resolution request; an obtaining unit, configured to obtain a first preferred condition based on the domain name resolution request; and the selecting unit is used for selecting one load balancing device according to the first preferred condition so as to analyze the domain name. According to the domain name resolution method and system, a single load balancing device is not adopted any more, the domain name resolution is carried out by presetting a first preferred condition and selecting a proper load balancing device, a high-availability framework is realized, and the problem that the domain name resolution is unavailable so as to cause transaction failure is avoided.

Description

Domain name resolution method, system, computer equipment and readable storage medium
Technical Field
The invention relates to the technical field of information, in particular to a domain name resolution method, a domain name resolution system, computer equipment and a readable storage medium.
Background
With the explosion of information systems, more and more application systems adopt domain name resolution technology for mutual access. The domain name resolution is not left in a database domain name switching link, an intelligent domain name transaction shunting link, a multi-application high-availability quick switching link and a key application gray level production link. The domain name resolution system becomes an indispensable and important ring in the transaction circulation process of application access, and once the condition that the domain name resolution is unavailable occurs or the transaction is directly failed.
Therefore, a high-availability architecture is designed, and the method and the system which can be applied to the intranet domain name resolution become a foundation for ensuring stable operation of transactions.
Disclosure of Invention
In view of the above-mentioned problems of the prior art with domain name resolution methods that do not have a high available architecture, the present invention has been made to provide a domain name resolution method, system, computer device and readable storage medium that overcome or at least partially address the above-mentioned problems.
According to an aspect of the present invention, there is provided a domain name resolution method, including:
receiving a domain name resolution request;
acquiring a first preferred condition based on the domain name resolution request;
and selecting a load balancing device according to the first preferred condition to analyze the domain name.
Preferably, selecting a load balancing device to resolve the domain name according to the first preferred condition includes:
sequentially sending detection signals to a plurality of load balancing devices according to the first optimal condition;
and when one of the load balancing devices receives the detection signal and passes the detection, selecting the load balancing device to carry out domain name resolution.
Preferably, selecting a load balancing device to resolve the domain name according to the first preferred condition includes:
sending detection signals to a plurality of load balancing devices simultaneously according to the first optimal condition;
when any load balancing device receives the detection signal and passes the detection, selecting the load balancing device to carry out domain name resolution; or the like, or, alternatively,
and when at least two load balancing devices receive the detection signal and pass the detection, selecting one of the load balancing devices to carry out domain name resolution.
Preferably, after selecting a load balancing device according to the first preferred condition to resolve the domain name, the method further includes:
acquiring the node state of the subordinate service node of the selected load balancing equipment; the subordinate service node is a domain name service node attached to the load balancing equipment;
selecting available subordinate service nodes according to the node states;
acquiring a subordinate service node from the available subordinate service nodes based on a second preferred condition;
and sending the domain name resolution request to the subordinate service node for domain name resolution.
Preferably, the method further comprises:
obtaining a response result fed back by the selected subordinate service node; the response result is a response sent by the selected subordinate service node after querying a database of the subordinate service node based on the domain name resolution request;
and initiating a transaction operation based on the response result.
Preferably, the method further comprises:
acquiring an upgrade service request;
selecting a subordinate service node to be upgraded according to the upgrade service request;
isolating the subordinate service node to be upgraded from the corresponding load balancing equipment;
respectively carrying out service upgrade and upgrade verification on the isolated subordinate service nodes;
and when the upgrade verification is passed, restoring the subordinate service node to the load balancing equipment.
Preferably, the method further comprises:
acquiring abnormal state information of subordinate service nodes;
and isolating the subordinate service nodes from the corresponding load balancing equipment based on the abnormal state information.
In accordance with another aspect of the present invention, there is provided a domain name resolution system, including:
a receiving unit, configured to receive a domain name resolution request;
an obtaining unit, configured to obtain a first preferred condition based on the domain name resolution request;
and the selecting unit is used for selecting one load balancing device according to the first preferred condition so as to analyze the domain name.
According to another aspect of the invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of the above when executing the computer program.
According to another aspect of the invention, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the method of any one of the above.
According to the domain name resolution method, a single load balancing device is not adopted, the domain name resolution is carried out by presetting a first preferred condition and selecting a proper load balancing device, a high-availability framework is realized, and the failure of transaction caused by the condition that the domain name resolution is unavailable is avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a domain name resolution method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a domain name resolution system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a computer device.
[ description of reference ]
100. A park;
110. a load balancing device;
120. a management plane;
130. a domain name service node;
301. a receiving unit;
302. an acquisition unit;
303. a selection unit;
402. a computer device;
404. a processor;
406. a memory;
408. a drive mechanism;
410. an input/output module;
412. an input device;
414. an output device;
416. a presentation device;
418. a graphical user interface;
420. a network interface;
422. a communication link;
424. a communication bus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Summary of the application
The following specific embodiments of the present invention are built under a multi-campus and multi-active physical deployment scenario, and refer to fig. 1 specifically, which shows a schematic structural diagram of an implementation environment according to various embodiments of the present invention. The implementation environment includes: each of the at least two parks 100 includes a set of load balancing devices 110, each set of load balancing devices includes at least one management plane 120, and each management plane 120 further includes a plurality of domain name service nodes 130. The parks are different areas which are physically or are divided by the internet, the parks are not influenced with each other, and each park can independently provide domain name resolution service. The domain name service nodes of the multiple parks are provided with high availability and elastic capacity expansion and reduction capacity by the load balancing equipment of the park, and all the domain name service nodes under each load balancing equipment are respectively managed through the management plane, so that high availability architecture design is realized, and normal service is provided to the outside to the greatest extent by the domain name service nodes under each load balancing equipment.
Examples
Hereinafter, the domain name resolution method provided by the embodiment of the present invention will be described and explained in detail through several specific embodiments.
As shown in fig. 2, a domain name resolution method is provided for an embodiment of the present invention, where the method includes:
step 201, receiving a domain name resolution request. Specifically, when domain name resolution is required, the application system first triggers a process of domain name resolution by receiving a domain name resolution request.
Step 202, obtaining a first preferred condition based on the domain name resolution request. The first preferred condition is a judgment condition preset in the server to select the load balancing device, and is generally configured by the server itself. In a specific embodiment, since a plurality of load balancing devices are configured, after receiving a domain name resolution request, in order to obtain a suitable load balancing device for performing domain name resolution, it is necessary to screen the plurality of load balancing devices according to a preset first preferred condition, remove a faulty or unavailable load balancing device, and select one of the load balancing devices that most meets one of the conditions as a device for finally resolving a domain name. In the embodiment of the present invention, the load balancing device is a domain name Server DNS Server or a device with a domain name resolution function. The DNS Server is a Server that converts a domain name (domain name) and an IP address (IP address) corresponding to the domain name. The DNS stores a table of domain names and their corresponding IP addresses (IP addresses) to resolve the domain names of messages.
Step 203, selecting a load balancing device according to the first preferred condition to resolve the domain name. Specifically, when receiving a domain name resolution request once, the selected load balancing device may resolve a domain name for which the domain name resolution request is directed to complete a task of domain name resolution. Since the method of the present invention includes more than one load balancing device, a currently most suitable load balancing device may be selected to resolve the domain name according to the first preferred condition.
According to the domain name resolution method in the embodiment of the invention, a single load balancing device is not adopted, and the domain name resolution is carried out by presetting a first preferred condition and selecting a proper load balancing device, so that a high-availability framework is realized, and the failure of transaction caused by the unavailable condition of domain name resolution is avoided.
In a specific embodiment, the parsing functions and the parsed contents of the negative balancing devices are completely consistent, so that any one of the load balancing devices selected according to the first preferred condition can parse the completely consistent contents, and the parsing accuracy and consistency are ensured. Any two load balancing devices are independent from each other, that is, the unselected load balancing devices are in a state of waiting for service, and do not participate in the current resolution process, so that unnecessary interference on the load balancing devices executing the domain name resolution task is avoided.
In a preferred embodiment, the first preference condition may be that one of the normal load balancing apparatuses is randomly selected, or that the first normal load balancing apparatus is selected in sequence. Preferably, a load balancing algorithm may be used to set the first preferred condition and the step of selecting a load balancing device according to the first preferred condition is implemented.
In the method for domain name resolution according to the specific embodiment of the present invention, preferably, the selecting a load balancing device according to the first preferred condition to resolve the domain name includes:
sequentially sending detection signals to a plurality of load balancing devices according to the first optimal condition;
and when one of the load balancing devices receives the detection signal and passes the detection, selecting the load balancing device to carry out domain name resolution.
Because a plurality of different parks are provided, and each park is provided with one load balancing device, in the specific embodiment of the invention, the detection signal is sequentially sent to each load balancing device, so that one load balancing device is selected according to the detection result to perform domain name resolution. Specifically, the detected load balancing device is selected to perform domain name resolution. The detection passing means that the load balancing device is firstly in a normal state, and secondly, the detection result according to the detection signal shows that the load balancing device can realize a normal domain name resolution function. Therefore, in the process of detecting signals by the sequential method, when one load balancing device passes the detection, the load balancing device is selected, the detection signal is not sent by the subsequent load balancing device which is not detected, and the detection process is terminated.
In the method for domain name resolution according to the specific embodiment of the present invention, preferably, the selecting a load balancing device according to the first preferred condition to resolve the domain name includes:
sending detection signals to a plurality of load balancing devices simultaneously according to the first optimal condition;
when any load balancing device receives the detection signal and passes the detection, selecting the load balancing device to carry out domain name resolution;
and when at least two load balancing devices receive the detection signal and pass the detection, selecting one of the load balancing devices to carry out domain name resolution.
Specifically, unlike the foregoing embodiment in which the probe signals are sequentially sent to a plurality of load balancing devices, in this embodiment, the probe signals are sent to a plurality of or all load balancing devices at a time. At the moment, when one load balancing device passes the detection, the load balancing device is selected to carry out domain name resolution; for example, if a certain load balancing device passes detection first, the load balancing device is directly locked to perform domain name resolution; or after all detected domain name resolution devices are determined, for example, if two or more load balancing devices pass the detection, one of the load balancing devices is selected to perform domain name resolution, that is, only one of the multiple candidate load balancing devices needs to be selected to perform domain name resolution.
In the method for domain name resolution according to the specific embodiment of the present invention, preferably, after selecting a load balancing device according to the first preferred condition to resolve a domain name, the method further includes:
acquiring the node state of the subordinate service node of the selected load balancing equipment; the subordinate service node is a domain name service node attached to the load balancing equipment;
selecting available subordinate service nodes according to the node states;
acquiring a subordinate service node from the available subordinate service nodes based on a second preferred condition;
and sending the domain name resolution request to the subordinate service node for domain name resolution.
In a specific embodiment, after a load balancing device is selected, the domain name resolution request is directly received, and the selected load balancing device forwards the domain name resolution request to a certain subordinate service node in a normal state according to a corresponding algorithm and in combination with the state of the subordinate service node.
Preferably, before forwarding the domain name resolution request to a certain subordinate service node in a normal state, the selected load balancing device first determines the state of the subordinate service node through a load balancing health check mechanism, and selects an available subordinate service node. And then acquiring a subordinate service node from the available subordinate service nodes according to a second preferred condition, wherein the second preferred condition can be determined according to a polling random algorithm. And after determining a subordinate service node capable of carrying out normal resolution tasks according to the polling random algorithm, forwarding the domain name resolution request to the subordinate service node, wherein the subordinate service node can directly carry out domain name resolution service. In a specific embodiment, the parsing function and the parsing content of each subordinate service node are completely consistent, so that the same parsing result can be obtained no matter any one subordinate service node receives the forwarded domain name parsing request.
In the method for resolving a domain name according to the embodiment of the present invention, preferably, the method further includes:
obtaining a response result fed back by the selected subordinate service node; the response result is a response sent by the selected subordinate service node after querying a database of the subordinate service node based on the domain name resolution request;
and initiating a transaction operation based on the response result.
In a specific embodiment, the selected subordinate service node directly performs a domain name resolution task according to the forwarded domain name resolution request. The subordinate service node firstly queries a database of the subordinate service node, then obtains a response result and feeds back the response result value to the application system in the original way, and the application system can initiate transaction operation when obtaining the IP address.
Next, a domain name resolution process according to an embodiment of the present invention is described in detail by using a specific embodiment.
The application system configures a plurality of load balancing devices as a domain name server, and after a domain name resolution request is obtained once, the application system automatically selects one of the load balancing devices for resolution. Specifically, the application system first obtains a first preferred condition based on the domain name resolution request, and then selects a load balancing device according to the first preferred condition to resolve the domain name. Wherein the first preferred condition is determined by the application system. According to the first preferred condition, each load balancing device can be selected to be detected in sequence, and the detected load balancing device is selected to perform analysis operation. Or sending detection signals all at once to detect all the load balancing devices and selecting one of the load balancing devices to perform analysis operation, wherein the application condition of the first preferred condition is different according to different operating systems.
If the load balancing device 110 is selected as the resolution device, it will receive the domain name resolution request, and the load balancing device 110 selects a subordinate service node based on the second preferred condition. Wherein the second preferred condition comprises the corresponding algorithm of the negative balancing device and the state condition of the subordinate service node subordinate to the negative balancing device. And after selecting a subordinate service node by adopting a polling random algorithm based on the second preferred condition, forwarding the domain name resolution request to the subordinate service node, wherein the subordinate service node is any service node in a normal state under the negative balance equipment.
Because all the subordinate service nodes have completely consistent analysis functions and analysis contents, after any one of the subordinate service nodes receives the domain name analysis request, the subordinate service node queries a database of the subordinate service node to perform domain name analysis and sends a response result.
The subordinate service node returns the response result to the application system in the original way, and the application system can initiate transaction operation after obtaining the IP address.
In a preferred embodiment of the present invention, after the negative balancing device is selected, the subordinate management plane selects a subordinate service node based on the domain name resolution request. Specifically, a plurality of management planes in the load balancing device independently monitor and manage their corresponding subordinate service nodes, and select a subordinate service node corresponding to a management plane according to the second preferred condition and perform domain name resolution.
Preferably, the management plane ensures that data of the management plane is completely consistent with data of a subordinate service node corresponding to the management plane by a self-detection mechanism, so as to ensure data consistency. Secondly, the data consistency among a plurality of management platforms is uniformly managed by the management platform which is configured independently, configuration comparison and verification are carried out, and the data consistency is verified after the data are changed.
In the method for resolving a domain name according to the embodiment of the present invention, preferably, the method further includes:
acquiring an upgrade service request;
selecting a subordinate service node to be upgraded according to the upgrade service request;
isolating the subordinate service node to be upgraded from the corresponding load balancing equipment;
respectively carrying out service upgrade and upgrade verification on the isolated subordinate service nodes;
and when the upgrade verification is passed, restoring the subordinate service node to the load balancing equipment.
In a specific embodiment, in order to avoid that the upgrading of the subordinate service node affects the domain name resolution operation, in the implementation of the present invention, when the subordinate service node needs to be upgraded, the subordinate service node to be upgraded is isolated from the corresponding load balancing device according to the upgrade service request, that is, the subordinate service node is no longer used as a target object selected by the second preferred condition, that is, no external service is performed. After the upgrade is completed, the upgrade of the subordinate service node is ensured to be successful through technical verification and service verification, and then the subordinate service node is restored to the load balancing equipment, and then the normal external service can be restored. In a specific embodiment, when at least two subordinate service nodes apply for, the subordinate service nodes passing the verification can be restored to the load balancing device only after each subordinate service node is verified one by one.
Preferably, when different subordinate service nodes are managed through the management plane, an external service group can be set in the management plane, the external service group is load balanced, the subordinate service nodes can be directly stripped from the external service group, and external services are not needed. Specifically, the subordinate service nodes capable of performing external service are placed in the external service group, and the subordinate service nodes incapable of providing the external service are isolated from the external service group, so that the domain name resolution is improved on the aspect of operation and maintenance management, the version upgrading is transparent to the outside, and the gray scale is controllable, the service is zero-interrupted, and the zero perception is realized.
In the method for resolving a domain name according to the embodiment of the present invention, preferably, the method further includes:
acquiring abnormal state information of subordinate service nodes;
and isolating the subordinate service nodes from the corresponding load balancing equipment based on the abnormal state information.
In a specific embodiment, when any subordinate service node is abnormal, the abnormal state information of the corresponding subordinate service node is directly acquired. According to the abnormal state information, the subordinate service node is directly isolated from the load balancing equipment, external service is not carried out, other normal subordinate service nodes can normally provide service, and analysis can be carried out smoothly. In a preferred embodiment, when a management plane fault occurs, all the subordinate service nodes corresponding to the management platform are isolated from the load balancing device, no external service is performed, and the subordinate service nodes in other normal management planes can normally provide services. In another preferred embodiment, when a single campus domain name resolution service is not available, then it is automatically preferred that other parks be served by DNS Server. The specific operation steps can be referred to any of the specific embodiments described above.
A domain name resolution system according to a specific embodiment of the present invention is also provided, as shown in fig. 3, the system including:
a receiving unit 301, configured to receive a domain name resolution request;
an obtaining unit 302, configured to obtain a first preferred condition based on the domain name resolution request;
a selecting unit 303, configured to select a load balancing device according to the first preferred condition to resolve the domain name.
According to the domain name resolution method and the domain name resolution system, the campus-level fault scene can be dealt with through multi-campus and multi-active physical deployment, and the management-level fault scene can be dealt with through cross management of the multi-plane management center. The high availability of the domain name resolution service is realized through the multi-park and multi-activity physical deployment, and the high availability of operation and maintenance is achieved through the design architecture of multi-management plane decentralized management. The multi-park domain name resolution service node is provided with high availability and elastic capacity expansion and contraction capacity by the load balancing equipment of the park, does not influence each other between parks, and independently provides resolution service. And the method can cope with the fault of a multi-level scene, ensure the operation and maintenance management level of the domain name resolution system to be improved, ensure the version upgrade to be transparent to the outside, and realize controllable gray level and zero-interruption and zero-perception of service.
An embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method in any one of the above embodiments is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the method in any of the above embodiments.
In an embodiment of the invention, as shown in fig. 4, there is also provided a computer device, which computer device 402 may include one or more processors 404, such as one or more Central Processing Units (CPUs), each of which may implement one or more hardware threads. The computer device 402 may also include any memory 406 for storing any kind of information, such as code, settings, data, etc. For example, and without limitation, memory 406 may include any one or more of the following in combination: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information, and the memory 406 stores a computer program operable on the processor 404, and the processor 404 executes the computer program to implement the electric vehicle charging and discharging control method according to any of the foregoing embodiments. Further, any memory may represent fixed or removable components of computer device 402. In one case, when the processor 404 executes the associated instructions, which are stored in any memory or combination of memories, the computer device 402 can perform any of the operations of the associated instructions. The computer device 402 also includes one or more drive mechanisms 408, such as a hard disk drive mechanism, an optical disk drive mechanism, etc., for interacting with any memory.
Computer device 402 may also include an input/output module 410(I/O) for receiving various inputs (via input device 412) and for providing various outputs (via output device 414)). One particular output mechanism may include a presentation device 416 and an associated graphical user interface 418 (GUI). In other embodiments, input/output module 410(I/O), input device 412, and output device 414 may also be excluded, as just one computer device in a network. Computer device 402 can also include one or more network interfaces 420 for exchanging data with other devices via one or more communication links 422. One or more communication buses 424 couple the above-described components together.
Communication link 422 may be implemented in any manner, such as over a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. Communication link 422 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should also be understood that, in the embodiment of the present invention, the term "and/or" is only one kind of association relation describing an associated object, and means that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In the present invention, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A domain name resolution method, the method comprising:
receiving a domain name resolution request;
acquiring a first preferred condition based on the domain name resolution request;
and selecting a load balancing device according to the first preferred condition to analyze the domain name.
2. The method according to claim 1, wherein selecting a load balancing device to resolve the domain name according to the first preferred condition comprises:
sequentially sending detection signals to a plurality of load balancing devices according to the first optimal condition;
and when one of the load balancing devices receives the detection signal and passes the detection, selecting the load balancing device to carry out domain name resolution.
3. The method according to claim 1, wherein selecting a load balancing device to resolve the domain name according to the first preferred condition comprises:
sending detection signals to a plurality of load balancing devices simultaneously according to the first optimal condition;
when any load balancing device receives the detection signal and passes the detection, selecting the load balancing device to carry out domain name resolution; or the like, or, alternatively,
and when at least two load balancing devices receive the detection signal and pass the detection, selecting one of the load balancing devices to carry out domain name resolution.
4. A domain name resolution method according to any one of claims 1 to 3, wherein after selecting a load balancing device to resolve a domain name according to the first preferred condition, the method further comprises:
acquiring the node state of the subordinate service node of the selected load balancing equipment; the subordinate service node is a domain name service node attached to the load balancing equipment;
selecting available subordinate service nodes according to the node states;
acquiring a subordinate service node from the available subordinate service nodes based on a second preferred condition;
and sending the domain name resolution request to the subordinate service node for domain name resolution.
5. The method for resolving domain names according to claim 4, wherein the method further comprises:
obtaining a response result fed back by the selected subordinate service node; the response result is a response sent by the selected subordinate service node after querying a database of the subordinate service node based on the domain name resolution request;
and initiating a transaction operation based on the response result.
6. The method for resolving domain names according to claim 4, wherein the method further comprises:
acquiring an upgrade service request;
selecting a subordinate service node to be upgraded according to the upgrade service request;
isolating the subordinate service node to be upgraded from the corresponding load balancing equipment;
respectively carrying out service upgrade and upgrade verification on the isolated subordinate service nodes;
and when the upgrade verification is passed, restoring the subordinate service node to the load balancing equipment.
7. The method for resolving domain names according to claim 4, wherein the method further comprises:
acquiring abnormal state information of subordinate service nodes;
and isolating the subordinate service nodes from the corresponding load balancing equipment based on the abnormal state information.
8. A domain name resolution system, the system comprising:
a receiving unit, configured to receive a domain name resolution request;
an obtaining unit, configured to obtain a first preferred condition based on the domain name resolution request;
and the selecting unit is used for selecting one load balancing device according to the first preferred condition so as to analyze the domain name.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, is adapted to carry out the method of any of the preceding claims 1-7.
CN202110788388.6A 2021-07-13 2021-07-13 Domain name resolution method, system, computer equipment and readable storage medium Pending CN113542449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110788388.6A CN113542449A (en) 2021-07-13 2021-07-13 Domain name resolution method, system, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110788388.6A CN113542449A (en) 2021-07-13 2021-07-13 Domain name resolution method, system, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113542449A true CN113542449A (en) 2021-10-22

Family

ID=78127554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110788388.6A Pending CN113542449A (en) 2021-07-13 2021-07-13 Domain name resolution method, system, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113542449A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194335A1 (en) * 2001-06-19 2002-12-19 Maynard William Pat Method and apparatus for load balancing
US6671259B1 (en) * 1999-03-30 2003-12-30 Fujitsu Limited Method and system for wide area network load balancing
CN101729412A (en) * 2009-11-05 2010-06-09 北京超图软件股份有限公司 Distributed level cluster method and system of geographic information service
CN103023797A (en) * 2011-09-23 2013-04-03 百度在线网络技术(北京)有限公司 Data center system and device and method for providing service
CN110740293A (en) * 2019-09-06 2020-01-31 武汉烽火众智数字技术有限责任公司 data transmission method, system, device and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671259B1 (en) * 1999-03-30 2003-12-30 Fujitsu Limited Method and system for wide area network load balancing
US20020194335A1 (en) * 2001-06-19 2002-12-19 Maynard William Pat Method and apparatus for load balancing
CN101729412A (en) * 2009-11-05 2010-06-09 北京超图软件股份有限公司 Distributed level cluster method and system of geographic information service
CN103023797A (en) * 2011-09-23 2013-04-03 百度在线网络技术(北京)有限公司 Data center system and device and method for providing service
CN110740293A (en) * 2019-09-06 2020-01-31 武汉烽火众智数字技术有限责任公司 data transmission method, system, device and computer storage medium

Similar Documents

Publication Publication Date Title
CN109104483B (en) Micro-service dynamic load balancing method and device based on event notification
CN112491606B (en) Method for automatically deploying high-availability cluster of service system based on infrastructure
CN110719209A (en) Cluster network configuration method, system, equipment and readable storage medium
CN106911728A (en) The choosing method and device of host node in distributed system
JPH06103204A (en) Device and method for automatic constitution control
CN112637335B (en) Main/standby mode service deployment method, device, equipment and storage medium
CN112269694B (en) Management node determining method and device, electronic equipment and readable storage medium
CN110012111B (en) Data service cluster system and data processing method
US5917831A (en) System for testing a data-transmission network
JP3790717B2 (en) Atomic ownership change behavior of I / O bridge devices in clustered computer systems
CN110781039B (en) Sentinel process election method and device
KR100619424B1 (en) Dynamic burn rack monitor listener server
CN113542449A (en) Domain name resolution method, system, computer equipment and readable storage medium
CN116455869A (en) Method and system for efficiently configuring public network domain name based on Kubernetes
CN114615320B (en) Service management method, device, electronic equipment and computer readable storage medium
CN113179295B (en) Message processing method and device
CN113259146B (en) Micro-service access control method and device and micro-service system
CN114697191A (en) Resource migration method, device, equipment and storage medium
US7412500B2 (en) Method and apparatus for using a serial cable as a cluster quorum device
CN113157615B (en) Service bus communication method, electronic equipment and computer storage medium
CN113472558B (en) Network deployment method and device
CN112749045B (en) Database cluster switching method, device, storage medium and apparatus
CN106445593B (en) Method and device for gray scale upgrading in distributed system communication
CN109257436B (en) Load balancing configuration method and related device
JP5170000B2 (en) Redundant pair detection method, communication device, redundant pair detection program, recording medium

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