dns lab via docker containers
Go to file
Lockszmith (cs-dbg@VAST) aeb96a02a7 Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
README.md Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
cleanup-dnslab.sh Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
client_Dockerfile Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
compose.yaml Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
db.example.com Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
db.sub.example.com Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
dnslab Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
maindns_named.conf Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
start-dnslab.sh Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00
subdns_named.conf Initial commit, see README.md for details 2025-05-02 21:24:43 +00:00

README.md

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