1. The problem I’m having:
I’m trying to use the dynamic_dns module to update Route53 DNS entries.
2. Error messages and/or full log output:
ERROR dynamic_dns unable to lookup current IPs from DNS records {"error": "not found, ResolveEndpointV2"}
ERROR dynamic_dns failed setting DNS record(s) with new IP address(es) {"zone": "hunternetworking.com", "error": "not found, ResolveEndpointV2"}
3. Caddy version:
v2.8.4
4. How I installed and ran Caddy:
Installed with apt on Ubuntu 12
Later used xcaddy to create caddy with dynamic_dns and route53 plugins
“xcaddy build --with GitHub - caddy-dns/route53: Caddy module: dns.providers.route53 --with GitHub - mholt/caddy-dynamicdns: Caddy app that keeps your DNS records (A/AAAA) pointed at itself.”
a. System environment:
Ubuntu 12
b. Command:
caddy run
c. Service/unit/compose file:
d. My complete Caddy config:
{
#enable dynmic dns plugin for Route 53
dynamic_dns {
provider route53 {
access_key_id "A****************"
secret_access_key "G*******************************"
}
domains {
hunternetworking.com comet
}
#scans this file for subdomians matching domains listed above and manages Route53 entries for these
#dynamic_domains
versions ipv4
}
}
uptime.hunternetworking.com {
reverse_proxy 192.168.0.216:3001 {
header_up Host (upstream_hostport)
}
}
5. Links to relevant resources:
I don’t think this is an AWS permissions issue. I’m using the same access key and id with other services for creating and modifying records but here’s the permissions just in case.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"route53:ChangeResourceRecordSets",
"route53:ListResourceRecordSets",
"route53:ListHostedZones",
"route53:GetChange",
"route53:GetHostedZone"
],
"Resource": [
"arn:aws:route53:::hostedzone/Zone_Id",
"arn:aws:route53:::change/*"
]
},
{
"Sid": "",
"Effect": "Allow",
"Action": [
"route53:ListHostedZonesByName",
"route53:ListHostedZones"
],
"Resource": "*"
}
]
}