Registry / networking / libudns

libudns

JSON →
library0.4vcpkgunverified

The DNS library, udns, implements thread-safe stub DNS resolver functionality, which may be used both traditional, syncronous way and asyncronously, with application-supplied event loop.

vcpkg install libudns
INSTALL
IMPORT
SIG · LIBUDNS
L
libudns
networkingcppv0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

udns.h
#include <udns.h>

Initialize DNS resolver and submit an A record query

#include <udns.h> #include <iostream> int main() { dns_init(nullptr, 0); struct dns_query *q = dns_submit_a4("example.com", 0, nullptr, nullptr); // Wait for result with dns_ioevent() or dns_status() dns_free(q); return 0; }
Debug
Known issues
gotchaRequires manual event loop integration for asynchronous usage
fix
Call dns_ioevent() in your event loop when socket is readable
affects: *
Upgrade
Version history
0.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

libudns — pip install libudns · libregistry