CN111343299A - Multi-protocol active detection type intelligent DNS and method thereof - Google Patents

Multi-protocol active detection type intelligent DNS and method thereof Download PDF

Info

Publication number
CN111343299A
CN111343299A CN202010170159.3A CN202010170159A CN111343299A CN 111343299 A CN111343299 A CN 111343299A CN 202010170159 A CN202010170159 A CN 202010170159A CN 111343299 A CN111343299 A CN 111343299A
Authority
CN
China
Prior art keywords
dns
port
protocol
domain name
upstream server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010170159.3A
Other languages
Chinese (zh)
Other versions
CN111343299B (en
Inventor
宋磊
宋铭哲
王晓敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010170159.3A priority Critical patent/CN111343299B/en
Publication of CN111343299A publication Critical patent/CN111343299A/en
Application granted granted Critical
Publication of CN111343299B publication Critical patent/CN111343299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]

Abstract

The invention discloses a multi-protocol active detection type intelligent DNS and a method thereof, wherein a DNS upstream server of UDP, TCP, TLS and HTTPS protocols is supported, and DNS analysis service of UDP, TCP, TLS and HTTPS protocols is provided for a client; the unique node IP with the shortest response time can be selected as a domain name query result to be transmitted to the client by actively detecting the domain name resolution result IP of the upstream server, and the intelligent DNS supports internal service packets, wherein each packet can directly respond to the request of the client through different protocols and ports. Compared with the prior art, the method and the system can actively judge the result IP while supporting various DNS protocols, and return the result IP to the IP node with the shortest response time of the client, thereby improving the response time of WEB; simplified deployment of traditional DNS is achieved by using internal DNS service groupings of different ports. The quality of the analytic address is improved while the use cost and the later maintenance amount are reduced, and the method has popularization and application values.

Description

