The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...

Dive deep into modern systems programming with this comprehensive Zig bundle. Learn the language from the ground up, build a production-quality recursive DNS resolver from first principles, and explore advanced cybersecurity through offensive and defensive tooling. Packed with real-world projects, detailed explanations, and practical code, this collection is designed for developers who want to understand how software works beneath the surface and build high-performance systems with confidence.
Bought separately
$87.00
Minimum price
$45.00
$59.00
About the Bundle
Master modern systems programming and network infrastructure with this comprehensive collection of three in-depth books focused on Zig. Whether you're a systems programmer, network engineer, security researcher, or an experienced developer looking to expand your low-level programming skills, this bundle provides a practical, project-driven path from language fundamentals to production-grade networking and advanced cybersecurity applications.
You'll begin with Zig in Depth, a complete guide to the Zig programming language that covers everything from core syntax and memory management to compile-time programming, concurrency, and seamless C interoperability. Through detailed explanations and runnable examples, you'll learn not just how Zig works, but why its design enables developers to build software that is both efficient and predictable.
Next, put those skills into practice with Recursive DNS in Zig, where you'll build a high-performance recursive DNS resolver entirely from first principles. Rather than relying on existing libraries, you'll implement every major component yourself—from packet parsing and transport protocols to recursive resolution, caching, EDNS(0), DNSSEC fundamentals, concurrent data structures, performance optimization, fuzz testing, and production deployment. By the end, you'll have both a production-quality resolver and a deep understanding of one of the Internet's most critical protocols.
Finally, BlackHat Zig explores the intersection of Zig and cybersecurity. Covering offensive security, exploit development, reverse engineering, network tooling, kernel instrumentation, malware analysis, and defensive engineering, the book demonstrates how Zig's explicit memory management, compile-time metaprogramming, and low-level control make it exceptionally well suited for modern security research. Throughout, the material emphasizes ethical learning, helping readers understand attack techniques in order to build stronger defenses and more secure systems.
Together, these three books provide more than a language tutorial—they offer a complete journey into modern systems programming, networking, and cybersecurity through the lens of Zig. From mastering the language itself to building Internet infrastructure and developing advanced security tools, you'll gain the knowledge and practical experience needed to create high-performance software with confidence.
About the Books
Every time you visit a website, send an email, or stream a video, the Domain Name System translates human-readable names into machine addresses. DNS is the internet's most critical infrastructure, yet most developers never look beneath the surface of a single library call. This book changes that. You will build a complete, production-quality recursive DNS resolver in Zig from zero to deployment, learning every layer along the way: wire-format packet parsing, UDP and TCP transport, iterative resolution against root servers, caching with TTL management, EDNS(0) extensions, DNSSEC validation fundamentals, security hardening against cache poisoning and amplification attacks, lock-free concurrent data structures, event-driven I/O, performance profiling, fuzzing, and production deployment. By the end, you will have a fully working recursive resolver and a deep understanding of one of the internet's most important protocols.
Zig is a systems programming language that prioritizes clarity, safety, and performance by eliminating hidden control flow and hidden memory allocations. This book takes you from the fundamentals of Zig's design philosophy through every core language feature, from types and control flow to comptime programming, memory management, concurrency, and C interoperability. Every concept is explained with complete, runnable code examples and in-depth analysis of how the code works, why specific language features are used, and when to apply them. Whether you are coming from C, C++, Rust, or any other systems language, this book gives you the knowledge to write idiomatic Zig code for real-world applications.
This book explores how Zig, a modern systems programming language focused on zero-cost abstractions, compile-time metaprogramming, explicit memory management, and seamless C interoperability, can be applied across a wide range of cybersecurity disciplines. Topics include exploit development, reverse engineering, network security tooling, red team tradecraft, kernel instrumentation, malware analysis, and defensive security engineering.
The chapters progress from core language concepts to increasingly advanced security applications, combining practical explanations with real-world examples, case studies, and hands-on projects. Along the way, readers will learn how Zig's emphasis on performance, predictability, and low-level control makes it a strong fit for security-focused development.
The book takes an ethical and educational approach throughout. The goal is to understand modern threats and defensive techniques by building and studying the tools used to analyze, detect, and respond to security challenges.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.