Skip to content

Instantly share code, notes, and snippets.

@sajal
Created March 27, 2015 15:43
Show Gist options
  • Save sajal/4ecb717a69cd2902fca4 to your computer and use it in GitHub Desktop.
Save sajal/4ecb717a69cd2902fca4 to your computer and use it in GitHub Desktop.
Node.js example for RIPE ATLAS DNS result
var Packet = require('native-dns-packet');
var buf = new Buffer("f2+AgAABAAEAAAAAA3d3dwRyaXBlA25ldAAAAQABwAwAAQABAAA3+gAEwQAGiw==", 'base64');
var p = Packet.parse(buf)
console.log(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment