dns lab via docker containers
Find a file
2025-04-26 01:26:21 +03:00
cleanup-dnslab.sh =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
client_Dockerfile =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
compose.yaml =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
db.example.com =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
db.sub.example.com =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
dnslab =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
maindns_named.conf =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
README.md =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
start-dnslab.sh =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00
subdns_named.conf =Initial commit, see README.md for details 2025-04-26 01:26:21 +03:00

Docker DNS Lab

flowchart TD
  client["client<br/>172.20.0.100"]
  subgraph main["example.com"]
    maindns[(maindns<br/>ns1.example.com<br/>172.20.0.10)]
    subgraph sub["sub.example.com"]
      subdns[(subdns<br/>ns1.sub.example.com<br/>172.20.0.20)]
    end
  end

  client -->|"DNS"| maindns
  maindns -->|"delegate:sub"| subdns

Running

#start the containers
./start-dnslab.sh

# do your tests
./dnslab dig ns1.example.com
./dnslab dig ns1.sub.example.com

./dnslab ip -br a

Cleaning up

./cleanup-dnslab.sh