GitHub - spc476/SPCDNS: An easy to use DNS library with C and Lua bindings
github.com·1d
🌐DNS
Preview
Report Post
SPCDNS: The sane DNS encoding/decoding library

SPCDNS implements a simple yet sane API to encode DNS queries and to decode
DNS replies.  The library (v2.0.0) currently supports the encoding and
decoding of 30 DNS resource records, which is more than just about all other
DNS resolving libraries I've seen (c-ares, udns, adns, libdns and djbdns
[1]).

SPCDNS is *NOT* a general purpose DNS resolving library (although code is
provided to make DNS queries, it is simple and fairly stupid).  This code
exists to provide a simple method of encoding and decoding the DNS protocol
and thus the network side of things is a bit lacking I'll admit.  But that
is beyond what I wanted for this project anyway.

In the "src/" directory you'll find the following:

dns.h

Defines the various DNS RR types, a ...

Similar Posts

Loading similar posts...