Skip to content

Latest commit

Β 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DN53CLab_Banner

Kali Linux Ubuntu nginx Bind9 Pentesting Pentesting Project Status License


🌐 DN53CLab

A vulnerable DNS environment designed to understand how DNS works, how attackers abuse it and how defenders can detect & mitigate DNS-based attacks. Yes, that's a "53" in there β€” DN53CLab, pronounced "DNSecLab", because Port 53 is where all the fun happens.

DN53CLab is a self-built cybersecurity laboratory focused on learning DNS from both the administrator's and attacker's perspective.

Unlike traditional DNS tutorials, this project demonstrates:

πŸ”Ή How DNS actually works
πŸ”Ή Recursive vs Authoritative DNS
πŸ”Ή Zone Files
πŸ”Ή DNS Record Types
πŸ”Ή DNS Resolution Process
πŸ”Ή DNS Security Concepts
πŸ”Ή How DNS is Configured
πŸ”Ή Common DNS Misconfigurations
πŸ”Ή Real-world DNS Pentesting Techniques
πŸ”Ή Defensive Mitigations.

The goal is to build a strong understanding of DNS while safely demonstrating common attack techniques inside an isolated lab environment.

Warning

This project is built ONLY for educational purposes inside an isolated virtual lab.

No techniques demonstrated here should ever be used against systems without explicit authorization.


🎯 Objectives

  • Learn DNS from scratch
  • Understand how recursive resolution works
  • Configure authoritative DNS servers
  • Host a website using custom DNS
  • Perform DNS enumeration
  • Identify DNS misconfigurations
  • Demonstrate common DNS attacks
  • Learn practical mitigation techniques

πŸ–₯️ Lab Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” ──────────────────────────────────────────┐
β”‚NAT (192.168.34.0/24 β”‚                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                           β”‚
β”‚                                                                 β”‚
β”‚    H4CK3R [KALI LINUX]                     Victim [Windows 10]  β”‚
β”‚      (192.168.34.129)                        (192.168.34.130)   β”‚
β”‚            β”‚                                         β”‚          β”‚
β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚
β”‚                                β”‚                                β”‚
β”‚                                β–Ό                                β”‚
β”‚                          DNS Resolver                           β”‚
β”‚                   [Ubuntu Server 26.04 LTS]                     β”‚
β”‚                        (192.168.34.131)                         β”‚
β”‚                                β”‚                                β”‚
β”‚                                β”‚                                β”‚
β”‚                                β–Ό                                β”‚
β”‚                       Authoritative Server                      β”‚
β”‚                   [Ubuntu Server 26.04 LTS]                     β”‚
β”‚                        (192.168.34.133)                         β”‚
β”‚                                β”‚                                β”‚
β”‚                                β”‚                                β”‚
β”‚                                β–Ό                                β”‚
β”‚                            Webserver                            β”‚
β”‚                   [Ubuntu Server 26.04 minimized]               β”‚
β”‚                        (192.168.34.134)                         β”‚
β”‚                                                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“š Topics Covered

DNS Fundamentals

  • DNS Core Concepts
  • DNS Record Types
  • The Resolution Process
  • Root Servers
  • TLD Servers
  • Recursive Resolver
  • Authoritative DNS
  • DNS Cache
  • TTL
  • Zone Files
  • DNS Security Weaknesses
  • DNS Attacks

πŸ› οΈ Technologies Used

Component Technology
DNS Server BIND9
Web Server Nginx
Operating System Ubuntu Server
Virtualization VMware Workstation
Attacker Machine Kali Linux
Victim Machine Windows 10

πŸ”₯ DNS Pentesting Modules

βœ… Information Gathering

  • DNS Enumeration
  • Subdomain Enumeration
  • Record Enumeration

βœ… Misconfiguration Testing

  • Zone Transfer (AXFR)
  • Open Recursive Resolver
  • DNS Cache Inspection
  • Weak DNS Configuration

βœ… Attack Demonstrations

  • DNS Enumeration & Reconnaissanc
  • DNS Amplification (Controlled Demonstration)
  • DNS Zone transfer
  • Dynamic DNS Update
  • DNS Hijacking Concepts

πŸ›‘οΈ Defensive Concepts

  • Restrict Zone Transfers
  • Disable Open Recursion
  • Response Rate Limiting (RRL)
  • DNSSEC Overview
  • Logging & Monitoring
  • Least Privilege Configuration

πŸ“‚ Project Structure

DN53CLab/

β”œβ”€β”€ Documentation/
β”‚    β”œβ”€β”€ DNS Fundamentals
β”‚    β”œβ”€β”€ DNS Attacks 
β”‚    └── Configuration/
β”‚        β”œβ”€β”€ Network Configuration
β”‚        β”œβ”€β”€ DNS Resolver/
β”‚        β”‚   β”œβ”€β”€ Open DNS Resolver Configuration
β”‚        β”‚   └── Multiple Bind9 Instance Configuration
β”‚        β”œβ”€β”€ Authoritative Server/
β”‚        β”‚   └── Authoritative Server Configuration
β”‚        β”œβ”€β”€ Webserver/
β”‚        β”‚   └── Webserver Configuration
β”‚        β”œβ”€β”€ Victim_Machine/
β”‚        β”‚   └── Windows 10 Configuration
β”‚        β”œβ”€β”€ Attacker_Machine/
β”‚        β”‚   └── Kali Linux Configuration
β”‚        └── Malicious Server Configuration
β”‚
β”œβ”€β”€ Inventory/
β”‚    β”œβ”€β”€ Diagrams
β”‚    └── Screenshots
β”‚
β”œβ”€β”€ Report/
β”‚    β”œβ”€β”€ DNS Reconnaisance & Enumeration
β”‚    β”œβ”€β”€ DNS Zone Transfer
β”‚    β”œβ”€β”€ DNS Amplification Attack
β”‚    β”œβ”€β”€ Dynamic DNS Update (DDNS)
β”‚    β”œβ”€β”€ DNS Hijacking
β”‚    └── Mitigations
β”‚
└── README.md

πŸ“– Learning Outcomes

By completing this lab you will understand:

βœ… How DNS works internally

βœ… How recursive and authoritative servers interact

βœ… How websites are resolved

βœ… How attackers enumerate DNS

βœ… How DNS misconfigurations occur

βœ… How common DNS attacks work

βœ… How organizations secure DNS infrastructure

πŸš€ Future Improvements

  • DNSSEC Implementation
  • Split DNS
  • Response Rate Limiting
  • Passive DNS Monitoring
  • DNS Logging Dashboard
  • Additional Attack Scenarios
  • Detection Engineering
  • Blue Team Monitoring

🀝 Contributing

Suggestions and improvements are always welcome.

Feel free to:

  • Open an Issue
  • Submit a Pull Request
  • Share feedback

License

This project is licensed under the Apache License 2.0.

You are welcome to use, study, modify, and redistribute this project in accordance with the license terms. If you create derivative works, please retain the original copyright notice, include the Apache License 2.0, and clearly indicate any modifications.

See the LICENSE file for full details.

Author

Incogn1mu5

About

A hands-on DNS penetration-testing lab built with BIND9 to explore DNS architecture, enumeration, misconfigurations, attacks, exploitation techniques, and security hardening.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages