output udp type, show client examples with dig and netcat

This commit is contained in:
AJ ONeal 2017-10-06 15:54:00 -06:00
parent ff963a76ec
commit df78e13ef2
2 changed files with 14 additions and 1 deletions

View File

@ -46,6 +46,19 @@ digd.js --input <path/to/file.json>
digd.js --input ./examples/example.com.json 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 Options
------- -------

View File

@ -381,7 +381,7 @@ cli.main(function (args, cli) {
console.log(''); console.log('');
console.log('Bound and Listening:'); 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(''); console.log('');