AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides comprehensive domain expertise for managing Amazon Route 53 DNS configurations. It acts as a router to specific, self-contained procedures for tasks ranging from basic public DNS record creation to complex hybrid network resolution, traffic steering, and security-focused DNS Firewall management. It emphasizes best practices for IAM security, DNS transport encryption, and scalable configuration management across multi-account environments.
What it does
- Maps hostnames to IPs, AWS resources, or other hostnames via public DNS records.
- Implements traffic-steering policies like weighted routing and failover for disaster recovery.
- Configures health checks to monitor endpoint availability and trigger alerts.
- Secures VPC traffic by blocking malicious domains using DNS Firewall.
- Centralizes DNS configurations and security rules across multiple accounts using Route 53 Profiles or Firewall Manager.
- Enables hybrid network resolution and manages VPC Resolver configurations for Outposts.
When to use it
- When you need to point a domain or subdomain to an AWS resource or external IP.
- When implementing blue/green deployments or canary releases using weighted routing.
- When setting up high-availability architectures requiring cross-region failover.
- When you need to filter malicious DNS queries within a VPC.
- When managing DNS configurations at scale across an AWS Organization.
- When resolving private DNS queries between on-premises networks and AWS VPCs.
Advantages
- Provides structured, step-by-step procedures for complex DNS tasks.
- Includes critical security constraints for IAM and DNS transport.
- Offers clear decision frameworks for choosing between routing policies or centralization methods.
- Ensures consistent configuration by routing to specialized, self-contained reference files.
- Supports both sandboxed execution via AWS MCP and standard AWS CLI fallback.
Usage examples
- “How do I point my domain example.com to an S3 bucket?”
- The agent will guide you through the 'creating a public DNS record' procedure to map your domain to the S3 bucket endpoint.
- “I need to block known malicious domains for all my VPCs.”
- The agent will direct you to the 'centralizing DNS Firewall' procedure to deploy protection across your organization.
- “How can I fail over traffic between two regions?”
- The agent will provide the 'configuring failover routing' steps, including setting up the necessary health checks.
- “How do I resolve private DNS between my on-premises network and AWS?”
- The agent will walk you through the 'resolving private DNS for hybrid networks' procedure.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/aws/route53/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip route53.zip -d .agents/skills
Documentation by AWS
Amazon Route 53
Overview
Domain expertise for configuring Amazon Route 53 DNS across the public and private resolution paths: hosted zone records, traffic-steering routing policies, health checks, DNS Firewall, Route 53 Profiles, VPC Resolver (also known as Route 53 Resolver) for hybrid and Outposts networks, and Global Resolver.
This skill is a router. Each customer task maps to a procedure file under references/. Read the
matching reference in full before acting, then follow its constraints and steps. The reference
files are self-contained: each carries its own decision tables, constraints, procedure, and
troubleshooting.
Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging,
observability). Fall back to the AWS CLI otherwise. All Route 53 Domains API calls are made in
us-east-1 regardless of where the customer works.
Which Route 53 task do you need?
| Goal | Reference |
|---|---|
| Point a hostname or zone apex at an IP, AWS resource, or hostname | creating a public DNS record |
| Split traffic across endpoints in a ratio (blue/green, canary, A/B) | splitting traffic with weighted routing |
| Fail over between two Regions for disaster recovery | configuring failover routing |
| Monitor whether an endpoint is up and get alerted | setting up a health check |
| Block malicious domains for a VPC at the resolver | blocking malicious domains |
| Work out which DNS Firewall rule wins for a domain across multiple rule groups | identifying the effective DNS Firewall rule |
| Apply one DNS config across many VPCs and accounts | configuring Route 53 Profiles |
| Fan DNS Firewall out across many accounts org-wide | centralizing DNS Firewall with Profiles |
| Resolve private DNS both ways across a hybrid network | resolving private DNS for hybrid networks |
| Run VPC Resolver locally on an AWS Outposts rack | running VPC Resolver on Outposts |
| Give on-premises and remote clients one anycast DNS endpoint | setting up Global Resolver |
Routing notes
Records vs routing policies. A plain hostname-to-target mapping is the public DNS record task. Splitting or steering traffic (weighted, failover) is a separate routing-policy task with its own reference. Start from the customer's intent, not the record type.
Health checks vs failover. A health check monitors an endpoint and raises alarms. The failover routing policy decides where traffic goes when a check fails. They are two references and are often used together: set up the health check, then wire it into failover.
DNS Firewall for one VPC vs many accounts. Authoring rules for a VPC is the blocking reference. Fanning the same protection across accounts with Profiles and Firewall Manager is the centralizing reference.
DNS Firewall authoring vs diagnosis. Creating or changing rules is the blocking reference. Working out which rule already wins for a domain when several rule groups are associated (a read and diagnostic task) is the identifying-the-effective-rule reference.
Profiles, two entry points. General Profile setup (attach resources, share via RAM, cost and visibility tradeoffs) is the configuring-Profiles reference. Using Profiles specifically to scale DNS Firewall org-wide is the centralizing reference.
VPC Resolver, three contexts. In-Region hybrid resolution, the Outposts-local resolver, and the Global Resolver anycast endpoint are three separate references. Match the reference to where the resolver runs.
Cross-service work
Pointing a custom domain at a CloudFront distribution, or failing over between CloudFront distributions, is cross-service work spanning Route 53 and CloudFront. Use this skill for the Route 53 side of pure-Route 53 tasks only.
Security Considerations
These apply across the Route 53 tasks below; each reference repeats the ones load-bearing for its workflow.
You SHOULD use least-privilege IAM credentials provisioned through IAM roles (instance profiles, SSO/IAM Identity Center session credentials, or
aws sts assume-role) rather than long-lived IAM user access keys, and prefer read-only credentials for inspection steps.You SHOULD recommend encrypted DNS transport (DoT or DoH) over plaintext Do53 for resolver client populations, since Do53 exposes queried domain names to on-path observers.
You MUST scope resolver-endpoint security group rules on port 53 to the on-premises CIDR ranges or known DNS server IPs, never
0.0.0.0/0.You MUST encrypt query log and notification destinations at rest: KMS on CloudWatch Logs log groups, SSE-S3/SSE-KMS on S3 buckets, server-side encryption (SSE) on a Data Firehose stream, and SSE on SNS topics, because DNS query logs and health-check notifications can reveal infrastructure topology.
For Global Resolver, you MUST treat access-token
valuereturned at create time as a secret; store it in AWS Secrets Manager rather than in plaintext, and validate which client populations each DNS view authorizes.
Additional Resources
Files
- ATTRIBUTION.mdAdded by AutoGineer925 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer67 B
- SKILL.md6.4 KiB
- references/blocking-malicious-domains.md20.7 KiB
- references/centralizing-dns-firewall.md17.3 KiB
- references/configuring-failover-routing.md15.1 KiB
- references/configuring-route53-profiles.md15.4 KiB
- references/creating-a-public-dns-record.md12.9 KiB
- references/identifying-the-effective-dns-firewall-rule.md15.1 KiB
- references/resolving-private-dns-for-hybrid-networks.md15.3 KiB
- references/running-route53-resolver-on-outposts.md10.5 KiB
- references/setting-up-a-route53-health-check.md11.2 KiB
- references/setting-up-route53-global-resolver.md25.5 KiB
- references/splitting-traffic-with-weighted-routing.md10.7 KiB
references/resolving-private-dns-for-hybrid-networks.md
Resolving Private DNS for Hybrid Networks with Route 53
Overview
Domain expertise for private DNS resolution in both directions across a hybrid network: AWS workloads resolving on-premises hostnames, and on-premises workloads resolving AWS private hosted zones. Spans private hosted zones and VPC Resolver (also known as Route 53 Resolver) inbound and outbound endpoints with conditional forwarding. Covers the connectivity precondition, the endpoint-direction confusion, the forwarding-rule step, and multi-account rule sharing.
Does not cover the connectivity layer itself (AWS Direct Connect or VPN setup) beyond treating it as a prerequisite, or VPC Resolver on AWS Outposts. Those are separate skills.
Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise.
Table of Contents
Overview
Workflow
Critical precondition: a network path must exist
The endpoint-direction rule
Decision: per-account rules vs shared rules
Troubleshooting
Procedure
Additional Resources
Workflow
To build hybrid DNS resolution, follow the procedure exactly. See the Procedure section below.
The procedure covers:
Confirming a network path (Direct Connect or VPN) exists before building any DNS resource
Creating inbound and outbound endpoints for each direction of resolution
Adding the conditional forwarding rule that makes outbound resolution work
Sharing resolver rules across accounts through AWS Resource Access Manager (RAM)
Surfacing the console links to verify
Critical precondition: a network path must exist
None of the DNS components resolve anything without a working AWS Direct Connect or VPN connection between the VPC and on-premises.
Constraints:
You MUST check for a usable network path before creating any DNS resource
If no path exists, you MUST tell the customer plainly. You MAY still offer to set up the Route 53 components when the customer is deliberately building ahead of a planned connection, but only after stating explicitly that resolution will not work until the path is in place, so the customer is not left with a half-finished setup they believe is broken
The endpoint-direction rule
This is the most common point of confusion. The direction names which way queries flow.
| Endpoint | Direction | Enables |
|---|---|---|
| Inbound | On-premises to AWS | On-premises clients resolve AWS private hosted zone records |
| Outbound | AWS to on-premises | AWS clients resolve on-premises hostnames (needs a forwarding rule) |
Constraints:
You MUST create the endpoint type that matches the direction of resolution the customer needs, and walk through both directions explicitly when both are needed. A first-time hybrid setup commonly ends with one direction working and the other broken
You MUST add a conditional forwarding rule for outbound resolution. An outbound endpoint alone does nothing until a rule names the on-premises domains and the DNS server IPs to forward to
You MUST scope the endpoint security group's port-53 rules to the on-premises CIDR ranges or known DNS server IPs, never
0.0.0.0/0: inbound TCP/UDP 53 from the on-premises ranges on an inbound endpoint, outbound TCP/UDP 53 to the on-premises DNS server IPs on an outbound endpoint. An open0.0.0.0/0rule exposes the resolver to unauthorized queries
Decision: per-account rules vs shared rules
| Choice | Use when |
|---|---|
| Shared rules from a hub VPC via RAM | Multi-account setups, to avoid the drift of recreating rules per account |
| Per-account rules | A single isolated account |
Troubleshooting
Nothing resolves across the hybrid boundary
No Direct Connect or VPN path is carrying queries. Confirm connectivity first; build DNS only once a path exists.
One direction resolves, the other does not
Wrong endpoint type for the needed direction. Inbound for on-premises-to-AWS, outbound for AWS-to-on-premises.
Outbound endpoint exists but on-premises names fail
No conditional forwarding rule. Add a rule naming the on-premises domains and DNS server IPs.
Resolver rules drift across accounts
Rules were recreated per account. Share rules from a hub VPC through AWS RAM.
Queries dropped or throughput lower than expected
The security group attached to the endpoint may have incorrect or connection-tracking rules. Check that:
Inbound endpoint: security group has inbound rules allowing TCP and UDP on port 53.
Outbound endpoint: security group has outbound rules allowing TCP and UDP on port 53 (or the port your on-premises DNS server uses).
Certain security group rules cause connection tracking, which can reduce max queries per second significantly. See Values for inbound endpoints and Values for outbound endpoints for guidance on avoiding this.
Procedure
Overview
This procedure builds private DNS resolution in both directions across a hybrid network. It confirms a network path exists, creates VPC Resolver inbound and outbound endpoints for the needed directions, adds the conditional forwarding rule that makes outbound resolution work, shares resolver rules across accounts, and surfaces the console links to verify.
Parameters
vpc_id (required): The VPC that holds the endpoints (e.g.,
vpc-0abc123).region (required): The AWS Region (e.g.,
us-east-1).direction (required):
inbound,outbound, orboth.on_prem_domains (required for outbound): The on-premises domains to forward (e.g.,
corp.example.com).on_prem_dns_servers (required for outbound): On-premises DNS server addresses as
IPorIP:PORT. Port defaults to 53 if omitted. Specify multiple entries for redundancy (e.g.,["10.0.0.2", "10.0.0.3:5353"]).security_group_ids (required): IDs of one or more security groups to attach to the endpoints. Their port-53 rules MUST be scoped to the on-premises CIDR ranges or known DNS server IPs (see the Step 2/3 constraint), not
0.0.0.0/0.subnet_ids (required): At least two subnet IDs in different Availability Zones (the API minimum, and the redundancy recommendation).
share_principals (optional): Account IDs or OU ARNs to share resolver rules with.
creator_request_id (agent-generated): A unique string the API requires for idempotency. The agent generates this automatically using
uuidgen; do not ask the customer for it.
Constraints for parameter acquisition:
You MUST ask for all required parameters upfront in a single prompt
You MUST confirm the VPC and direction before writing
Steps
1. Verify dependencies and the network path
Constraints:
You MUST confirm credentials with
aws sts get-caller-identityYou MUST REQUIRE provisioning credentials through ephemeral mechanisms (IAM roles via instance profiles, SSO/IAM Identity Center session credentials, or
aws sts assume-role) rather than long-lived IAM user access keys.You MUST enable Route 53 query logging to an encrypted destination where applicable, ensure CloudTrail is enabled to audit changes, and set CloudWatch alarms on health-check status where health checks are involved.
You MUST confirm a working Direct Connect or VPN path exists between the VPC and on-premises before creating any DNS resource. If none exists, state it plainly. You MAY proceed to build ahead only after telling the customer resolution will not work until the path is live
2. Create the inbound endpoint (on-premises to AWS)
Constraints:
If
directionisinboundorboth, create an inbound endpoint so on-premises clients can resolve AWS private hosted zone records:aws route53resolver create-resolver-endpoint \ --creator-request-id $(uuidgen) \ --name {name} --direction INBOUND \ --security-group-ids {sg_id} \ --ip-addresses SubnetId={subnet_a} SubnetId={subnet_b} \ --region {region}You SHOULD recommend that on-premises clients connect to the inbound endpoint over DoT (DNS over TLS) or DoH (DNS over HTTPS) rather than plaintext Do53, because Do53 exposes queried domain names to on-path observers on the hybrid link
3. Create the outbound endpoint (AWS to on-premises)
Constraints:
If
directionisoutboundorboth, create an outbound endpoint:aws route53resolver create-resolver-endpoint \ --creator-request-id $(uuidgen) \ --name {name} --direction OUTBOUND \ --security-group-ids {sg_id} \ --ip-addresses SubnetId={subnet_a} SubnetId={subnet_b} \ --region {region}
4. Add the conditional forwarding rule for outbound
Constraints:
If
directionisoutboundorboth, you MUST create a forwarding rule for outbound resolution (skip this step entirely whendirectionisinboundonly —on_prem_domainsandon_prem_dns_serversare not provided in that case). The outbound endpoint does nothing until a rule names the on-premises domains and DNS server IPs:aws route53resolver create-resolver-rule \ --creator-request-id $(uuidgen) \ --name {name} --rule-type FORWARD \ --domain-name {on_prem_domain} \ --resolver-endpoint-id {outbound_endpoint_id} \ {target_ips_flags} \ --region {region}Parse each entry in
on_prem_dns_serversasIPorIP:PORT, defaulting port to 53 if omitted. Build{target_ips_flags}as a single--target-ipsflag followed by oneIp={ip},Port={port}argument per entry (e.g.,--target-ips Ip=10.0.0.2,Port=53 Ip=10.0.0.3,Port=5353).You MUST associate the rule with the VPC:
aws route53resolver associate-resolver-rule \ --resolver-rule-id {rule_id} --vpc-id {vpc_id} --region {region}
5. Share resolver rules across accounts (optional)
Constraints:
If
share_principalsis set, you SHOULD share the rules from a hub VPC through RAM rather than recreating them per account:aws ram create-resource-share \ --name {share_name} --resource-arns {rule_arn} \ --principals {share_principals} --region {region}The receiving account must accept the RAM resource share invitation before the rule is usable:
aws ram accept-resource-share-invitation \ --resource-share-invitation-arn {invitation_arn} --region {region}After accepting, the receiving account must associate the shared rule with its VPC:
aws route53resolver associate-resolver-rule \ --resolver-rule-id {rule_id} --vpc-id {consumer_vpc_id} --region {region}
6. Verify and surface the console links
Constraints:
You MUST verify resolution works in each configured direction
You MUST enable Resolver query logging on the VPC to monitor forwarded queries and detect anomalous resolution patterns, with encryption at rest on the log destination
You MUST present the console links, filling
{region}:Inbound endpoints:
https://console.aws.amazon.com/route53resolver/home?region={region}#/inbound-endpointsOutbound endpoints:
https://console.aws.amazon.com/route53resolver/home?region={region}#/outbound-endpointsForwarding rules:
https://console.aws.amazon.com/route53resolver/home?region={region}#/rules
Example
Example input
{
"vpc_id": "vpc-0abc123",
"region": "us-east-1",
"direction": "both",
"security_group_ids": ["sg-0abc123"],
"subnet_ids": ["subnet-0aaa111", "subnet-0bbb222"],
"on_prem_domains": ["corp.example.com"],
"on_prem_dns_servers": ["10.0.0.2", "10.0.0.3:5353"]
}Example output
Created inbound and outbound endpoints in vpc-0abc123, plus a forwarding rule for
corp.example.com -> 10.0.0.2:53, 10.0.0.3:5353.
Verify in the console:
Inbound: https://console.aws.amazon.com/route53resolver/home?region=us-east-1#/inbound-endpoints
Outbound: https://console.aws.amazon.com/route53resolver/home?region=us-east-1#/outbound-endpoints
Rules: https://console.aws.amazon.com/route53resolver/home?region=us-east-1#/rulesTroubleshooting
Nothing resolves across the hybrid boundary
No Direct Connect or VPN path. Confirm connectivity first (Step 1).
One direction resolves, the other does not
Wrong endpoint type for the needed direction (Steps 2 and 3).
Outbound endpoint exists but on-premises names fail
No conditional forwarding rule. Add one naming the on-premises domains and DNS server IPs (Step 4).
Resolver rules drift across accounts
Rules recreated per account. Share from a hub VPC through RAM (Step 5).
Queries dropped or throughput lower than expected
Check the security group rules for the endpoint:
Inbound endpoint: needs inbound rules allowing TCP and UDP on port 53.
Outbound endpoint: needs outbound rules allowing TCP and UDP on port 53 (or the port your on-premises DNS server uses).
Certain rules cause connection tracking and reduce max queries per second. See Values for inbound endpoints and Values for outbound endpoints.
Security Considerations
You SHOULD use least-privilege IAM credentials provisioned through ephemeral mechanisms (IAM roles, SSO/IAM Identity Center session credentials, or
aws sts assume-role) rather than long-lived IAM user access keys, and prefer read-only credentials for inspection steps.You MUST scope the resolver endpoint's port-53 security group rules to the on-premises CIDR ranges or known DNS server IPs, never
0.0.0.0/0, because an open rule exposes the resolver to unauthorized queries from anywhere on the hybrid link.You SHOULD recommend that clients use DoT or DoH over the inbound endpoint rather than plaintext Do53, since Do53 exposes queried domain names to on-path observers on the hybrid link.
You MUST enable Resolver query logging to an encrypted destination (KMS on CloudWatch Logs, SSE-S3/SSE-KMS on S3, or server-side encryption on a Data Firehose stream) and ensure CloudTrail is enabled to audit endpoint and rule changes, because query logs reveal the domains the network resolves.
Additional Resources
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- AWS
- Publisher
- AWS (Official)
- Source
- aws/agent-toolkit-for-aws · skills/specialized-skills/networking-and-content-delivery-skills/route53 · commit 0a218f8
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by AWS or AWS.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download route53.zip