Your best bet is to use a pre-packaged setup for your operating system. Newer Linux distributions may have it available via the standard package repositories, so check that first! Known public packaged builds:
RPM-based distros: There appears to be some packaging work done for RPM at OpenMandriva: https://abf.io/openmandriva/gdnsd. Those packages may be usable directly, or at least the specfile work may be useful for easy porting!