COREDNS-ROUTE53(7)
okay so bestie, welcome to COREDNS-ROUTE53(7) β literally the CoreDNS Plugins manual, section 7, the route53 one. grab a lil snack π and let's get into it, no cap.
β¨ NAME β¨
route53 β bestie, it enables serving zone data from AWS route53. that's it, that's the vibe. π
π₯ DESCRIPTION π₯
The route53 plugin is genuinely iconic for serving zones straight from resource record sets in AWS route53. it supports all Amazon Route 53 records (yes, all of them, go look: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html β¨https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.htmlβ©).
and the best part?? the route53 plugin can be used when CoreDNS is deployed on AWS or elsewhere. not me being flexible, we love range π
π SYNTAX π
route53 [ZONE:HOSTED_ZONE_ID...] {
aws_access_key [AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY] # Deprecated, uses other authentication methods instead.
aws_endpoint ENDPOINT
credentials PROFILE [FILENAME]
fallthrough [ZONES...]
refresh DURATION
}
okay now the rundown, one by one π«Ά
ZONEβ the name of the domain to be accessed. when there are multiple zones with overlapping domains (private vs. public hosted zone, iykyk), CoreDNS does the lookup in the given order right here. so for a non-existing resource record, the SOA response will come from the rightmost zone. periodt.HOSTED_ZONE_IDβ the ID of the hosted zone that contains the resource record sets to be accessed.AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYβ the AWS access key ID and secret access key to be used when querying AWS (optional, no pressure). if they're not provided, CoreDNS tries to access AWS credentials the same way as AWS CLI does β environment variables, shared credential file (and optionally shared config file ifAWS_SDK_LOAD_CONFIGenv is set), and lastly EC2 Instance Roles. π heads up tho: the usage ofaws_access_keyhas been deprecated and may be removed in future versions. instead, user can use other methods to pass credentials, e.g., with environmental variableAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY, respectively.aws_endpointβ can be used to control the endpoint to use when querying AWS (optional).ENDPOINTis the URL of the endpoint to use. if this is not provided, the default AWS endpoint resolution will occur. letting AWS decide, main character energy πcredentialsβ used for overriding the shared credentialsFILENAMEand thePROFILEname for a given zone.PROFILEis the AWS account profile name β defaults todefault.FILENAMEis the AWS shared credentials filename β defaults to~/.aws/credentials. lowkey important: CoreDNS will only load the shared credentials file and not the shared config file (~/.aws/config) by default. set theAWS_SDK_LOAD_CONFIGenv variable to a truthy value to enable also loading of~/.aws/config(e.g. if you want to provide assumed IAM role configuration, slay). will be ignored if static keys are set viaaws_access_key.fallthroughβ if zone matches and no record can be generated, pass request to the next plugin. ifZONESis omitted, then fallthrough happens for all zones for which the plugin is authoritative. if specific zones are listed (for examplein-addr.arpaandip6.arpa), then only queries for those zones will be subject to fallthrough. selective queen πΈrefreshβ can be used to control how long between record retrievals from Route 53. it requires a duration string as a parameter to specify the duration between update cycles. each update cycle may result in many AWS API calls depending on how many domains use this plugin and how many records are in each π adjusting the update frequency may help reduce the potential of API rate-limiting imposed by AWS.DURATIONβ a duration string. defaults to1m. if units are unspecified, seconds are assumed. so1mis your default bestie, remember it.
π EXAMPLES π
okay these are the ones you'll actually copy-paste, let's go β¨
Enable route53 with implicit AWS credentials and resolve CNAMEs via 10.0.0.1:
example.org {
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7
}
. {
forward . 10.0.0.1
}
Enable route53 with explicit AWS credentials:
example.org {
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7 {
aws_access_key AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY # Deprecated, uses other authentication methods instead.
}
}
Enable route53 with an explicit AWS endpoint:
example.org {
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7 {
aws_endpoint https://test.us-west-2.amazonaws.com
}
}
Enable route53 with fallthrough:
. {
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7 example.gov.:Z654321543245 {
fallthrough example.gov.
}
}
Enable route53 with multiple hosted zones with the same domain:
example.org {
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7 example.org.:Z93A52145678156
}
Enable route53 and refresh records every 3 minutes:
example.org {
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7 {
refresh 3m
}
}
π¦ AUTHENTICATION π¦
so the Route53 plugin uses the AWS Go SDK (https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html β¨https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.htmlβ©) for authentication, where there is a list of accepted configuration methods β go read it, fr fr π
β οΈ and again, because it matters: note the usage ofaws_access_keyin the Corefile has been deprecated and may be removed in future versions. instead, user can use other methods to pass credentials, e.g., with environmental variableAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY, respectively. don't say I didn't warn you π
and that's the whole page bestie, you ate that π«Ά this was COREDNS-ROUTE53(7) from the CoreDNS plugins manual β source: CoreDNS, dated March 2026. now go serve some zones, mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: coredns-extras 1.15.0-bp160.1.1 Β· Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms