Fast, lightweight, easy-to-extend, easy-to-test, pure JavaScript (ES5.1) implementation for DNS / mDNS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

61 lines
1.5 KiB

<!DOCTYPE html>
<html>
<head>
<title>DNS Parser Demo</title>
<link rel="stylesheet" type="text/css" href="demo.css">
</head>
<body>
<!--
This demo is meant to have 3 feilds that accept base-64, hex and array values the user
can copy in, and a button that will call the dns parser to parse the input and display
the output in a seperate field.
-->
<!-- run `serve-https` to test at https://localhost.daplie.me:8443/demo.html -->
<!-- put form here -->
<form action="inputdata">
base64:<br>
<input type="textarea" name="base64" value="">
<br>
urlsafe base64:<br>
<input type="textarea" name="urlsafe base64" value="">
<br>
hex:<br>
<input type="textarea" name="hex" value="">
<br>
<!--
JSON (Uint8Array):<br>
<output type="text" name="hex" value="">
<br>-->
<!-- I added some of the library files for you -->
<script src="./dns.types.js"></script>
<script src="./dns.classes.js"></script>
<script src="./parser/type.a.js"></script>
<script src="./dns.rdata.parse.js"></script>
<script src="./dns.unpack-labels.js"></script>
<script src="./dns.parser.js"></script>
<script src="./packer/type.a.js"></script>
<script src="./dns.rdata.pack.js"></script>
<script src="./dns.packer.js"></script>
<script src="./dns.js"></script>
<script src="./browser.js"></script>
<!-- put jquery here -->
<!-- application code in here -->
</body>
</html>