Created
March 3, 2012 20:32
-
-
Save akoenig/1968061 to your computer and use it in GitHub Desktop.
node.js talk - dns resolver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* DNS-Resolver with node.js | |
* | |
* Author: André König ([email protected]) | |
* | |
*/ | |
"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