Method and device for realizing high-performance DNS service, computer equipment and storage medium
A DNS service, high-performance technology, applied in multi-program devices, inter-program communication, electrical components, etc., can solve problems such as low performance, complex development environment deployment, and inability to use resources, and achieve processing speed improvement, processing quick effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] figure 1 It is a flowchart of a method for realizing high-performance DNS service provided according to an exemplary embodiment of the present application. The method comprises the steps of:
[0035] Step S101, attaching the BPF packet filter to the XDP hook on the kernel network card driver; the BPF packet filter acts on each data packet received by the network card to filter, wherein, the data packet of the UDP53 port in the transport layer protocol , directly sent to the user state process to process the DNS request, and the other non-UDP53 port data packets are transmitted to the kernel protocol stack and then sent to the user state process to process the DNS request. Among them, the data packets of other non-UDP53 ports include the data packets of TCP port 53, and the other non-UDP53 data packets pass through the traditional kernel protocol stack and then arrive at the DNS located in the user layer for response service. Port 53 is opened by the DNS server and is ...
Embodiment 2
[0043] Embodiment 2 of the present invention provides a device for implementing high-performance DNS services, including: a BPF packet filtering unit and a DNS response service unit, wherein,
[0044] The BPF packet filtering unit is located at the kernel state level, attached to the XDP hook on the kernel network card driver, and is used to process the received DNS data packets and send them to the DNS response service unit, among them, the UDP53 port in the transport layer protocol The data packet is directly transmitted to the user state process to process the DNS request, and the data packet of other non-UDP53 ports is transmitted to the kernel protocol stack and then transmitted to the user state process to process the DNS request;
[0045] The DNS response service unit is located at the user mode level, and is used to process the DNS data packets sent by the BPF packet filter unit. Among them, the DNS request sent to the UDP53 port will send a response through the network...
Embodiment 3
[0049] Embodiment 3 of the present invention provides a kind of computer equipment, and its internal structure diagram can be as follows image 3 shown. The computer device includes a processor, memory and a network interface connected by a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with other terminals or services through a network connection. When the computer program is executed by the processor, a method for realizing high-performance DNS service is implemented. Wherein, the computer device may be a server, and th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


