Native return DNS NXDOMAIN instead of local host

This commit is contained in:
M66B 2016-01-26 19:05:39 +01:00
parent 2e78edc183
commit 5e09b78593
1 changed files with 5 additions and 0 deletions

View File

@ -1337,6 +1337,11 @@ int check_domain(const struct arguments *args, const struct udp_session *u,
else
inet_pton(AF_INET6, "::1", addr);
// Experiment
rlen = datalen;
rh->rcode = 3; // NXDOMAIN
rh->ans_count = 0;
// Send response
ssize_t res = write_udp(args, u, response, rlen);