Multi-protocol active detection type intelligent DNS and method thereof
Technical Field
The invention relates to the technical field of communication, in particular to a multi-protocol active detection type intelligent DNS and a method thereof.
Background
The internet has been developed to the present stage, and the use of CDN (content caching service) has been very widespread. After a network address domain name uses CDN service, each domain name corresponds to a plurality of CDN nodes, and a CDN service provider cannot inform all DNS service providers in time after updating the CDN service nodes, so that the CDN node IP addresses obtained by using DNS servers of different DNS service providers to query the domain name by Internet terminal equipment are not always the same, the response time of the CDN node IP addresses to an Internet terminal is fast or slow, and the problem of different speeds of accessing websites due to different IP addresses returned by DNS server query is caused.
At present, a large number of internet terminals only support domain name resolution services provided by a DNS server of a UDP protocol 53 port, and a large number of DNS servers supporting new protocols such as TCP, TLS, HTTPS and the like have appeared, and it has become a problem that a conventional internet terminal device cannot directly use these new DNS servers.
In a large-scale multi-network-segment network with multiple operator outlets, flow strategies of an outlet router and a firewall usually require different internal network segments to preferentially use different operator networks, which requires that an internal DNS server can select to switch an upstream operator DNS group, so that the operator networks are used in a more efficient manner by matching with the routing strategies of the firewall and the outlet equipment.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a multi-protocol active detection type intelligent DNS and a method thereof, which solve the problem of CDN node IP selection with shortest response time, and improve the compatibility of the traditional terminal equipment to a novel DNS analysis protocol and the combination of an intranet multi-DNS server.
In order to achieve the technical purpose, the invention adopts the following technical scheme:
the invention provides a multiprotocol active probing type intelligent DNS, comprising:
intelligent DNS ports can be customized: the DNS server system comprises a DNS server, a client and a plurality of protocols, wherein the DNS server is used for butting a client and the DNS server with the plurality of protocols, receiving a domain name query request of the client, forwarding the domain name query request to the DNS server in parallel and returning a domain name resolution result to the client; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable intelligent DNS port allows customization of a supportable DNS upstream server type;
a response time analysis module: and the response time of the TCP protocol 80 port and 443 port of each group of IP addresses obtained by analyzing each DNS upstream server is actively detected through the TCP protocol, so that the IP address with the shortest response time is found out and returned to the customizable intelligent DNS port as a domain name analysis result, and the customizable intelligent DNS port is returned to the client.
The invention also provides a method for actively detecting the intelligent DNS by using the multi-protocol, which comprises the following steps:
s1, completing the configuration of the customizable intelligent DNS port, and defining the type of the DNS upstream server supported by the customizable intelligent DNS port; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server;
s2, sending a domain name query request to the customizable intelligent DNS port by the client through one or more of a UDP protocol, a TCP protocol, a TLS protocol and an HTTPS protocol;
s3, the customizable intelligent DNS port forwards the domain name query request received in the step S2 to each DNS upstream server in parallel;
s4, each DNS upstream server carries out domain name resolution according to the domain name query request and returns the obtained IP address, and the response time analysis module actively detects the response time of the TCP protocol 80 and 443 port of the IP address obtained by the resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out and returned to the customizable intelligent DNS port as the domain name resolution result;
and S5, the customizable intelligent DNS port returns the domain name resolution result to the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol according to the protocol type of the domain name query request sent by the client.
Further, in step S4, the response time analysis module actively detects and stores the response time of the TCP80 and 443 ports of each IP address in the IP result set through the TCP protocol, and compares the magnitude of the primary value and selects the IP address with a smaller primary value as the result of domain name resolution, and if the primary values are the same, compares the secondary values and selects the IP address with a smaller secondary value as the result of domain name resolution, with the response time of one of the IP address 80 and 443 ports as the primary value and the response time of the other as the secondary value.
As another solution, the present invention provides another multi-protocol active probing type intelligent DNS, including:
intelligent DNS ports can be customized: the system comprises a client, a sub-intelligent DNS port capable of being defined by oneself, a domain name query request receiving module, a sub-intelligent DNS port capable of being defined by oneself, a domain name resolution module and a domain name resolution module, wherein the sub-intelligent DNS port capable of being defined by oneself is used for butting the client, receiving the domain name query request of the client, forwarding the domain name;
a child intelligent DNS port can be self-defined: each sub-intelligent DNS port capable of being defined by oneself is butted with the intelligent DNS port capable of being defined by oneself, and is butted with a client, and a domain name query request is received from the intelligent DNS port capable of being defined by oneself or the client; each sub-intelligent DNS port capable of being defined by self is respectively connected with a DNS upstream server with a plurality of protocols; the DNS upstream server which can be supported by the self-definable sub-intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable sub-intelligent DNS port allows customization of supportable DNS upstream server types;
a response time analysis module: and the response time of the TCP protocol 80 port and 443 port used for actively detecting the IP address obtained by the resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out as a domain name resolution result and returned to the customizable intelligent DNS port or the customizable sub-intelligent DNS port.
Further, in the multi-protocol active probing type intelligent DNS, the customizable intelligent DNS port may also independently interface with DNS upstream servers of multiple protocols, receive a domain name query request of a client, forward the domain name query request to each of the interfaced DNS upstream servers in parallel, and return a domain name query result to the client; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable intelligent DNS ports allow customization of supportable DNS upstream server types.
The invention also provides a method for actively detecting the intelligent DNS by using the multi-protocol, which comprises the following steps:
s1, completing the configuration of the self-definable intelligent DNS port and each self-definable sub-intelligent DNS port, and defining the DNS upstream server type supported by each self-definable sub-intelligent DNS port; the DNS upstream server which can be supported by the self-definable sub-intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server;
s2, sending a domain name query request to the customizable intelligent DNS port or the customizable sub-intelligent DNS port by the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol;
s3, when the client sends out the domain name query request to the self-definable intelligent DNS port, the self-definable intelligent DNS port sends the domain name query request to each self-definable sub-intelligent DNS port in parallel, and each self-definable sub-intelligent DNS port sends the domain name query request to each DNS upstream server which is connected with the self-definable sub-intelligent DNS port in parallel;
s4, each DNS upstream server carries out domain name resolution according to the domain name query request and returns the IP address obtained by resolution, and the response time analysis module actively detects the response time of the TCP protocol 80 port and the TCP protocol 443 port of the IP address obtained by resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out and used as the domain name resolution result;
s5, if the domain name query request is sent directly from the client to the self-defined sub-intelligent DNS port, the self-defined sub-intelligent DNS port returns the domain name resolution result to the client; if the domain name query request is sent to the customizable intelligent DNS port by the client, returning the domain name resolution result to the client by the customizable intelligent DNS port;
the self-defined intelligent DNS port or the self-defined sub-intelligent DNS port returns the domain name resolution result to the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol according to the protocol type of the domain name query request sent by the client.
Further, step S1 further includes defining a DNS upstream server type that can be supported by the customized intelligent DNS port; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server.
Further, when the customizable intelligent DNS port is independently docked with multiple types of DNS upstream servers, in step S3, when the client sends a domain name query request to the customizable intelligent DNS port, the customizable intelligent DNS port sends the domain name query request to each docked DNS upstream server in parallel and/or to each customizable sub-intelligent DNS port, and each customizable sub-intelligent DNS port sends the domain name query request to each DNS upstream server docked by itself in parallel.
Further, in step S4, the response time analysis module actively detects and stores the response time of the TCP80 and 443 ports of each IP address in the IP result set through the TCP protocol, and compares the magnitude of the primary value and selects the IP address with a smaller primary value as the result of domain name resolution, and if the primary values are the same, compares the secondary values and selects the IP address with a smaller secondary value as the result of domain name resolution, with the response time of one of the IP address 80 and 443 ports as the primary value and the response time of the other as the secondary value.
The invention has the beneficial effects that: compared with the prior art, the method and the system can actively judge the IP address obtained by domain name resolution while supporting various DNS protocols, and return the IP address to the IP node with the shortest response time of the client, thereby improving the response time of WEB; simplified deployment of traditional DNS is achieved by using internal DNS service groupings of different ports. The quality of the analytic address is improved while the use cost and the later maintenance amount are reduced, and the method has popularization and application values.
Drawings
FIG. 1 is a schematic structural view of example 1 of the present invention;
fig. 2 is a schematic structural diagram of embodiment 2 of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings, and it should be noted that the present embodiment is based on the technical solution, and the detailed implementation and the specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
Example 1
The present embodiment provides a multi-protocol active probing type intelligent DNS, as shown in fig. 1, including:
the intelligent DNS port 101 can be customized: the domain name resolution method comprises the steps of interfacing a client 102 and DNS upstream servers 103 with multiple protocols, receiving domain name query requests of the client 102, forwarding the domain name query requests to the DNS upstream servers 103 in parallel, and returning domain name resolution results to the client 102; the DNS upstream server 103 which can be supported by the customizable intelligent DNS port 101 comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable intelligent DNS port 101 allows customization of the type of DNS upstream server 103 that can be supported;
response time analysis module 104: the response time of the TCP protocol 80 port and 443 port used for actively detecting the IP address obtained by the resolution of each DNS upstream server 103 through the TCP protocol, so as to find out the IP address with the shortest response time and return the IP address as a domain name resolution result to the customizable intelligent DNS port 101, and the customizable intelligent DNS port 101 returns the IP address to the client 102.
Example 2
The present embodiment provides another multi-protocol active probing type intelligent DNS, as shown in fig. 2, including:
the intelligent DNS port 201 can be customized: the system is used for butting the client 202 and the definable sub-intelligent DNS port 203, receiving a domain name query request of the client 202, forwarding the domain name query request to each definable sub-intelligent DNS port 203 in parallel, and returning a domain name resolution result to the client 202;
the child intelligent DNS port 203 can be self-defined: each definable sub-intelligent DNS port 203 is in butt joint with the customizable intelligent DNS port 201 and the client 202, and receives a domain name query request from the customizable intelligent DNS port 201 or the client 202; each definable sub-intelligent DNS port 203 is respectively interfaced with a DNS upstream server 204 with multiple protocols; the DNS upstream servers 204 that the self-definable sub-intelligent DNS port 203 can support include one or more of UDP protocol DNS upstream servers, TCP protocol DNS upstream servers, TLS protocol DNS upstream servers, and HTTPS protocol DNS upstream servers; the customizable sub-intelligent DNS port allows customization of supportable DNS upstream server types;
response time analysis module 205: and the response time of the TCP protocol 80 port and 443 port, which are used for actively detecting the IP address obtained by the resolution of each DNS upstream server 204 through the TCP protocol, so that the IP address with the shortest response time is found out as a domain name resolution result and returned to the customizable intelligent DNS port 201 or the customizable sub-intelligent DNS port 203.
Further, the customizable intelligent DNS port 201 can also independently interface DNS upstream servers of multiple protocols (fig. 2 only shows a case where the customizable intelligent DNS port interfaces with the customizable sub-intelligent DNS port 203, and an example of the customizable intelligent DNS port interfacing with the DNS upstream servers can refer to embodiment 1), receive a domain name query request of a client and forward the domain name query request to each interfaced DNS upstream server in parallel, and return a domain name query result to the client; the DNS upstream server 204 which can be supported by the customizable intelligent DNS port 201 comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable intelligent DNS ports allow customization of supportable DNS upstream server types.
Example 3
The present embodiment provides a method for using the multi-protocol active probing type intelligent DNS described in embodiment 1, including the following steps:
s1, completing the configuration of the customizable intelligent DNS port, and defining the type of the DNS upstream server supported by the customizable intelligent DNS port; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server;
s2, sending a domain name query request to the customizable intelligent DNS port by the client through one or more of a UDP protocol, a TCP protocol, a TLS protocol and an HTTPS protocol;
s3, the customizable intelligent DNS port forwards the domain name query request received in the step S2 to each DNS upstream server in parallel;
s4, each DNS upstream server carries out domain name resolution according to the domain name query request and returns the obtained IP address, and the response time analysis module actively detects the response time of the TCP protocol 80 and 443 port of the IP address obtained by the resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out and returned to the customizable intelligent DNS port as the domain name resolution result;
and S5, the customizable intelligent DNS port returns the domain name resolution result to the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol according to the protocol type of the domain name query request sent by the client.
Further, in step S4, the response time analysis module actively detects and stores the response time of the TCP80 and 443 ports of each IP address in the IP result set through the TCP protocol, and compares the magnitude of the primary value and selects the IP address with a smaller primary value as the result of domain name resolution, and if the primary values are the same, compares the secondary values and selects the IP address with a smaller secondary value as the result of domain name resolution, with the response time of one of the IP address 80 and 443 ports as the primary value and the response time of the other as the secondary value. The selection of which of the 80 or 443 ports is the primary can be customized.
Example 4
The present embodiment provides a method for using the multi-protocol active probing type intelligent DNS described in embodiment 2, including the following steps:
s1, completing the configuration of the self-definable intelligent DNS port and each self-definable sub-intelligent DNS port, and defining the DNS upstream server type supported by each self-definable sub-intelligent DNS port; the DNS upstream server which can be supported by the self-definable sub-intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server;
s2, sending a domain name query request to the customizable intelligent DNS port or the customizable sub-intelligent DNS port by the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol;
s3, when the client sends out the domain name query request to the self-definable intelligent DNS port, the self-definable intelligent DNS port sends the domain name query request to each self-definable sub-intelligent DNS port in parallel, and each self-definable sub-intelligent DNS port sends the domain name query request to each DNS upstream server which is connected with the self-definable sub-intelligent DNS port in parallel;
s4, each DNS upstream server carries out domain name resolution according to the domain name query request and returns the IP address obtained by resolution, and the response time analysis module actively detects the response time of the TCP protocol 80 port and the TCP protocol 443 port of the IP address obtained by resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out and used as the domain name resolution result;
s5, if the domain name query request is sent directly from the client to the self-defined sub-intelligent DNS port, the self-defined sub-intelligent DNS port returns the domain name resolution result to the client; if the domain name query request is sent to the customizable intelligent DNS port by the client, returning the domain name resolution result to the client by the customizable intelligent DNS port;
the self-defined intelligent DNS port or the self-defined sub-intelligent DNS port returns the domain name resolution result to the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol according to the protocol type of the domain name query request sent by the client.
Further, step S1 further includes defining a DNS upstream server type that can be supported by the customized intelligent DNS port; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server.
Further, when the customizable intelligent DNS port is independently docked with multiple types of DNS upstream servers, in step S3, when the client sends a domain name query request to the customizable intelligent DNS port, the customizable intelligent DNS port sends the domain name query request to each docked DNS upstream server in parallel and/or to each customizable sub-intelligent DNS port in parallel, and each customizable sub-intelligent DNS port sends the domain name query request to each DNS upstream server docked by itself in parallel.
Further, in step S4, the response time analysis module actively detects and stores the response time of the TCP80 and 443 ports of each IP address in the IP result set through the TCP protocol, and compares the magnitude of the primary value and selects the IP address with a smaller primary value as the result of domain name resolution, and if the primary values are the same, compares the secondary values and selects the IP address with a smaller secondary value as the result of domain name resolution, with the response time of one of the IP address 80 and 443 ports as the primary value and the response time of the other as the secondary value.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.

