summaryrefslogtreecommitdiffstats
path: root/contrib/librdns/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/librdns/util.c')
-rw-r--r--contrib/librdns/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c
index 0f701f1bd..4a44fe0d7 100644
--- a/contrib/librdns/util.c
+++ b/contrib/librdns/util.c
@@ -302,6 +302,9 @@ rdns_rcode_fromstr (const char *str)
else if (strcmp (str, "servfail") == 0) {
return RDNS_RC_SERVFAIL;
}
+ else if (strcmp (str, "nxdomain") == 0) {
+ return RDNS_RC_NXDOMAIN;
+ }
else if (strcmp (str, "notimp") == 0) {
return RDNS_RC_NOTIMP;
}