|
NAMElibfiredns - library for asynchronous DNS requestsSYNOPSIS#include <firedns.h>-lfiredns DESCRIPTIONlibfiredns is a library for handling asynchronous DNS requests. It provides a very simple interface for sending requests and parsing reponses, as well as low-timeout blocking functions. It can also be compiled to override the BIND/LIBC functions with its alternative implementations. libfiredns functions have much lower timeouts than the stock functions and tend to be faster because they send requests to all configured system nameservers at the same time.Any function ending in "_r" is reentrant; it is safe to be used from threaded programs, and it returns a dynamically allocated buffer which must be free()'d later. Any function ending in "_s" takes a buffer as a parameter that it will write to. Non-network functions:
Non-blocking functions:
Blocking functions:
Miscellaneous functions:
FILES/usr/local/include/firedns.h/usr/local/lib/libfiredns.so /usr/local/lib/libfiredns.a /usr/local/etc/firedns.conf /etc/resolv.conf BUGSThis used to say:FireDNS is very network unfriendly. It sends queries to all nameservers in /usr/local/etc/firedns.conf or (fallback) /etc/resolv.conf at the same time. This loads the nameservers and the network much more than existing implementations but tends to get responses much faster. However, it seems that the network usage is well worth the 10 - 15% speed increase (in ideal situations) that this program can provide. If a primary nameserver is down, this speed increase is > 10000%. AUTHORIan Gulliver <ian@penguinhosting.net>
Visit the GSP FreeBSD Man Page Interface. |