descriptionnone
repository URLhttps://github.com/rofl0r/firedns.git
ownerretnyg@gmx.net
last changeWed, 7 Dec 2022 19:52:10 +0000 (7 19:52 +0000)
last refreshSat, 27 Apr 2024 08:27:28 +0000 (27 10:27 +0200)
content tags
add:
README
FireDNS Library
---------------
(c) 2002 Ian Gulliver, (C) 2011, 2013 rofl0r

GNU Public License, Version 2 or 3 at the users choice.

with written permission of 2013-12-17 by Ian Gulliver:

"I hereby grant a public, irrevocable license to use any and all versions of
 the firedns library under the terms of the GNU Public License version 2 or
 version 3, at the option of the user."

See GPL for more details.

the code written by rofl0r is dual-licensed under LGPL 2.1+,
and GPL2+.

libfiredns 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.  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.

this version here differs from the original in several ways:
1) doesn't depend on firestring and firemake
2) no global state
3) factored and optimized for small static linkage
4) can be combined with libulz for even smaller static linkage (optional)
5) no dynamic allocation to avoid linking in malloc implementations
   (the code in firedns_add_servers_from_resolv_conf(), unless USE_LIBULZ
    is defined, uses FILE* based stdio functions though which cannot be
    implemented without malloc().
    if you want to avoid the dependency, you can add your own servers
    instead of parsing resolv.conf, for example 8.8.8.8)
6) allows to define the used nameservers manually instead of relying on
   an existing resolv.conf.

when to use it ?
- if you feel your libc's DNS implementation is too slow for you,
- if you feel your libc's DNS implementation pulls in too much code 
  into static binaries,
- if you need additional functionality such as MX records,
...

compilation:
there are 2 ways to build firedns,
- using GNU make
  just type "make" to compile and "make prefix=/usr/local DESTDIR=test install"
  to install.
  if you want to add custom CFLAGS, put them into a file called config.mak
  for example:
  CFLAGS += -DUSE_LIBULZ
  LDFLAGS = -static -lulz

#  WARNING: currently some stuff of the library (including in the headers) is
#  only compiled in when -DHAVE_IPV6 is in CFLAGS!
#  programs linked against firedns require to use the same setting.
#  if HAVE_IPV6 is used in the one, but not the other, it will crash
#  (see issue #1).
#  the library was heavily optimized for minimal linkage (in the order of 1-2KB
#  added for a program using it), and is designed to be used as source via RcB2.

- using RcB2 ( https://github.com/rofl0r/rcb2 )
  the code has the necessary RcB2 tags so RcB2 finds all required TUs
  automatically when pointing it at the main.c file.


contact:
Quote from original author:
If you have questions or comments, you can reach me at
ian@penguinhosting.net.

whether that email address still works, is another question.
for this project, use the github issue tracker for communication.
shortlog
2022-12-07 rofl0rfiredns.h: always make ipv6 members available in state... master
2019-04-12 rofl0rupdate README
2019-04-12 rofl0radd support for RcB2
2013-12-18 rofl0rchange LICENSE to GPL2 *or* GPL3 with original author...
2013-12-14 rofl0rREADME: add compilation notes
2013-12-14 rofl0rMakefile: compile with HAVE_IPV6 by default
2013-12-14 rofl0rtester.c: add some updated testhosts, as most of the...
2013-12-14 rofl0rcleanup Makefile
2013-12-14 rofl0rfiredns_getname6: fix reverse ipv6 lookup
2013-12-14 rofl0rfix 2 compilation errors when HAVE_IPV6 is used
2013-12-14 rofl0rfiredns_add_query: whitespace cleanup
2013-12-14 rofl0rbenchmark: 10000 passes is a bit overkill
2013-12-14 rofl0rfiredns.h: shrink size of connection struct by 4 bytes
2013-12-14 rofl0rfiredns.h: remove redundant in6_addr definition
2013-12-14 rofl0rfiredns_ntoa6: fix strict aliasing violation
2013-12-14 rofl0rexamples/fdnsip: optional libulz support for size measu...
...
heads
16 months ago master