Study and Improvement of a Specific Open-source Implementation for DNS
- Author
- TianJie
- Advisor
- GuDaWu
- School
- Shanghai Jiaotong University
- Major
- Computer System Architecture
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 144
- Citations
- 0
- Domain Name System
- Domain Name System Security
- Open-source DNS
- Cache Poisoning
- Reverse-direction Checking Algorithm
- Packet Validity Check
Abstract
Domain Name System is the core technology of the Internet, which can provide resolution service on mutual mapping between domain names and IP addresses. Humane domain names provide a convenient way for Internet users to access the net, and domain name resolution technology has become an important prerequisite for the smooth functioning of majority of Internet applications and services. However, since the origin of DNS, many flaws on performance and security of the system have been exposed, and therefore, many types of related network attacks, have left classic cases in the long history of network security, just because of their great destructive power and wide scope of influence. They not only bring unstable factors to the Internet, but also cause much threat to the current network in the context of information society and national security. In this thesis, many efforts have been made for the research on the implementation of open-source DNS, for the purpose of improving its efficiency, as well as intensifying DNS security.In this thesis, standard DNS protocols are analyzed, which is the theoretical basis for further study on a kind of open-source DNS. At the same time, Unbound, a kind of representative DNS server software is chosen as the object of study and then its principle of implementation, domain name resolution mechanism and work flow is analyzed, as well as its software architecture and technical features. Via the usage of different measurement tools, the domain name hash algorithm in the implementation is chosen as the object to optimize, adopting the complete hash on the whole domain name rather than iterative hash on each label. The feasibility of the optimization strategy is tested through code tests in the simulated environment, and the result indicates that the sample of peak value of performance is improved. Moreover, its possible influence on collision performance is also analyzed.On the other hand, in order to study DNS security, DNSSEC protocols are also analyzed in depth, as well as many kinds of popular DNS attacks in recent years. More efforts are focused on DNS cache poisoning attack, specifying the principle of its implementation, and making comprehensive comparison of advantages and disadvantages between various solutions against such attacks. Based on these efforts, a LAN-oriented solution on checking DNS packet validity is proposed, as a more active strategy of defense. In the new solution, a reverse-direction checking algorithm has been designed, which does not have to make DNS protocols modified and at the same time works better for checking the validity of DNS packet. For its practice, some further improvements on the original algorithm model have been made, including a new addressing solution and a new negotiation and alarm mechanism between a client and the server. Its usage in different scenes is also analyzed, providing a theoretical basis for validating its feasibility.
Table of contents
Abstract 5-7
ABSTRACT 7-11
first chapter 11-16
1.1 Background 11-13
1.2 Research goals 13-14
1.3 research 14
1.4 thesis structure 14-16
DNS protocol 16-27
2.1 DNS protocol framework constitute 16-19
2.1.1 domain name space and resource records 17-18
2.1.2 name server 18
2.1.3 resolver is 18-19
2.2 DNS domain name and resource record (RR) format 19-24
2.2.1 DNS domain name 19-20
2.2.2 the resource records data format 20-22
2.2.3 DNS packet structure 22-24
2.3 DNS works 24-25
2.4 How to manage the domain name server 25-27
a 2.4.1 master file definition 25
2.4.2 domain transfer and domain update strategy 25-27
the Chapter open source DNS-Unbound the realization of analytic and research 27-36
3.1 open source DNS Introduction 27
3.2 Unbound configure and use 27-29
3.3 Unbound architecture and functional modules 29-35
3.3.1 libevent multi-thread invocation mechanism 29-30
3.3.2 Unbound overall architecture characteristics 30-31
3.3.3 Unbound start processes 31-33
3.3.4 iterator module 33-34
3.3.5 recursive query mesh network 34-35
3.4 This chapter Summary 35-36
Chapter Unbound optimization and analysis 36-45
4.1 code optimization 36-37
4.2 software tools 37-38
4.3 applications and analysis based on the open source DNS hash optimization 38-44
4.3.1 domain length distribution 39
4.3.2 Unbound domain name hash program improvement and analysis 39-41
before 4.3.3 improvements the collision performance analysis of Hou Haxi program 41-42
4.3.4 improved function before and after the implementation of efficiency comparison 42-44
4.4 This chapter Summary 44-45
Chapter DNS security and protection 45-56
5.1 Domain Name System Security Extensions 45-48
5.1.1 DNSSEC About The 45-46
5.1.2 DNSSEC resource records introduced 46-48
5.2 DNS attack the status quo 48
5.3 DNS cache poisoning principle and protection 48-50
5.4 DNS packet the legitimacy checksum program against cache poisoning attacks 50-55
5.4.1 DNS packet the legitimacy checksum program 51-52
5.4.2 Reverse checksum algorithm feasibility analysis and improvement 52-54
5.4.3 Reverse checksum algorithm processing scene analysis 54-55
5.5 This chapter Summary 55-56
Chapter Summary and Outlook 56-58
6.1 work summarizes 56-57
6.2 Job Outlook 57-58
the
References 58-60
Acknowledgements 60-61
the
pursuing a master's degree during been published or accepted papers 61-63
Related dissertations
- Research and Implementation of Domain Name System with Control Capacity
- Research and Design of Dns Monitoring System Based on Passive Package Analysis
- Design and Development of the Malicious Domain Identification System Based on DNS
- The Research and Realization of the Distributed Object Name System
- The Design & Research of DNSSEC Based on Multi-trust Model
- INTERNET domain name and trademark legal issues of the conflict
- Meter data acquisition and monitoring system based on GPRS
- Design and Simulating Implementation of a Load Balance Solution for DNS
- Defense System Design and Implementation of DNS Cache Poisioning Attack
- Variable speed attack network research
- Fast-flux service network detection method
- Design and Implementation of domain filtering system
- Method based on SVM model 's DNS service attack prevention
- Research and Implementation of Rangi Based ID/Locator Mapping System
- DNS Security Detection Technology