dns relative tools like lookup or wireformat converter
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Antoine 46fd83b798
remove redondant variable declaration
5ヶ月前
bin Add wireformat binary for format dns ask answer 5ヶ月前
cmd remove redondant variable declaration 5ヶ月前
internal use internal check function for error checking 5ヶ月前
.gitignore Add wireformat binary for format dns ask answer 5ヶ月前
LICENSE Initial commit 5ヶ月前
Makefile feat : add http dns resolver with cloudflare 5ヶ月前
go.mod use internal check function for error checking 5ヶ月前
go.sum Add wireformat binary for format dns ask answer 5ヶ月前
readme.md feat : add http dns resolver with cloudflare 5ヶ月前

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 -