resolv: Implement faking A and AAAA DNS replies
authorJakub Hrozek <jakub.hrozek@gmail.com>
Sun, 14 Sep 2014 09:12:56 +0000 (11:12 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 21 Oct 2014 11:39:39 +0000 (13:39 +0200)
commit5007ebc33f36e1c719b15655959105854b944a6f
treec958827dd9a38c683b9e9eed42620d6304e5ad2d
parent558ee768de3d6464655a9fa78a97738c802dbca5
resolv: Implement faking A and AAAA DNS replies

Adds the possibility of faking a DNS reply based on a hosts-like file.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
doc/resolv_wrapper.1.txt
src/resolv_wrapper.c
tests/CMakeLists.txt
tests/fake_hosts.in [new file with mode: 0644]
tests/test_dns_fake.c [new file with mode: 0644]