cmake: Rely on the cmake config cmocka provides.
tests: read the return value of kill() before checking it
Add faking DNS replies

Adds the possibility of faking a DNS reply.