Claims (9)

1. A multi-protocol active probing intelligent DNS, comprising:
customizable intelligent DNS port (101): the domain name resolution method comprises the steps that a DNS upstream server (103) used for butting a client (102) and multiple protocols receives domain name query requests of the client and forwards the domain name query requests to the DNS upstream servers in parallel, and domain name resolution results are returned to the client; the DNS upstream server (103) which can be supported by the customizable intelligent DNS port (101) comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable intelligent DNS port (101) allows customization of supportable DNS upstream server types;
response time analysis module (104): and the response time of the TCP protocol 80 port and 443 port of each group of IP addresses obtained by analyzing each DNS upstream server is actively detected through the TCP protocol, so that the IP address with the shortest response time is found out and returned to the customizable intelligent DNS port as a domain name analysis result, and the customizable intelligent DNS port is returned to the client.
2. A method of using the multi-protocol active probing intelligent DNS as claimed in claim 1, comprising the steps of:
s1, completing the configuration of the customizable intelligent DNS port, and defining the type of the DNS upstream server supported by the customizable intelligent DNS port; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server;
s2, sending a domain name query request to the customizable intelligent DNS port by the client through one or more of a UDP protocol, a TCP protocol, a TLS protocol and an HTTPS protocol;
s3, the customizable intelligent DNS port forwards the domain name query request received in the step S2 to each DNS upstream server in parallel;
s4, each DNS upstream server carries out domain name resolution according to the domain name query request and returns the obtained IP address, and the response time analysis module actively detects the response time of the TCP protocol 80 and 443 port of the IP address obtained by the resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out and returned to the customizable intelligent DNS port as the domain name resolution result;
and S5, the customizable intelligent DNS port returns the domain name resolution result to the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol according to the protocol type of the domain name query request sent by the client.
3. The method of claim 2, wherein in step S4, the response time analysis module actively detects the response time of TCP80 and 443 of each IP address in the IP result set through TCP protocol and saves the response time, and with the response time of one of 80 and 443 of each IP address as a primary value and the response time of the other as a secondary value, compares the primary values, selects the IP address with smaller primary value as the domain name resolution result, and compares the secondary values if the primary values are the same, and selects the IP address with smaller secondary value as the domain name resolution result.
4. A multi-protocol active probing intelligent DNS, comprising:
customizable intelligent DNS port (201): the system comprises a client (202), definable sub-intelligent DNS ports (203), a domain name query request of the client (202) is received and forwarded to each definable sub-intelligent DNS port (203) in parallel, and a domain name resolution result is returned to the client (202);
a child intelligent DNS port (203) may be self-defined: each customizable sub-intelligent DNS port (203) is interfaced with the customizable intelligent DNS port (201) and with a client (202), and receives a domain name query request from the customizable intelligent DNS port (201) or the client (202); each definable sub-intelligent DNS port (203) respectively interfacing with a DNS upstream server (204) having a plurality of protocols; the DNS upstream server (204) supportable by the self-definable sub-intelligent DNS port (203) comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable sub-intelligent DNS port allows customization of supportable DNS upstream server types;
response time analysis module (205): and actively detecting response time of the TCP protocol 80 port and 443 port of the IP address obtained by resolution of each DNS upstream server (204) through the TCP protocol, thereby finding out the IP address with the shortest response time as a domain name resolution result and returning the IP address to the customizable intelligent DNS port (201) or the customizable sub-intelligent DNS port (203).
5. The multi-protocol active probing type intelligent DNS according to claim 4 wherein the customizable intelligent DNS port (201) independently interfaces with DNS upstream servers of multiple protocols, receives domain name query requests of clients and forwards the domain name query requests to the interfaced DNS upstream servers in parallel, and returns domain name query results to the clients; the DNS upstream server (204) which can be supported by the customizable intelligent DNS port (201) comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server; the customizable intelligent DNS ports allow customization of supportable DNS upstream server types.
6. A method for using the multi-protocol active probing intelligent DNS as claimed in any one of claims 4-5, comprising the steps of:
s1, completing the configuration of the self-definable intelligent DNS port and each self-definable sub-intelligent DNS port, and defining the DNS upstream server type supported by each self-definable sub-intelligent DNS port; the DNS upstream server which can be supported by the self-definable sub-intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server;
s2, sending a domain name query request to the customizable intelligent DNS port or the customizable sub-intelligent DNS port by the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol;
s3, when the client sends out the domain name query request to the self-definable intelligent DNS port, the self-definable intelligent DNS port sends the domain name query request to each self-definable sub-intelligent DNS port in parallel, and each self-definable sub-intelligent DNS port sends the domain name query request to each DNS upstream server which is connected with the self-definable sub-intelligent DNS port in parallel;
s4, each DNS upstream server carries out domain name resolution according to the domain name query request and returns the IP address obtained by resolution, and the response time analysis module actively detects the response time of the TCP protocol 80 port and the TCP protocol 443 port of the IP address obtained by resolution of each DNS upstream server through the TCP protocol, so that the IP address with the shortest response time is found out and used as the domain name resolution result;
s5, if the domain name query request is sent directly from the client to the self-defined sub-intelligent DNS port, the self-defined sub-intelligent DNS port returns the domain name resolution result to the client; if the domain name query request is sent to the customizable intelligent DNS port by the client, returning the domain name resolution result to the client by the customizable intelligent DNS port;
the self-defined intelligent DNS port or the self-defined sub-intelligent DNS port returns the domain name resolution result to the client through one or more of UDP protocol, TCP protocol, TLS protocol and HTTPS protocol according to the protocol type of the domain name query request sent by the client.
7. The method of claim 6, wherein step S1 further comprises defining a DNS upstream server type that can be supported by the customized intelligent DNS port; the DNS upstream server which can be supported by the customizable intelligent DNS port comprises one or more of a UDP protocol DNS upstream server, a TCP protocol DNS upstream server, a TLS protocol DNS upstream server and an HTTPS protocol DNS upstream server.
8. The method according to claim 7, wherein when the customizable intelligent DNS port is independently docked with multiple types of DNS upstream servers, in step S3, when the client sends a domain name query request to the customizable intelligent DNS port, the customizable intelligent DNS port sends the domain name query request to each docked DNS upstream server in parallel and/or to each customizable sub-intelligent DNS port, and each customizable sub-intelligent DNS port sends the domain name query request to each DNS upstream server docked with itself in parallel.
9. The method of claim 6, wherein in step S4, the response time analysis module actively detects the response time of TCP80 and 443 of each IP address in the IP result set through TCP protocol and saves the response time, and with the response time of one of 80 and 443 of each IP address as a primary value and the response time of the other as a secondary value, compares the primary values, selects the IP address with smaller primary value as the domain name resolution result, and compares the secondary values if the primary values are the same, and selects the IP address with smaller secondary value as the domain name resolution result.
CN202010170159.3A 2020-03-12 2020-03-12 Multi-protocol active detection type intelligent DNS and method thereof Active CN111343299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010170159.3A CN111343299B (en) 2020-03-12 2020-03-12 Multi-protocol active detection type intelligent DNS and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010170159.3A CN111343299B (en) 2020-03-12 2020-03-12 Multi-protocol active detection type intelligent DNS and method thereof

