Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

azuki-trusty / azk   deb

Repository URL to install this package:

/ usr / lib / azk / node_modules / dns-sync

  ..
  test
  lib
  node_modules
  scripts
  Makefile
  README.md
  .travis.yml
  index.js
  LICENSE
  package.json
  .npmignore
  .jshintrc
 

node-dns-sync

Build Status

Sync/Blocking DNS resolve. Main usecase is in node server startup.

How to Use

var dnsSync = require('dns-sync');

console.log(dnsSync.resolve('www.paypal.com'));     //should return the IP address
console.log(dnsSync.resolve('www.yahoo.com'));
console.log(dnsSync.resolve('www.non-host.something')); //should return null