Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for optimizing domain name system and optimized domain name system

A technology of domain name system and optimization method, which is applied in the field of optimized domain name system and its optimization, can solve problems such as low processing efficiency, and achieve the effects of improving utilization rate, query efficiency, and query rate

Inactive Publication Date: 2014-08-06
SHENZHEN QVOD TECH
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the MYSQL database is queried for each DNS request, the processing efficiency is low, and the maximum QPS (Query Per Second, query rate per second) can only reach 5000
Obviously, for domain names with heavy traffic, this kind of DNS cannot meet the demand

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for optimizing domain name system and optimized domain name system
  • Method for optimizing domain name system and optimized domain name system
  • Method for optimizing domain name system and optimized domain name system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Such as figure 2 Shown is the domain name system optimization method of an embodiment of the present application, including:

[0032] Request receiving step S101, the domain name server receives the domain name query request from the client;

[0033]Preprocessing request step S102, preprocessing the received domain name query request, can adopt common preprocessing methods, such as taking a task from the processing queue and assigning it to a processing object, and then processing by the processing object;

[0034] In the domain name query step, the domain name server searches in the local cache module to respond to the domain name query request, wherein the local cache module caches the domain name information. The record of domain name information, if there is this record, then continue to step S104, if this record does not exist, then perform step S105, that is, the domain name server searches the domain name information related to the domain name query request fro...

Embodiment 2

[0040] This embodiment adds whitelist filtering on the basis of Embodiment 1. The whitelist is composed of all domain names and host header information in the database, that is, the whitelist includes domain name whitelist and host header whitelist, and domain names not in the whitelist All are not supported. Through whitelist filtering, random domain name attacks can be mitigated to a certain extent. For details, please refer to Figure 5 with Image 6 .

[0041] Figure 5 Shown is a flow diagram of the domain name support sub-step, that is, the function query_getdb(), including the following steps:

[0042] First, obtain the memory object corresponding to the current processing thread (that is, a thread corresponds to a memory object). It should be noted that all places that require dynamic memory in this request are obtained through this memory object.

[0043] Then, execute the function dns_dlzfindzone() to find whether the database supports this domain name;

[0044]...

Embodiment 3

[0055] This embodiment is based on Embodiment 1 or Embodiment 2 by using multithreading, that is, the local cache module supports multithreading operation, and the domain name server implements domain name query by using multithreading. The role of multi-threading is to process multiple client queries at the same time, and each step of each client's query is fixed in the corresponding thread.

[0056] In general multi-thread optimization, such as Figure 7 As shown, BIND-DLZ shares a memory pool ns_g_mctx object among multiple threads, which is a global variable. Therefore, locks are required when allocating and releasing memory in each thread. Examples of functions that allocate and free memory are as follows:

[0057]

[0058] It can be seen from the function that allocating memory and releasing memory must go through the process of locking and unlocking, that is to say, when multiple taskmgr threads run concurrently, due to the locking operation in the thread, each thr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for optimizing a domain name system and the optimized domain name system. The method includes the steps that a domain name server receives a domain name inquiring request of a client terminal; the domain name server carries out finding in a local cache module to respond to the domain name inquiring request, wherein domain name information is cached in the local cache module; the finding result is fed back through the domain name server to the client terminal. The local cache module is additionally arranged in the domain name server, the cache result of a database is cached, when same inquiring is carried out next time, locally-cached data can be directly returned without database inquiring, and therefore the inquiring efficiency can be greatly improved.

Description

technical field [0001] This application relates to the technical field of computer networks, in particular to an optimized domain name system and its optimization method. Background technique [0002] DNS (Domain Name System, Domain Name System) is a core service of the Internet. As a distributed database that can map domain names and IP addresses to each other, it can make it easier for people to access the Internet without having to remember that it can be accessed by machines. The IP number string to read directly. BIND-DLZ (bind dynamic loadable zones) is an open source DNS that can implement dynamic update of zone records. Information such as domain names and IPs are stored in the database. Take the MYSQL database as an example, such as figure 1 As shown, in the BIND-DLZ domain name system, each time a DNS request is processed, it is usually necessary to query the MYSQL database to retrieve the corresponding domain name and IP information; therefore, the update of th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12G06F17/30
Inventor 李学龙伍正勇
Owner SHENZHEN QVOD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products