Publications (2)

Publication Number Publication Date
CN111343299A true CN111343299A (en) 2020-06-26
CN111343299B CN111343299B (en) 2022-07-05

Family

ID=71187456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010170159.3A Active CN111343299B (en) 2020-03-12 2020-03-12 Multi-protocol active detection type intelligent DNS and method thereof

Country Status (1)

Country Link
CN (1) CN111343299B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014684A (en) * 2021-01-18 2021-06-22 珠海莲鸿科技有限公司 Communication transfer method and device for saving message verification time of Internet of things equipment
CN115022278A (en) * 2022-06-02 2022-09-06 上海哔哩哔哩科技有限公司 CDN processing method and system
CN115022278B (en) * 2022-06-02 2024-04-26 上海哔哩哔哩科技有限公司 CDN processing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863196A (en) * 2005-05-11 2006-11-15 中国科学院计算技术研究所 Service agent method for multi-protocol domain analytical service
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN103281409A (en) * 2013-06-24 2013-09-04 广州菁英信息技术有限公司 Domain name resolution method of mobile internet and DNS server based on TCP protocol
CN103957283A (en) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 Optimal-application-server selection method and device for domain name system
CN104065761A (en) * 2011-09-29 2014-09-24 北京奇虎科技有限公司 Application server selecting method and network connection method
CN107124482A (en) * 2017-05-26 2017-09-01 深圳市米联科信息技术有限公司 A kind of DNS data package transmitting method, system and router
CN110113440A (en) * 2019-04-15 2019-08-09 北京奇艺世纪科技有限公司 A kind of request responding method, device and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863196A (en) * 2005-05-11 2006-11-15 中国科学院计算技术研究所 Service agent method for multi-protocol domain analytical service
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN103957283A (en) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 Optimal-application-server selection method and device for domain name system
CN104065761A (en) * 2011-09-29 2014-09-24 北京奇虎科技有限公司 Application server selecting method and network connection method
CN103281409A (en) * 2013-06-24 2013-09-04 广州菁英信息技术有限公司 Domain name resolution method of mobile internet and DNS server based on TCP protocol
CN107124482A (en) * 2017-05-26 2017-09-01 深圳市米联科信息技术有限公司 A kind of DNS data package transmitting method, system and router
CN110113440A (en) * 2019-04-15 2019-08-09 北京奇艺世纪科技有限公司 A kind of request responding method, device and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014684A (en) * 2021-01-18 2021-06-22 珠海莲鸿科技有限公司 Communication transfer method and device for saving message verification time of Internet of things equipment
CN115022278A (en) * 2022-06-02 2022-09-06 上海哔哩哔哩科技有限公司 CDN processing method and system
CN115022278B (en) * 2022-06-02 2024-04-26 上海哔哩哔哩科技有限公司 CDN processing method and system

