From 97cc770a2e2d1f9405070c07b32d0bad1e4bb3b2 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 30 Mar 2017 19:28:32 -0600 Subject: [PATCH] allow 'ANY' record --- bin/dig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dig.js b/bin/dig.js index 7227c3f..874866a 100755 --- a/bin/dig.js +++ b/bin/dig.js @@ -271,7 +271,7 @@ function request(query, opts) { cli.main(function (args, cli) { args.forEach(function (arg) { - if (-1 !== commonTypes.indexOf(arg.toUpperCase())) { + if (-1 !== commonTypes.concat([ 'ANY' ]).indexOf(arg.toUpperCase())) { if (cli.type) { console.error("'type' was specified more than once"); process.exit(1);