Octoberfest7/DNS_Tunneling ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python tool that helps generate DNS zone files for a lab demo of DNS based file transfer.

I want to be able to take a text or binary file, split it into chunks, encode it so it can live in DNS records, and then write out a zone file that I can load into a test DNS server. It should also have a simple way to read those records back and rebuild the original file on the client side, using only built in Windows friendly tools if possible.

Make it practical for a controlled lab environment, with clear comments and easy to change settings like domain name, chunk size, and record type. If you need to check current docs or best practices, look them up online. Add a short example so I can try it quickly on a test machine.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab