Provide httpdns and showmyip services, written in golang.
364
Provide httpdns and showmyip services in golang. 提供 httpdns 和 showmyip 两种服务 in golang
| 端口 | 协议 | 请求 | 返回 |
|---|---|---|---|
| 1053 | http | /dns?d={$domain} | 字符串,该域名的ip地址 |
| 1053 | http | /myip | 字符串,请求者的IP |
| 1053 | http | /health | 字符串,"OK" |
| 1153 | tcp | 字符串类型,$domain + "\n" | 字符串,该域名的ip地址 |
| 1154 | tcp | 无 | 字符串类型,请求者的IP + '\n',并关闭连接 |
docker run -p 1053:1053 -p 1153-1154:1153-1154 tomasen/httpdns
Commited code must pass:
Content type
Image
Digest
sha256:61998e158…
Size
213.8 MB
Last updated
about 11 years ago
docker pull tomasen/httpdns