dns relative tools like lookup or wireformat converter
Go to file
2020-11-09 14:01:14 +01:00
bin Add wireformat binary for format dns ask answer 2020-11-09 00:12:15 +01:00
cmd remove redondant variable declaration 2020-11-09 14:01:14 +01:00
internal use internal check function for error checking 2020-11-09 03:08:22 +01:00
.gitignore Add wireformat binary for format dns ask answer 2020-11-09 00:12:15 +01:00
go.mod use internal check function for error checking 2020-11-09 03:08:22 +01:00
go.sum Add wireformat binary for format dns ask answer 2020-11-09 00:12:15 +01:00
LICENSE Initial commit 2020-11-08 18:06:09 +00:00
Makefile feat : add http dns resolver with cloudflare 2020-11-09 03:43:15 +01:00
readme.md feat : add http dns resolver with cloudflare 2020-11-09 03:43:15 +01:00

dns-tools

dns relative tools like lookup or wireformat converter

build

make wireformat
make http-resolver 

run

With get resolution

echo -n 'q80BAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB' | base64 -d | curl -sH 'content-type: application/dns-message' --data-binary @- https://cloudflare-dns.com/dns-query -o - | ./bin/wireformat -f -

With post resolution

curl -s -H accept: application/dns-message https://cloudflare-dns.com/dns-query?dns=q80BAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB | ./bin/wireformat -f -

Wireformat encode and decode

./bin/wireformat -s 'www.example.com' | ./bin/wireformat -f -

echo 'www.example.com' | ./bin/wireformat | ./bin/wireformat -f -

Dns query and wireformat encode/decode

echo 'www.google.com' | ./bin/wireformat -s - | ./bin/http-resolver | ./bin/wireformat -f -