Simple client to update a route53 A recordName to public ip.
It´s work like the dyndns, no-ip, etc
- Configure the aws credentials
- Run like below example:
go-aws-dynamic-dns -z ZONEID -r my-dynamic-dns.example.com -i https://tiny-credit-7e1b.benchtool.workers.dev
- Cloudflare Workers implement the service (https://tiny-credit-7e1b.benchtool.workers.dev) to get public ip, with very basic script
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
/**
* Respond to the request
* @param {Request} request
*/
async function handleRequest(request) {
return new Response(request.headers.get('CF-Connecting-IP'))
}