Add .gitignore.

Signed-off-by: Andreas Schneider <asn@samba.org>
cmake: Set initial version number.

Signed-off-by: Andreas Schneider <asn@samba.org>
cmake: Check and link dl library.

Signed-off-by: Andreas Schneider <asn@samba.org>
cmake: Fix res_nquery and res_nsearch checks.

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Add support for res_ninit().

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Add support for res_nclose().

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Add support for res_nquery().

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Add support for res_nsearch().

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Add support to read a resolv.conf.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
rwrap: Fix loading libresolv on BSD.

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Disalbe IPv6 support on BSD.

The _ext structure is opaque on BSD, so we can't access its elements.

Signed-off-by: Andreas Schneider <asn@samba.org>
rwrap: Skip extra name servers

glibc only supports 3 name servers. When libc encounters any extra
entries, it just skips them. We should do the same.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
tests: Add a test for parsing resolv.conf

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
doc: Update the manpage.

Signed-off-by: Andreas Schneider <asn@samba.org>
Add TODO file.

Signed-off-by: Andreas Schneider <asn@samba.org>
tests: Use standard function name
tests: Fix test_res_init on platforms with no v6 nsaddrs

On platforms that dont support IPv6, the v6 address is skipped and we
end up reading three v4 addresses.
rwrap: OS X uses a different symbol prefix
rwrap: NOSUBMIT: RTLD_NEXT on Mac is broken
tests WIP: Add a simple DNS server