zdns is a Zig wrapper around ldns.
Only part of the API is currently wrapped, but it is enough for reading a zone file.
- Install
libldns
. - Add the following to your
build.zig
(you may need to adjust the path):step.linkLibC(); step.linkSystemLibrary("ldns"); step.addPackagePath("zdns", "../zdns/src/zdns.zig");
- Import with
@import("zdns")
.