dns relative tools like lookup or wireformat converter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Antoine 46fd83b798
remove redondant variable declaration
пре 11 месеци
bin Add wireformat binary for format dns ask answer пре 11 месеци
cmd remove redondant variable declaration пре 11 месеци
internal use internal check function for error checking пре 11 месеци
.gitignore Add wireformat binary for format dns ask answer пре 11 месеци
LICENSE Initial commit пре 11 месеци
Makefile feat : add http dns resolver with cloudflare пре 11 месеци
go.mod use internal check function for error checking пре 11 месеци
go.sum Add wireformat binary for format dns ask answer пре 11 месеци
readme.md feat : add http dns resolver with cloudflare пре 11 месеци

readme.md

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 -