From df78e13ef2e07b81836b770808439577295a36f6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 6 Oct 2017 15:54:00 -0600 Subject: [PATCH] output udp type, show client examples with dig and netcat --- README.md | 13 +++++++++++++ bin/digd.js | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a1b213..06ef0d3 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,19 @@ digd.js --input digd.js --input ./examples/example.com.json ``` +### Testing + +```bash +# unix dig +dig @localhost example.com + +# dns-suite's dig.js +dig.js @localhost example.com + +# unix netcat +netcat -u 127.0.0.1 53 < ./samples/example.com.a.query.bin +``` + Options ------- diff --git a/bin/digd.js b/bin/digd.js index c1ee20e..c484c85 100755 --- a/bin/digd.js +++ b/bin/digd.js @@ -381,7 +381,7 @@ cli.main(function (args, cli) { console.log(''); console.log('Bound and Listening:'); - console.log(server.address().address + '#' + server.address().port); + console.log(server.address().address + '#' + server.address().port + ' (' + server.type + ')'); }; console.log('');