Skip to content

Commit

Permalink
- Fix that NXDOMAIN for _probe.uk.uk is deemed allright.
Browse files Browse the repository at this point in the history
git-svn-id: file:///svn/dnssec-trigger/trunk@764 14dc9c71-5cc2-e011-b339-0019d10b89f4
  • Loading branch information
wcawijngaards committed Feb 26, 2018
1 parent 76b3496 commit 871f364
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog
@@ -1,3 +1,6 @@
26 February 2018: Wouter
- Fix that NXDOMAIN for _probe.uk.uk is deemed allright.

23 February 2018: Wouter
- port of dnssec-trigger-script to libnm.

Expand Down
3 changes: 2 additions & 1 deletion riggerd/probe.c
Expand Up @@ -490,7 +490,8 @@ outq_check_packet(struct outq* outq, uint8_t* wire, size_t len)
}

/* does DNS work? */
if(ldns_pkt_get_rcode(p) != LDNS_RCODE_NOERROR) {
if(ldns_pkt_get_rcode(p) != LDNS_RCODE_NOERROR &&
ldns_pkt_get_rcode(p) != LDNS_RCODE_NXDOMAIN) {
char* r = ldns_pkt_rcode2str(ldns_pkt_get_rcode(p));
snprintf(reason, sizeof(reason), "no answer, %s",
r?r:"(out of memory)");
Expand Down

0 comments on commit 871f364

Please sign in to comment.