Also Published As

Publication number Publication date
CN111343299B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
US7894353B2 (en) Method, apparatus, and system for diagnosing route in network based on diameter protocol
US7228359B1 (en) Methods and apparatus for providing domain name service based on a client identifier
US8451839B2 (en) Method and apparatus for managing route information and forwarding data in access devices
US7505464B2 (en) Method of identifying a home gateway using network traffic sniffing and apparatus employing the same
US7734651B1 (en) Communicating network information using universal resource locators
US8320384B2 (en) Packet forwarding apparatus suitable for real time packets
EP2611075B1 (en) Fault detection method and system
US8667176B2 (en) Network service access method and access gateway equipment
EP2536108B1 (en) Method, system and apparatus for acquiring ipv6 configuration information in ipv6 transient network
US20100008260A1 (en) Method for configuring control tunnel and direct tunnel in ipv4 network-based ipv6 service providing system
US20100088427A1 (en) Selective Routing of Data Transmission Between Clients
CN111385203B (en) Data transmission method, device and equipment based on hybrid cloud and storage medium
CN102647341B (en) Message processing method, device and system
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
US20110188407A1 (en) Method and apparatus for detecting devices on a local area network
CN111343299B (en) Multi-protocol active detection type intelligent DNS and method thereof
CN101656762B (en) Method, apparatus and system for transmitting domain name server information
CN103188132B (en) The instant communication method of content-based distributing network and system
US10129145B2 (en) Routing IPv6 packets between autonomous systems
CN113890849B (en) Content distribution network based decentralized return source routing system
CN104935677A (en) NAT64 resource obtaining method and obtaining/distributing device
CN114268578A (en) Data transmission method, device and equipment for switching line and storage medium
Cisco Glossary
WO2008069504A1 (en) Method for configuring control tunnel and direct tunnel in ipv4 network-based ipv6 service providing system
CN104618242A (en) Method and device for transferring message

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