Provide httpdns and show-my-ip services in golang.
port | scheme | request | response |
---|---|---|---|
1053 | http | /dns?d={$domain} | type: string, ip address of $domain |
1053 | http | /myip | type: string, ip address of client |
1053 | http | /health | type: string, "OK" indicate health |
1153 | tcp | type: string, $domain + "\n" | type: string, ip address of $domain |
1154 | tcp | not required | type: string,ip address of client + '\n' |
docker run -p 1053:1053 -p 1153-1154:1153-1154 tomasen/httpdns
Commited code must pass:
- support set record manualy with ttl expiration time
- support location optimaized result
- more test cases
- return carriar & geo info