This is a (so far) experimental Golang implementation of the
pgeodns server powering the NTP
Pool system.
Run go get
to install the Go dependencies. You will also need the
GeoIP C library.
Download some sample configuration files:
mkdir dns
curl -o dns/ntppool.org.json http:https://tmp.askask.com/2012/08/dns/ntppool.org.json.big
curl -o dns/example.com.json http:https://tmp.askask.com/2012/08/dns/example.com.json
go run *.go -run -log -interface 127.1 -port 8053
To test the responses run
dig -t a ntppool.org @127.1 -p 8053