From f3105971a47448b6d1cf87daa889a0056bc10c79 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 2 Nov 2017 13:08:23 -0600 Subject: [PATCH] fix vanity NS check --- lib/dns-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns-store.js b/lib/dns-store.js index be01be4..143ef4d 100644 --- a/lib/dns-store.js +++ b/lib/dns-store.js @@ -407,7 +407,7 @@ module.exports.query = function (input, query, cb) { console.log("It's NS"); // If it's a vanity NS, it's not a valid NS for lookup - if (-1 !== db.primaryNameservers.indexOf(r.data.toLowerCase())) { + if (-1 === db.primaryNameservers.indexOf(r.data.toLowerCase())) { console.log("It's a vanity NS"); return false; }