First create a folder mkdir /dns
Then run:
docker run -d -p 53:53 -p 53:53/udp -v /dns:/opt/geodns/dns coocood/geodns /opt/geodns/geodns.
Put zone files in /dns.
Zone file is json formatted, file name looks like "deployiotest.com.json", it's content looks like:
{
"serial":1394372421,
"ttl": 390,
"targeting": "country continent @ regiongroup region asn",
"data":{
"":{
"ns": [ "ns1.deploy.io", "ns2.deploy.io" ],
"a":[
[
"107.170.45.174",
"1000"
],
[
"128.199.216.96",
"1000"
],
[
"107.170.251.75",
"1000"
],
[
"188.226.185.173",
"1000"
]
]
},
"www":{
"alias": ""
},
"www.us-west":{
"cname": "test-sfo-do.deploy.io."
},
"www.europe":{
"cname": "test-ams-do.deploy.io."
},
"www.asia":{
"cname": "test-sin-do.deploy.io."
},
"www.us-east":{
"cname": "test-jfk-do.deploy.io."
}
}
}
see https://github.com/abh/geodns for more detail
Content type
Image
Digest
sha256:5a64daa4d…
Size
95 MB
Last updated
almost 11 years ago
docker pull coocood/geodns