テンポラリなネームサーバー. 設定ファイルなどは存在せず,起動時のコマンドライン引数のみで完結する簡易DNSです.
ACMEのDNS認証用に作ったやつです. APIがないネームサーバを使っている場合に_acme-challengeのNSレコードを適当なホストに向けておいて,そこで起動する想定. (dns_tmpdns.sh がacme.shから使えます)
go get -d
CGO_ENABLED=0 go build
./tmpdns -p 53 "hoge.example.com.:txt:hello! world" "fuga.example.com.:a:192.168.0.1"
./tmpdns -p 53 -z example.com. "hoge:txt:hello" "fuga:a:192.168.0.1"
(FQDNを示す .
の書き忘れに注意)
dokcer pull binzume/tmpdns
docker run --rm -p 53:53/udp --name tmpdns binzume/tmpdns -z example.com. "hoge:txt:hello" "fuga:a:192.168.0.1"
query sample:
dig fuga.example.com @localhost # 192.168.0.1
dig txt hoge.example.com @localhost # "hello"
- -p: port (default:53)
- -z: zone (default:.)
MIT License