Skip to content

Instantly share code, notes, and snippets.

@vasturiano
Last active August 11, 2016 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasturiano/bfd6538066933723cdb6 to your computer and use it in GitHub Desktop.
Save vasturiano/bfd6538066933723cdb6 to your computer and use it in GitHub Desktop.
DNS Chain
height: 750
border: no

DNS Chain runs a recursive sequence of DNS forward (A/AAAA) and reverse (PTR) records, starting form either a hostname or an IP address. The relations are represented graphically in a node-link graph. Enter a new hostname/IP address to re-render the diagram.

<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
.stat-widget {
margin: 5px;
padding: 10px;
border: 1px solid lightgrey;
border-radius: 5px;
}
</style>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="https://stat.ripe.net/widgets/widget_api.js"></script>
</head>
<body>
<div class="statwdgtauto"></div>
<script>
ripestat.init(
"dns-chain",
{"resource":"bl.ocks.org"},
null,
{
"show_controls":"yes",
"size": window.innerHeight*.9,
"disable":[
'feedback',
'maximize',
'container',
'logo'
]}
);
$('.stat-widget').css('margin-left', (window.innerWidth-$('.stat-widget').width())/2);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment