Gathering detailed insights and metrics for dns-node-dig
Gathering detailed insights and metrics for dns-node-dig
Gathering detailed insights and metrics for dns-node-dig
Gathering detailed insights and metrics for dns-node-dig
Use dig command (domain information grope) for DNS queries in node
npm install dns-node-dig
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
54 Commits
2 Forks
5 Branches
1 Contributors
Updated on Oct 13, 2020
Latest Version
0.2.15
Package Id
dns-node-dig@0.2.15
Unpacked Size
6.01 kB
Size
2.45 kB
File Count
3
NPM Version
6.11.3
Node Version
12.10.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Using native node dns to query complex DNS is a hustle. This is a simple wrapper for the unix/linux/macos dig command (domain information grope). Output is parsed to JSON.
npm i node-dig-dns -S
dig([args], (options))
You can add all args from dig to the args array.
dig(['google.com', 'ANY'])
.then((result) => {
console.log(result)
})
.catch((err) => {
console.log('Error:', err);
});
Set custom DNS server:
dig(['@8.8.8.4','google.com', 'ANY'])
.then((result) => {
console.log(result)
})
.catch((err) => {
console.log('Error:', err);
});
Optional parameters:
The dig result is parsed and return in JSON:
{ question: [ [ ';google.com.', 'IN', 'ANY' ] ],
answer:
[ { domain: 'google.com.',
type: 'A',
ttl: '268',
class: 'IN',
value: '216.58.211.110' },
{ domain: 'google.com.',
type: 'AAAA',
ttl: '268',
class: 'IN',
value: '2a00:1450:400e:809::200e' },
{ domain: 'google.com.',
type: 'MX',
ttl: '568',
class: 'IN',
value: '30 alt2.aspmx.l.google.com.' },
...
],
time: 41,
server: '8.8.8.8#53(8.8.8.8)',
datetime: 'Mon Oct 9 23:56:37 2017',
size: 373 }
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More