CN114422396A - DNS server management method and device, electronic equipment and storage medium - Google Patents
DNS server management method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114422396A CN114422396A CN202111509764.XA CN202111509764A CN114422396A CN 114422396 A CN114422396 A CN 114422396A CN 202111509764 A CN202111509764 A CN 202111509764A CN 114422396 A CN114422396 A CN 114422396A
- Authority
- CN
- China
- Prior art keywords
- dns server
- dns
- current network
- network equipment
- network
- 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 56
- 238000004891 communication Methods 0.000 claims abstract description 58
- 238000000034 method Methods 0.000 claims abstract description 28
- 230000036541 health Effects 0.000 claims description 28
- 238000001514 detection method Methods 0.000 claims description 5
- 238000012544 monitoring process Methods 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012913 prioritisation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a DNS server management method, a DNS server management device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring network state information between current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS; determining the priority of each DNS according to the network state information corresponding to each DNS; when the current network equipment sends a domain name resolution instruction, a target DNS server is determined for the current network equipment according to the priority of each DNS server, so that the current network equipment sends the domain name resolution instruction to the target DNS server. The network equipment can send the domain name resolution instruction to the target DNS server with a better network state, thereby avoiding the occurrence of failure in sending the domain name resolution instruction and improving the domain name resolution efficiency.
Description
Technical Field
The present application relates to the field of computer network technologies, and in particular, to a DNS server management method and apparatus, an electronic device, and a storage medium.
Background
A Domain Name Server (DNS) is a Server for performing Domain Name resolution, wherein Domain Name resolution is a conversion process from a Domain Name to an IP address.
In the current network system, a plurality of DNS servers are generally deployed, and when a user needs to query an IP address of a certain domain name based on network equipment, a domain name resolution instruction is randomly sent to any DNS server.
However, since the communication efficiency between the network device and each DNS server is affected by various factors, if the IP address is queried based on the prior art, situations such as failure in sending the domain name resolution command may occur, and the domain name resolution efficiency cannot be guaranteed.
Disclosure of Invention
The application provides a DNS server management method, a DNS server management device, electronic equipment and a storage medium, and aims to overcome the defects that domain name resolution efficiency cannot be guaranteed in the prior art and the like.
A first aspect of the present application provides a DNS server management method, including:
acquiring network state information between current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS;
determining the priority of each DNS according to the network state information corresponding to each DNS;
and when the current network equipment sends a domain name resolution instruction, determining a target DNS server for the current network equipment according to the priority of each DNS server so that the current network equipment sends the domain name resolution instruction to the target DNS server.
Optionally, the acquiring the network state information between the current network device and each DNS server includes:
sending a ping command to each DNS server based on the current network equipment;
and determining the network communication condition and the communication time delay between each DNS server and the current network equipment according to the detection result returned by the ping command.
Optionally, the obtaining network state information between the current network device and each DNS server includes:
based on the current network equipment, sending a tracking routing command to each DNS server;
and determining a path cost value between the DNS server and the current network equipment according to a route tracking result returned by the tracking route command.
Optionally, the determining the priority of each DNS server according to the network status information corresponding to each DNS server includes:
determining the network health degree of each DNS according to the network state information corresponding to each DNS;
determining the priority of each DNS according to the network health degree of each DNS; wherein the network health of the DNS server is proportional to the priority.
Optionally, the determining the network health degree of each DNS server according to the network state information corresponding to each DNS server includes:
and for each DNS server, when the network communication condition between the DNS server and the current network equipment is communication, determining the network health degree of the DNS server according to the communication delay and the path overhead value.
Optionally, the method further includes:
and when the network communication condition between the DNS server and the current network equipment is not communicated, carrying out abnormal marking on the DNS server.
Optionally, after determining the priority of each DNS server, the method further includes:
monitoring the application duration of the current priority based on a preset timer;
and when the application duration reaches a preset management period, returning to the step of acquiring the network state information between the current network equipment and each DNS server so as to re-determine the priority of each DNS server.
A second aspect of the present application provides a DNS server management apparatus, including:
the acquisition module is used for acquiring network state information between the current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS;
the determining module is used for determining the priority of each DNS according to the network state information corresponding to each DNS;
and the management module is used for determining a target DNS server for the current network equipment according to the priority of each DNS server when the current network equipment sends a domain name resolution instruction, so that the current network equipment sends the domain name resolution instruction to the target DNS server.
Optionally, the network state information includes a network connectivity condition and a communication delay between the DNS server and the current network device, and the obtaining module is specifically configured to:
sending a ping command to each DNS server based on the current network equipment;
and determining the network communication condition and the communication time delay between each DNS server and the current network equipment according to the detection result returned by the ping command.
Optionally, the network state information includes a path cost value between the DNS server and the current network device, and the obtaining module is specifically configured to:
based on the current network equipment, sending a tracking routing command to each DNS server;
and determining a path cost value between the DNS server and the current network equipment according to a route tracking result returned by the tracking route command.
Optionally, the determining module is specifically configured to:
determining the network health degree of each DNS according to the network state information corresponding to each DNS;
determining the priority of each DNS according to the network health degree of each DNS; wherein the network health of the DNS server is proportional to the priority.
Optionally, the determining module is specifically configured to:
and for each DNS server, when the network communication condition between the DNS server and the current network equipment is communication, determining the network health degree of the DNS server according to the communication delay and the path overhead value.
Optionally, the determining module is further configured to:
and when the network communication condition between the DNS server and the current network equipment is not communicated, carrying out abnormal marking on the DNS server.
Optionally, the apparatus further comprises:
the updating module is used for monitoring the application duration of the current priority based on a preset timer; and when the application duration reaches a preset management period, returning to the step of acquiring the network state information between the current network equipment and each DNS server so as to re-determine the priority of each DNS server.
A third aspect of the present application provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement a method as set forth in the first aspect and various possible designs of the first aspect.
This application technical scheme has following advantage:
the application provides a DNS server management method, a DNS server management device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring network state information between current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS; determining the priority of each DNS according to the network state information corresponding to each DNS; when the current network equipment sends a domain name resolution instruction, a target DNS server is determined for the current network equipment according to the priority of each DNS server, so that the current network equipment sends the domain name resolution instruction to the target DNS server. According to the method provided by the scheme, the DNS servers are sorted according to the network state information between the current network equipment and the DNS servers, so that the network equipment can send the domain name resolution instruction to the target DNS server with a better network state, the occurrence of the failure condition of sending the domain name resolution instruction is avoided, and the domain name resolution efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art according to these drawings.
Fig. 1 is a schematic structural diagram of a DNS server management system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a DNS server management method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a DNS server management apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following examples, "plurality" means two or more unless specifically limited otherwise.
In the current network system, a plurality of DNS servers are generally deployed, and when a user needs to query an IP address of a certain domain name based on network equipment, a domain name resolution instruction is randomly sent to any DNS server. However, since the communication efficiency between the network device and each DNS server is affected by various factors, if the IP address is queried based on the prior art, the case where the domain name resolution command is sent fails may occur. In addition, when such a situation occurs, the domain name resolution command is usually repeatedly sent to the DNS server, and if the DNS server still does not respond, the domain name resolution command is sent to another DNS server, so that the network device needs a long time to correctly resolve the IP address, and the domain name resolution efficiency is reduced.
In order to solve the above problems, the DNS server management method, device, electronic device, and storage medium provided in the embodiments of the present application acquire network state information between a current network device and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS; determining the priority of each DNS according to the network state information corresponding to each DNS; when the current network equipment sends a domain name resolution instruction, a target DNS server is determined for the current network equipment according to the priority of each DNS server, so that the current network equipment sends the domain name resolution instruction to the target DNS server. According to the method provided by the scheme, the DNS servers are sorted according to the network state information between the current network equipment and the DNS servers, so that the network equipment can send the domain name resolution instruction to the target DNS server with a better network state, the occurrence of the failure condition of sending the domain name resolution instruction is avoided, and the domain name resolution efficiency is improved.
The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
First, a configuration of a DNS server management system according to the present application will be described:
the DNS server management system method, the DNS server management device, the electronic equipment and the storage medium are suitable for managing the priority of the DNS server so as to help the network equipment to select the target DNS server. As shown in fig. 1, which is a schematic structural diagram of a DNS server management system according to an embodiment of the present application, the DNS server management system mainly includes a DNS server cluster, a network device, and a DNS server management device for performing DNS server management, where the DNS server management device may be deployed in the network device. Specifically, the DNS server management apparatus may obtain network state information between the current network device and each DNS server in the DNS server cluster, then perform priority division on the DNS servers according to the obtained information, when the network device needs to send a domain name resolution instruction, select a target DNS server for the network device according to a previous priority division result, and the network device finally sends the domain name resolution instruction to the target DNS server.
The embodiment of the application provides a DNS server management method, which is used for managing the priority of a DNS server so as to help network equipment to select a target DNS server. The execution subject of the embodiment of the present application is an electronic device, such as a switch, a server, a desktop computer, a notebook computer, a tablet computer, and other electronic devices that can be used for DNS server management.
As shown in fig. 2, a schematic flowchart of a DNS server management method provided in an embodiment of the present application is shown, where the method includes:
The network state information represents the communication connection condition between the current network equipment and the DNS server.
Specifically, the communication quality between each DNS server and the current network device may be determined according to the network state information between the DNS server and the current network device, and then the DNS server may be prioritized according to a preset prioritization standard. The higher the communication quality represented by the network state information is, the higher the priority corresponding to the DNS server is.
Specifically, when the current network device needs to send a domain name resolution instruction, the DNS server with the highest priority may be determined as the target DNS server according to the priority of each DNS server determined before. Further, the current network device sends the domain name resolution instruction to the target DNS server, so as to ensure the sending success rate and sending efficiency of the domain name resolution instruction, thereby improving the domain name resolution efficiency.
Further, if the current network device cannot normally send the domain name resolution instruction to the target DNS server, and if the domain name resolution instruction fails to be sent, the DNS server with the highest priority is determined as a new target DNS server according to the priority of the DNS server, and so on until the current network device can normally send the domain name resolution instruction to the corresponding target DNS server.
On the basis of the foregoing embodiments, the network status information may include various communication quality indicators, and in order to ensure that the network status information can objectively reflect the communication quality between the current network device and the DNS server, as an implementable manner, in an embodiment, the network status information includes a network connectivity condition and a communication delay between the DNS server and the current network device.
Correspondingly, acquiring the network state information between the current network device and each DNS server includes:
step 2011, based on the current network device, sending ping command to each DNS server;
step 2012, determining the network connectivity and communication delay between each DNS server and the current network device according to the detection result returned by the ping command.
It should be noted that the ping command is an Internet Control Message Protocol (ICMP) request Message, and is used to test whether a destination address (DNS server) is reachable.
Specifically, after a ping command is sent to a destination address corresponding to the DNS server based on the current network device, if a response message returned by the DNS server can be received, it indicates that the DNS server can ping, which also represents that the network connectivity between the DNS server and the current network device is connectivity, and at this time, the communication delay between the DNS server and the current network device can be determined according to the message information carried by the received response message. Wherein, the communication delay represents the transmission time of the ping command, i.e. the difference between the transmission time of the current network device and the receiving time of the DNS server.
Further, in an embodiment, in order to further improve the objectivity of the network status information, the network status information may further include a path cost value between the DNS server and the current network device.
The path cost value represents the number of routes included in a communication link between the current network device and the DNS server.
Accordingly, a traceroute command may be sent to each DNS server based on the current network device; and determining a path cost value between the DNS server and the current network equipment according to a route tracking result returned by the tracking route command.
It should be noted that the tracert command (tracert), also referred to as a Windows traceroute utility, may be used in the command prompt (cmd) to determine the path selected when accessing the destination (DNS server), and may further determine the path cost value according to the obtained path information.
Specifically, a trace route command may be sent to the DNS server based on the current network device to obtain a corresponding route trace result (path information), and then, according to the path information, the number of routes (path cost value) included in a communication path (link) between the current network device and the DNS server is determined. The larger the path overhead value is, the lower the corresponding communication efficiency is.
Further, in an embodiment, the network health of each DNS server may be determined according to the network state information corresponding to each DNS server; and determining the priority of each DNS according to the network health degree of each DNS.
Wherein, the network health degree of the DNS server is in direct proportion to the priority.
Specifically, the network health degree of each DNS server with respect to the current network device may be determined according to the network connectivity, communication delay, and path cost value between the DNS server and the current network device included in the network state information, and then the priority of each DNS server may be determined according to the preset priority classification standard and the network health degree of each DNS server.
Specifically, in an embodiment, for each DNS server, when the network connectivity between the DNS server and the current network device is connectivity, the network health of the DNS server is determined according to the communication delay and the path cost value.
Specifically, the network health of the DNS server may be calculated according to the following formula:
H=0.5*(M-T)+0.5*(M-N)
wherein H represents the network health degree of the DNS server, M represents the maximum value of the network health degree, such as 100, T represents the communication delay (unit: second), and N represents the path cost value.
Conversely, in an embodiment, when the network connection condition between the DNS server and the current network device is not good, the DNS server is abnormally marked.
It should be noted that, when the network connectivity between the DNS server and the current network device is not enabled, that is, when the DNS server ping is not enabled, it indicates that the communication link between the current network device and the DNS server is blocked, and there may be a communication failure, and if domain name resolution is performed based on the DNS server subsequently, a failure in sending a domain name resolution command may occur in a large probability, so that such a DNS server is not used as an alternative DNS server, and it is not necessary to calculate the network health.
In particular, DNS servers with blocked communication links may be flagged for anomaly to facilitate differentiation.
On the basis of the foregoing embodiment, since the currently determined DNS server priority has a certain timeliness, in order to ensure reliability of the DNS server priority, as an implementable manner, in an embodiment, after determining the priority of each DNS server, the method further includes:
It should be noted that, when the monitored application duration of the current priority reaches the preset management period, it is determined that the next DNS server management period has been entered currently.
Specifically, the priority of each DNS server may be re-determined according to a preset management period, so as to update the DNS server priority according to which the current network device sends the domain name resolution instruction, thereby ensuring reliability of the DNS server priority.
According to the DNS server management method provided by the embodiment of the application, network state information between current network equipment and each DNS server is acquired; the network state information represents the communication connection condition between the current network equipment and the DNS; determining the priority of each DNS according to the network state information corresponding to each DNS; when the current network equipment sends a domain name resolution instruction, a target DNS server is determined for the current network equipment according to the priority of each DNS server, so that the current network equipment sends the domain name resolution instruction to the target DNS server. According to the network state information between the current network equipment and each DNS server, the DNS servers are sorted according to the priority, so that the network equipment can send the domain name resolution instruction to the target DNS server with a better network state, the occurrence of the failure condition of sending the domain name resolution instruction is avoided, and the domain name resolution efficiency is improved. In addition, the priority of the DNS server is updated according to the preset management period, so that the reliability of the priority of the DNS server is ensured, and a foundation is laid for further improving the domain name resolution efficiency.
The embodiment of the application provides a DNS server management apparatus, which is used for executing the DNS server management method provided by the embodiment.
Fig. 3 is a schematic structural diagram of a DNS server management apparatus according to an embodiment of the present application. The DNS server management device 30 includes: an acquisition module 301, a determination module 302, and a management module 303.
The system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring network state information between current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS; the determining module is used for determining the priority of each DNS according to the network state information corresponding to each DNS; and the management module is used for determining a target DNS server for the current network equipment according to the priority of each DNS server when the current network equipment sends the domain name resolution instruction, so that the current network equipment sends the domain name resolution instruction to the target DNS server.
Specifically, in an embodiment, the network state information includes a network connectivity condition and a communication delay between the DNS server and the current network device, and the obtaining module is specifically configured to:
based on the current network equipment, sending ping commands to all DNS servers;
and determining the network communication condition and the communication time delay between each DNS server and the current network equipment according to the detection result returned by the ping command.
Specifically, in an embodiment, the network state information includes a path cost value between the DNS server and the current network device, and the obtaining module is specifically configured to:
based on the current network equipment, sending a tracking routing command to each DNS server;
and determining a path cost value between the DNS server and the current network equipment according to a route tracking result returned by the tracking route command.
Specifically, in an embodiment, the determining module is specifically configured to:
determining the network health degree of each DNS according to the network state information corresponding to each DNS;
determining the priority of each DNS according to the network health degree of each DNS; wherein, the network health degree of the DNS server is in direct proportion to the priority.
Specifically, in an embodiment, the determining module is specifically configured to:
and for each DNS server, when the network communication condition between the DNS server and the current network equipment is communication, determining the network health degree of the DNS server according to the communication delay and the path overhead value.
Specifically, in an embodiment, the determining module is further configured to:
and when the network communication condition between the DNS server and the current network equipment is not communicated, carrying out abnormal marking on the DNS server.
Specifically, in one embodiment, the apparatus further comprises:
the updating module is used for monitoring the application duration of the current priority based on a preset timer; and when the application time length reaches a preset management period, returning to the step of acquiring the network state information between the current network equipment and each DNS server so as to re-determine the priority of each DNS server.
With regard to the DNS server management apparatus in the present embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The DNS server management apparatus provided in the embodiment of the present application is configured to execute the DNS server management method provided in the foregoing embodiment, and an implementation manner of the DNS server management apparatus is the same as the principle, and is not described again.
The embodiment of the application provides electronic equipment, which is used for executing the DNS server management method provided by the embodiment.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 40 includes: at least one processor 41 and memory 42;
the memory stores computer-executable instructions; the at least one processor executes the memory-stored computer-executable instructions to cause the at least one processor to perform the DNS server management method provided by the above embodiments.
The electronic device provided in the embodiment of the present application is configured to execute the DNS server management method provided in the above embodiment, and an implementation manner of the electronic device is the same as a principle, which is not described again.
The embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the DNS server management method provided in any of the above embodiments is implemented.
The storage medium including the computer executable instructions of the embodiments of the present application may be used to store the computer executable instructions of the DNS server management method provided in the foregoing embodiments, and an implementation manner and a principle thereof are the same, and are not described again.
In the several embodiments provided in the present application, it should be understood that the disclosed 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 be in an electrical, mechanical or other form.
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.
In addition, functional units in the embodiments of the present application 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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A DNS server management method, comprising:
acquiring network state information between current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS;
determining the priority of each DNS according to the network state information corresponding to each DNS;
and when the current network equipment sends a domain name resolution instruction, determining a target DNS server for the current network equipment according to the priority of each DNS server so that the current network equipment sends the domain name resolution instruction to the target DNS server.
2. The method according to claim 1, wherein the network status information includes network connectivity and communication delay between the DNS server and the current network device, and the obtaining the network status information between the current network device and each DNS server includes:
sending a ping command to each DNS server based on the current network equipment;
and determining the network communication condition and the communication time delay between each DNS server and the current network equipment according to the detection result returned by the ping command.
3. The method of claim 2, wherein the network status information includes a path cost value between the DNS server and a current network device, and wherein the obtaining the network status information between the current network device and each DNS server includes:
based on the current network equipment, sending a tracking routing command to each DNS server;
and determining a path cost value between the DNS server and the current network equipment according to a route tracking result returned by the tracking route command.
4. The method according to claim 3, wherein the determining the priority of each DNS server according to the network status information corresponding to each DNS server comprises:
determining the network health degree of each DNS according to the network state information corresponding to each DNS;
determining the priority of each DNS according to the network health degree of each DNS; wherein the network health of the DNS server is proportional to the priority.
5. The method according to claim 4, wherein the determining the network health of each DNS server according to the network status information corresponding to each DNS server comprises:
and for each DNS server, when the network communication condition between the DNS server and the current network equipment is communication, determining the network health degree of the DNS server according to the communication delay and the path overhead value.
6. The method of claim 5, further comprising:
and when the network communication condition between the DNS server and the current network equipment is not communicated, carrying out abnormal marking on the DNS server.
7. The method of claim 1, wherein after determining the priority of each of the DNS servers, the method further comprises:
monitoring the application duration of the current priority based on a preset timer;
and when the application duration reaches a preset management period, returning to the step of acquiring the network state information between the current network equipment and each DNS server so as to re-determine the priority of each DNS server.
8. A DNS server management apparatus, characterized by comprising:
the acquisition module is used for acquiring network state information between the current network equipment and each DNS server; the network state information represents the communication connection condition between the current network equipment and the DNS;
the determining module is used for determining the priority of each DNS according to the network state information corresponding to each DNS;
and the management module is used for determining a target DNS server for the current network equipment according to the priority of each DNS server when the current network equipment sends a domain name resolution instruction, so that the current network equipment sends the domain name resolution instruction to the target DNS server.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111509764.XA CN114422396B (en) | 2021-12-10 | 2021-12-10 | DNS server management method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111509764.XA CN114422396B (en) | 2021-12-10 | 2021-12-10 | DNS server management method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114422396A true CN114422396A (en) | 2022-04-29 |
CN114422396B CN114422396B (en) | 2023-07-14 |
Family
ID=81264836
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111509764.XA Active CN114422396B (en) | 2021-12-10 | 2021-12-10 | DNS server management method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114422396B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117478636A (en) * | 2023-12-28 | 2024-01-30 | 中移(苏州)软件技术有限公司 | Domain name resolution scheduling method, device, network equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9137217B1 (en) * | 2014-05-16 | 2015-09-15 | Iboss, Inc. | Manage encrypted network traffic using DNS responses |
CN110247999A (en) * | 2019-07-11 | 2019-09-17 | 广东美的制冷设备有限公司 | Domain name analytic method, domain name mapping device, household appliance and storage medium |
CN112153170A (en) * | 2020-09-15 | 2020-12-29 | 广州华多网络科技有限公司 | Method, device and equipment for accessing server and storage medium |
-
2021
- 2021-12-10 CN CN202111509764.XA patent/CN114422396B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9137217B1 (en) * | 2014-05-16 | 2015-09-15 | Iboss, Inc. | Manage encrypted network traffic using DNS responses |
CN110247999A (en) * | 2019-07-11 | 2019-09-17 | 广东美的制冷设备有限公司 | Domain name analytic method, domain name mapping device, household appliance and storage medium |
CN112153170A (en) * | 2020-09-15 | 2020-12-29 | 广州华多网络科技有限公司 | Method, device and equipment for accessing server and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117478636A (en) * | 2023-12-28 | 2024-01-30 | 中移(苏州)软件技术有限公司 | Domain name resolution scheduling method, device, network equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114422396B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8479048B2 (en) | Root cause analysis method, apparatus, and program for IT apparatuses from which event information is not obtained | |
US8635319B1 (en) | Operational status of network nodes | |
US10536343B2 (en) | Traffic management apparatus and traffic management method | |
US20160119181A1 (en) | Network state monitoring system | |
US9241007B1 (en) | System, method, and computer program for providing a vulnerability assessment of a network of industrial automation devices | |
CN108924005B (en) | Network detection method, network detection apparatus, medium, and device | |
CN113472607B (en) | Application program network environment detection method, device, equipment and storage medium | |
CN110659109A (en) | Openstack cluster virtual machine monitoring system and method | |
EP2919441A1 (en) | Connection management device, communication system, connection management method, and computer program product | |
CN112953774A (en) | Network topology generation method, system, equipment and computer storage medium | |
CN107465621B (en) | Router discovery method, SDN controller, router and network system | |
US20140006554A1 (en) | System management apparatus, system management method, and storage medium | |
CN114422396A (en) | DNS server management method and device, electronic equipment and storage medium | |
CN112600703B (en) | Network equipment remote access fault positioning method and device | |
RU2008121872A (en) | NEAREST NODE FOR CONNECTIONS OF DISTRIBUTED SERVICES | |
CN115378841B (en) | Method and device for detecting state of equipment accessing cloud platform, storage medium and terminal | |
CN109495302B (en) | Link monitoring method, cloud server and computer readable storage medium | |
CN110048909B (en) | Network operation and maintenance method and device | |
CN108616423B (en) | Offline device monitoring method and device | |
US11153769B2 (en) | Network fault discovery | |
CN112702441B (en) | Container-based access data processing method, device, system and storage medium | |
CN112073322B (en) | Discovery method and device of network tester | |
CN113055203B (en) | Method and device for recovering exception of SDN control plane | |
CN111130941B (en) | Network error detection method and device and computer readable storage medium | |
CN114296979A (en) | Method and device for detecting abnormal state of Internet of things equipment |
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 |