Issue #2. Handle CNAME responses
[captive-validator.git] / src / com / verisign / tat / dnssec / ValUtils.java
index e9246f5..44cc1df 100644 (file)
@@ -65,7 +65,8 @@ public class ValUtils {
         }
 
         // If rcode isn't NXDOMAIN or NOERROR, it is a throwaway response.
-        if (m.getRcode() != Rcode.NOERROR) {
+        // E.g., SERVFAIL, FORMERR, REFUSED
+        if (m.getRcode() != Rcode.NOERROR && m.getRcode() != Rcode.NXDOMAIN) {
             return ResponseType.THROWAWAY;
         }