Socket
Socket
Sign inDemoInstall

bns

Package Overview
Dependencies
15
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

bin/dig.js

57

package.json
{
"name": "bns",
"version": "0.0.0",
"description": "DNS wrapper for node.js",
"version": "0.0.1",
"description": "DNS bike-shed",
"keywords": [
"bns",
"dns",
"domain",
"getaddrinfo",
"lookup",
"name",
"resolution"
"udp",
"tcp"
],
"license": "MIT",
"repository": "git://github.com/bcoin-org/bdns.git",
"homepage": "https://github.com/bcoin-org/bdns",
"repository": "git://github.com/bcoin-org/bns.git",
"homepage": "https://github.com/bcoin-org/bns",
"bugs": {
"url": "https://github.com/bcoin-org/bdns/issues"
"url": "https://github.com/bcoin-org/bns/issues"
},
"author": "Christopher Jeffrey <chjjeffrey@gmail.com>",
"main": "./lib/bdns.js",
"main": "./lib/bns.js",
"bin": {
"dig.js": "./bin/dig.js",
"rdig.js": "./bin/rdig.js"
},
"scripts": {
"browserify": "browserify -s bdns lib/bdns.js | uglifyjs -c > bdns.js",
"clean": "rm -f bdns.js",
"lint": "eslint lib/ test/ || exit 0",
"browserify": "browserify -s bns lib/bns.js | uglifyjs -c > bns.js",
"clean": "rm -f bns.js",
"lint": "eslint bin/ lib/ test/ || exit 0",
"test": "mocha --reporter spec test/*-test.js",
"webpack": "webpack --config webpack.config.js"
},
"dependencies": {
"bheep": "~0.0.1",
"binet": "~0.1.0",
"bs32": "~0.0.1",
"btcp": "~0.0.2",
"budp": "~0.0.2",
"bufio": "~0.0.3",
"elliptic": "~6.4.0"
},
"devDependencies": {
"babelify": "^7.3.0",
"babelify": "^8.0.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
"browserify": "^14.5.0",
"eslint": "^4.9.0",
"mocha": "^4.0.1",
"uglifyjs-webpack-plugin": "^1.0.0-beta.3",
"uglify-es": "^3.1.3",
"webpack": "^3.8.1"
"browserify": "^16.1.1",
"eslint": "^4.18.2",
"mocha": "^5.0.4",
"uglifyjs-webpack-plugin": "^1.2.3",
"uglify-es": "^3.3.9",
"webpack": "^4.1.1"
},

@@ -44,3 +55,3 @@ "engines": {

"browser": {
"./lib/dns": "./lib/dns-browser.js"
"./lib/crypto": "./lib/crypto.js"
},

@@ -47,0 +58,0 @@ "browserify": {

@@ -1,9 +0,51 @@

# bdns
# bns
DNS wrapper for node.js.
DNS library and recursive resolver for node.js, in pure javascript.
## Example
``` bash
$ ./bin/rdig.js google.com
Querying google.com./255.
Verifying zone change to [.]
Checking signatures...
Validated DNSSEC signatures.
Switching authority: [192.41.162.30] (c.gtld-servers.net.)
Switching zone: [.->com.]
Verifying zone change to [com.]
Checking signatures...
Validated DNSSEC signatures.
Switching authority: [216.239.36.10] (ns3.google.com.)
Switching zone: [com.->google.com.]
Trust chain broken due to zone change.
Traversed zones: ., com., google.com. for google.com./255.
Finishing resolving google.com./255 (hops=2).
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 0
;; flags: qr ra, QUERY: 1, ANSWER: 15, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
; google.com. IN ANY
;; ANSWER SECTION:
google.com. 300 IN A 172.217.0.46
google.com. 300 IN AAAA 2607:f8b0:4005:802::200e
google.com. 300 IN TXT "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 345600 IN NS ns1.google.com.
google.com. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 345600 IN NS ns3.google.com.
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 86400 IN CAA 0 issue "pki.goog"
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
google.com. 60 IN SOA ns1.google.com. dns-admin.google.com. 188478103 900 900 1800 60
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 345600 IN NS ns2.google.com.
google.com. 345600 IN NS ns4.google.com.
```
## Usage
``` js
const dns = require('bdns');
const bns = require('bns');
```

@@ -10,0 +52,0 @@

@@ -8,6 +8,6 @@ 'use strict';

entry: {
'bdns': './lib/bdns'
'bns': './lib/bns'
},
output: {
library: 'bdns',
library: 'bns',
libraryTarget: 'umd',

@@ -14,0 +14,0 @@ path: __dirname,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc