tests: Add a simple DNS server
authorJakub Hrozek <jakub.hrozek@gmail.com>
Mon, 8 Sep 2014 07:48:17 +0000 (09:48 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 21 Oct 2014 11:39:39 +0000 (13:39 +0200)
commit542ba91adf81eb49e0405fe09cf0323d2b853482
tree124ee61b859772af182b63ba6e4380decd7f7e71
parent0193fdf664461ba169c8c5fd7c37b73e8cd14453
tests: Add a simple DNS server

This DNS server will be usable for testing. Currently only supports A
records.

The server responds to any A query with the value of RWRAP_TEST_A_REC
environment variable. If undefined, the server always replies with
127.0.10.10.

Please note the server does *not* perform many security checks and is
completely unsuitable outside a test suite! Check out servers like
dnsmasq for anything more complex.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
ConfigureChecks.cmake
tests/CMakeLists.txt
tests/dns_srv.c [new file with mode: 0644]