dns relative tools like lookup or wireformat converter
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Antoine 46fd83b798
remove redondant variable declaration
5 meses atrás
bin Add wireformat binary for format dns ask answer 5 meses atrás
cmd remove redondant variable declaration 5 meses atrás
internal use internal check function for error checking 5 meses atrás
.gitignore Add wireformat binary for format dns ask answer 5 meses atrás
LICENSE Initial commit 5 meses atrás
Makefile feat : add http dns resolver with cloudflare 5 meses atrás
go.mod use internal check function for error checking 5 meses atrás
go.sum Add wireformat binary for format dns ask answer 5 meses atrás
readme.md feat : add http dns resolver with cloudflare 5 meses atrás

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 -