dns-header-parser/README.md

18 lines
705 B
Markdown
Raw Permalink Normal View History

2018-09-17 23:52:10 +00:00
# DNS Header Parsing in javascript
2017-09-24 00:49:27 +00:00
2018-09-17 23:52:10 +00:00
Sample code parsing dns headers in javascript. I wrote this at the request of a potential employer during the interview process. Not really a usuable module, but this was specifically what they wanted to see.
2017-09-24 00:49:27 +00:00
## ToDo
- [x] Import packet string into Arraybuffer
2017-09-27 21:17:06 +00:00
- [x] Parse the headers into a Javascript object
- [x] Test/Fix browser JS compatibility
To see the parsed result of the packet, clone the repo and :
2017-09-27 21:27:51 +00:00
```npm install && npm start```
2017-09-27 21:17:06 +00:00
2017-09-27 21:24:32 +00:00
To view in the browser, open `index.html` in your browser and look at the console output.
The raw packet that is parsed has also been saved as `./data.udp.bin`, if you would like to look at it to parse it some other way.
2017-09-24 00:49:27 +00:00