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('');