Skip to content

Instantly share code, notes, and snippets.

@akoenig
Created March 3, 2012 20:32
Show Gist options
  • Save akoenig/1968061 to your computer and use it in GitHub Desktop.
Save akoenig/1968061 to your computer and use it in GitHub Desktop.
node.js talk - dns resolver
/*
* DNS-Resolver with node.js
*
* Author: André König (andre.koenig@gmail.com)
*
*/
"use strict";
var dns = require('dns');
dns.resolve('gtugs.org', function (err, address) {
console.log("Die IP-Adresse für gtugs.com lautet: " + address);
});
console.log('DNS-Resolve für gtugs.org ...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment