Route 53 Resolver Deployer
What this skill does
Provisions Route 53 Resolver endpoints, forwarding rules, DNS Firewall
policies, and query logging configurations with secure networking
defaults. Enforces the minimum two subnets in distinct Availability Zones
for every endpoint, security groups that only expose UDP/TCP 53 to the
expected source CIDRs, forwarding rules that target reachable IPs with
the correct port, DNS Firewall rule group associations that do not
conflict on priority, and query log destinations that are writable by the
route53resolver service principal. Runs deterministic pre-checks
before any state-changing CLI, emits the exact
create-resolver-endpoint, create-resolver-rule,
create-firewall-domain-list, create-firewall-rule, and
put-resolver-query-log-config CLIs behind a CONFIRM gate, and verifies
the deployment via get-resolver-endpoint and
list-resolver-rule-associations. Every Resolver plan surfaces the
inbound/outbound direction, the rule-priority ordering, the firewall
action matrix, and the query-log destination write-permission gate.
Quick navigation
| Section |
What it covers |
When to read it |
| Quick reference |
Verdict thresholds + pre-check priority order + endpoint config matrix |
Before any operation |
| Mindset |
Why defaults matter; Resolver silent-failure modes; overwrite traps |
Understanding the deployment model |
| Pre-flight |
Endpoint metadata gate — subnets, security groups, target IPs, IAM permissions |
Before executing any CLI |
| Process |
Per-operation planning: inbound, outbound, forwarding rule, DNS Firewall, query logging |
When choosing which operation |
| Common patterns |
Production hybrid DNS / conditional forwarding / DNS Firewall / query logging boilerplate |
Boilerplate lookup |
| STRICT output contract |
Required RESOLVER/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block |
Formatting the response |
| NEVER (top 5) |
Hard rules that prevent common insecure patterns |
Review before deploy |
| Expert heuristic |
Choosing inbound vs outbound vs both for hybrid DNS |
Choosing endpoint strategy |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
PREREQUISITES_MISSING |
Any pre-check failed (fewer than 2 subnets in distinct AZs, security group missing UDP/TCP 53 ingress, outbound target IP unreachable, forwarding rule domain name malformed, DNS Firewall rule group priority collides with an existing association, query log destination ARN is not writable by route53resolver, IAM permission missing, endpoint name already exists for create) |
List failures, do NOT execute |
READY_TO_DEPLOY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence with full endpoint config, wait for operator yes |
Priority order for pre-checks (apply in this sequence, all must pass for
READY_TO_DEPLOY):
- Endpoint name uniqueness —
list-resolver-endpoints returns no
endpoint with the target name (for create) or matches exactly one
(for update).
- Subnet count and AZ diversity — every Resolver endpoint requires
at least 2 IP addresses in 2 distinct Availability Zones. Fewer than
2 subnets is a hard block.
- Security group ingress — the referenced security group allows
UDP/TCP 53 inbound from the expected source CIDR (the peered VPC,
Direct Connect, or VPN CIDR for inbound endpoints; the VPC CIDR for
outbound endpoints).
- Security group egress — the referenced security group allows
UDP/TCP 53 outbound to the on-prem DNS server IPs (outbound endpoints)
or to the VPC CIDR (inbound endpoints).
- Forwarding rule domain — the
DomainName is a valid DNS suffix
(e.g., corp.example.local.), trailing dot handled, not a TLD that
conflicts with a public domain.
- Forwarding target IPs — every IP in
TargetIps is reachable from
the outbound endpoint subnets (route table check or caller-provided
attestation). Port 53 is the default; non-standard ports are flagged.
- Rule association VPC — the target VPC exists in the same account
and region (or is shared via
share-resolver-rule cross-account).
- DNS Firewall rule group priority — the
Priority integer on a
new firewall-rule-group-association does not collide with an
existing association on the same VPC. Lower priority = evaluated
first.
- Firewall domain list content — custom domain lists use valid
domain syntax with wildcards (
*.malware.example.). Malformed
entries are rejected.
- Firewall action consistency —
BLOCK actions have a
BlockResponse (NXDOMAIN, NODATA, or custom IP) and optionally a
BlockOverrideDnsType. ALERT logs but does not block. ALLOW
overrides a matching BLOCK in a higher-priority group.
- Query log destination ARN — the CloudWatch Logs log group, S3
bucket, or Kinesis Data Firehose exists and the
route53resolver service principal has write permission
(logs:PutLogEvents, s3:PutObject, or firehose:PutRecord).
- Query log config name uniqueness —
list-resolver-query-log-configs
returns no config with the target name.
- VPC DNS settings —
enableDnsHostnames and enableDnsSupport
are both true on the target VPC (checked via ec2:describe-vpc-attribute).
- IAM permissions — the operator principal holds
route53resolver:CreateResolverEndpoint,
CreateResolverRule, AssociateResolverRule,
CreateFirewallDomainList, CreateFirewallRule,
CreateFirewallRuleGroupAssociation, or
PutResolverQueryLogConfig (as applicable to the operation).
Route 53 Resolver limits (2026):
- Resolver endpoints per Region: 4 inbound + 4 outbound (soft). 2-100 IPs per endpoint (>= 2 AZs).
- Resolver rules per account: 1000 (soft). Shareable cross-account via RAM.
- DNS Firewall rule groups per VPC: 5 (soft). Domain lists per account: 5000. Domains per list: 200,000.
- Query log configs per account: 2000 (soft). One query log config association per VPC.
Mindset
One-line takeaway: Resolver silently accepts misconfigured security
groups and route tables. An outbound endpoint with a security group that
blocks egress to on-prem port 53 will deploy cleanly — DNS queries from
the VPC will time out, and the operator will blame the on-prem DNS
server. The skill enforces the networking gate at pre-check time.
Driven by three Resolver realities:
Resolver endpoints need a minimum of two subnets in two AZs. A
single-subnet endpoint is rejected at API time, but a two-subnet
endpoint where both subnets are in the same AZ silently loses HA.
Forwarding rules are evaluated in priority order against the VPC.
If two rules match the same domain suffix, the lower-priority integer
wins. A new rule with an overlapping domain silently shadows an
existing rule.
DNS Firewall rule groups stack per VPC. Each association has a
priority integer; a BLOCK in priority 1 is overridden by an ALLOW in
priority 2. Misordered priorities are the #1 cause of "why is my block
not working" tickets.
Pre-flight: resolver endpoint metadata gate
Run before classification. Misclassifying these produces wrong plans.
Pagination: list-resolver-endpoints returns at most 100 per page
(via --max-results). Use --next-token to drain. list-resolver-rules
is paginated the same way.
Live-account pre-flight (skip if offline plan audit):
Moved verbatim → references/diagnostic-commands.md § "Pre-flight — live-account command listing".
Load when: running the live-account pre-flight (endpoint name, subnets, security groups, VPC attributes, rules, firewall associations, log destinations)
Malformed input: if the Resolver spec is missing required fields
(EndpointName, Direction, Subnets (>= 2), or SecurityGroupIds),
emit VERDICT: PREREQUISITES_MISSING with REASON: Resolver spec missing required field — EndpointName, Direction, >= 2 SubnetIds in distinct AZs, or SecurityGroupIds. Cannot plan. and REMEDIATION: Provide the full endpoint configuration per https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html.
| Attribute |
Effect on operation |
| Fewer than 2 subnets |
API rejects. PREREQUISITES_MISSING. |
| Both subnets in same AZ |
Deploys but loses HA. Flag in NOTES; allow if user-acknowledged. |
| Security group missing UDP 53 ingress |
DNS queries silently time out. PREREQUISITES_MISSING. |
| Outbound target IP unreachable from subnet route table |
Forwarding rule deploys but queries fail. PREREQUISITES_MISSING. |
| Forwarding rule domain overlaps existing rule with lower priority |
New rule shadows existing. Flag in NOTES. |
| DNS Firewall rule group priority collides on VPC |
API rejects. PREREQUISITES_MISSING. |
| Query log destination not writable by route53resolver |
Logs silently dropped. PREREQUISITES_MISSING. |
| VPC enableDnsSupport false |
Resolver endpoints cannot serve. PREREQUISITES_MISSING. |
Process — operation planning (apply in order)
Step 0: Expert knowledge — non-obvious Resolver behaviors
Moved verbatim → references/advanced-patterns.md § "Step 0: Expert knowledge — non-obvious Resolver behaviors".
Load when: planning any operation — endpoint IP semantics, suffix matching, SYSTEM rules, RAM sharing, firewall priority, wildcard domains, query-log association
Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails
Run ALL of the following pre-checks. If ANY fails, the verdict is
PREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.
Do NOT execute.
For ALL operations:
- Endpoint/rule/config name is set, <= 64 chars, matches
[a-zA-Z0-9-].
- Target VPC exists,
enableDnsSupport: true, enableDnsHostnames: true.
- IAM principal holds the relevant
route53resolver: permission.
For create-resolver-endpoint (inbound or outbound):
4. Direction is INBOUND or OUTBOUND.
5. IpAddresses contains at least 2 entries in 2 distinct AZs.
6. Each subnet in IpAddresses belongs to the target VPC.
7. SecurityGroupIds references exactly one or more existing security
groups in the VPC.
8. For INBOUND: the security group ingress allows UDP/TCP 53 from the
on-prem/peered source CIDR.
9. For OUTBOUND: the security group egress allows UDP/TCP 53 to the
on-prem DNS server IPs.
10. Endpoint name does not collide with an existing endpoint
(list-resolver-endpoints).
For create-resolver-rule (forwarding):
11. DomainName is a valid DNS suffix with trailing dot.
12. TargetIps references at least one IP (port defaults to 53; non-53
flagged in NOTES).
13. The domain does not overlap an existing forwarding rule with lower
priority (flag, allow with acknowledgement).
14. RuleType is FORWARD. (SYSTEM rules are managed by AWS.)
For associate-resolver-rule:
15. The rule exists and is in a COMPLETE state.
16. The target VPC exists and is not already associated with a
conflicting rule on the same domain.
For create-firewall-domain-list:
17. Domain list name does not collide.
18. (For import-firewall-domains): each domain is valid syntax,
wildcard prefix *. supported, trailing dot optional.
For create-firewall-rule (in a rule group):
19. The referenced FirewallDomainListId exists.
20. Action is one of ALLOW, BLOCK, ALERT.
21. For BLOCK: BlockResponse is set (NXDOMAIN, NODATA,
OVERRIDE); if OVERRIDE, the override DNS type, value, and TTL
are set.
22. Priority within the rule group does not collide with an existing
rule.
For create-firewall-rule-group-association:
23. The rule group exists.
24. Priority does not collide with an existing association on the
target VPC (lower priority = evaluated first).
25. MutationProtection is ENABLED for production associations.
For put-resolver-query-log-config:
26. DestinationArn points to an existing CloudWatch Logs log group,
S3 bucket, or Kinesis Firehose.
27. The destination resource policy allows route53resolver.amazonaws.com
to write (logs:PutLogEvents, s3:PutObject, firehose:PutRecord).
28. Config name does not collide.
For associate-resolver-query-log-config:
29. The target VPC is not already associated with another query log
config.
Step 2: READY_TO_DEPLOY — emit deployment plan
If all pre-checks pass, emit VERDICT: READY_TO_DEPLOY with the exact
CLI sequence and the CONFIRM gate. The plan includes:
- The exact
aws route53resolver create-resolver-endpoint CLI with the
full config (Direction, IpAddresses, SecurityGroupIds, Name, Tags).
- The follow-up
create-resolver-rule CLI for each forwarding rule.
- The follow-up
associate-resolver-rule CLI for each VPC association.
- The follow-up
create-firewall-domain-list and import-firewall-domains
CLIs for each custom domain list.
- The follow-up
create-firewall-rule CLI for each rule in a group.
- The follow-up
create-firewall-rule-group-association CLI for each VPC.
- The follow-up
put-resolver-query-log-config and
associate-resolver-query-log-config CLIs for query logging.
- The CONFIRM gate prompt.
Step 3: Execute behind CONFIRM gate
- MANDATORY CONFIRMATION GATE. Before any state-changing CLI
(
create-resolver-endpoint, create-resolver-rule,
associate-resolver-rule, create-firewall-rule-group-association,
put-resolver-query-log-config), emit:
CONFIRM: About to <operation> <resource> in account <account> region <region>. This will <consequence>. Proceed? (yes/no). Do NOT
execute until the operator confirms.
- Snapshot the current endpoint/rule config before modification:
aws route53resolver get-resolver-endpoint --resolver-endpoint-id <id> --output json > /tmp/<endpoint-name>-backup-$(date +%s).json.
- Execute the CLI with the full config.
Step 4: Post-verification
After the operation finishes, run post-verification:
get-resolver-endpoint --resolver-endpoint-id <id> returns
Status: OPERATIONAL.
- For inbound endpoints: the IP addresses are reachable from on-prem
(confirm with on-prem DNS admin or
dig @<ip> example.com).
- For outbound endpoints: the IP addresses are the source IPs the
on-prem DNS server sees.
list-resolver-rule-associations --resolver-rule-id <id> returns
the expected VPC associations with Status: COMPLETE.
- For DNS Firewall:
list-firewall-rule-group-associations returns
the association with the expected priority.
- For query logging:
list-resolver-query-log-config-associations
returns the VPC with Status: COMPLETE; verify log entries appear
in the destination within 5 minutes.
Common resolver patterns (boilerplate)
Moved verbatim → references/endpoints-and-forwarding-rules.md § "Common patterns — inbound / outbound / forwarding boilerplate".
Load when: assembling the create-endpoint / create-rule / associate-rule CLI sequence
Moved verbatim → references/dns-firewall-and-query-logging.md § "Common patterns — DNS Firewall / query logging boilerplate".
Load when: assembling firewall domain-list/rule/association or query-log-config CLI sequences (CloudWatch resource policy included)
STRICT output contract
Required output structure
Every response MUST begin with this block — no preamble, no conversational
opening:
RESOLVER: <endpoint-name or rule-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
TARGET: <endpoint-name> (endpoint-id: <id> for updates)
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. CONFIRM: About to <operation> <resource> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)
2. <exact CLI command — no placeholders>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
ENDPOINT_TYPE: INBOUND | OUTBOUND
SUBNETS: <count> subnets in <count> AZs
SECURITY_GROUPS: <count> (ingress: <CIDR>/<ports>; egress: <CIDR>/<ports>)
FORWARDING_RULES: <count> (domains: <list>)
FIREWALL_GROUPS: <count> associated (priorities: <list>)
QUERY_LOGS: CloudWatch | S3 | Kinesis | NONE
NOTES: <networking posture, DNS strategy, rule-priority caveats>
FORBIDDEN output patterns
- NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT
block is the FIRST line, always. No conversational preamble.
- NEVER use lowercase verdict values — emit
READY_TO_DEPLOY or
PREREQUISITES_MISSING (not ready, prerequisites).
- NEVER omit PRE_CHECKS — every pre-check run must appear with
[PASS]
or [FAIL] and a specific reason for each failure. An empty
PRE_CHECKS block is non-compliant.
- NEVER emit a plan with placeholder values (e.g.,
<endpoint-id>,
<account-id>) in a READY_TO_DEPLOY plan — every field must be
populated with actual values from the input.
- NEVER omit the CONFIRM gate as the first STEPS entry for any
state-changing operation.
- NEVER claim success without verifying that the endpoint reached
OPERATIONAL status (via get-resolver-endpoint).
- NEVER put-update an endpoint or rule without snapshotting the existing
config first — updates to
SecurityGroupIds and TargetIps overwrite
silently.
- NEVER silently allow a DNS Firewall rule group association with a
colliding priority — block it explicitly with a [FAIL] pre-check row.
Perfect example output
RESOLVER: prod-outbound
VERDICT: READY_TO_DEPLOY
TARGET: prod-outbound
PRE_CHECKS:
- [PASS] Endpoint name unique (no collision in list-resolver-endpoints)
- [PASS] 2 subnets in 2 distinct AZs (us-east-1a, us-east-1b)
- [PASS] Security group sg-0def456 egress UDP/TCP 53 to 10.99.1.5, 10.99.2.5
- [PASS] VPC enableDnsSupport: true, enableDnsHostnames: true
- [PASS] Forwarding rule domain corp.example.local. is valid
- [PASS] Target IPs reachable (10.99.1.5, 10.99.2.5 port 53)
- [PASS] IAM principal holds route53resolver:CreateResolverEndpoint
STEPS:
1. CONFIRM: About to create-resolver-endpoint prod-outbound in account 111111111111 region us-east-1. This will CREATE a new OUTBOUND endpoint with 2 IPs in 2 AZs. Proceed? (yes/no)
2. aws route53resolver create-resolver-endpoint --creator-request-id outbound-1699000000 --name prod-outbound --security-group-ids sg-0def456 --direction OUTBOUND --ip-addresses '[{"SubnetId":"subnet-aaa"},{"SubnetId":"subnet-bbb"}]' --tags '[{"Key":"Environment","Value":"prod"}]'
3. aws route53resolver create-resolver-rule --creator-request-id rule-1699000000 --name forward-corp-local --rule-type FORWARD --domain-name "corp.example.local." --resolver-endpoint-id <returned-id> --target-ips '[{"Ip":"10.99.1.5","Port":53},{"Ip":"10.99.2.5","Port":53}]'
4. aws route53resolver associate-resolver-rule --resolver-rule-id <returned-rule-id> --vpc-id vpc-0abc123
POST_VERIFY:
- (pending execution)
- get-resolver-endpoint returns Status: OPERATIONAL
- list-resolver-rule-associations returns vpc-0abc123 with Status: COMPLETE
ENDPOINT_TYPE: OUTBOUND
SUBNETS: 2 subnets in 2 AZs (us-east-1a, us-east-1b)
SECURITY_GROUPS: 1 (egress: 10.99.1.5/53, 10.99.2.5/53)
FORWARDING_RULES: 1 (domains: corp.example.local.)
FIREWALL_GROUPS: 0 associated
QUERY_LOGS: NONE
NOTES:
- Outbound endpoint IPs (visible after creation) must be allowed by the on-prem firewall ACL.
- Forwarding rule matches corp.example.local. and all subdomains. Trailing dot is significant.
- Associate query log config separately if DNS query logging is required.
NEVER (top 5)
These are the highest-impact, most-frequent failure modes in Route 53
Resolver deployments. Violating any one of these is a networking or
security regression.
NEVER create a Resolver endpoint with fewer than 2 subnets in 2
distinct AZs. A single-AZ endpoint loses the high-availability
guarantee — if that AZ fails, all DNS forwarding stops. The API
requires 2 IPs minimum, but both in the same AZ silently degrades
HA. Block at pre-check.
NEVER deploy an outbound endpoint without verifying the security
group egress to the on-prem DNS server IPs. The endpoint deploys
cleanly, but every forwarded query times out. The on-prem team sees
no traffic and the VPC team blames the on-prem DNS server. The
pre-check gate verifies egress on UDP/TCP 53 to the exact target IPs.
NEVER associate a DNS Firewall rule group to a VPC without
checking priority collisions. Each VPC can have up to 5 rule
group associations, each with a unique priority integer. A new
association with a colliding priority is rejected by the API — but
a non-colliding priority that semantically overrides an existing
ALLOW/BLOCK ordering is the #1 cause of "why is my block not
working" tickets. Plan the priority ordering before associating.
NEVER enable query logging without a resource policy on the
destination. The route53resolver service principal needs
logs:PutLogEvents (CloudWatch), s3:PutObject (S3), or
firehose:PutRecord (Kinesis) on the destination resource. Missing
policy = silent log drop. The pre-check gate verifies the resource
policy.
NEVER create a forwarding rule for a domain that overlaps an
existing rule with a lower priority integer. The lower-priority
rule is evaluated first and silently shadows the new rule. The
pre-flight gate flags domain overlap and recommends priority
reordering.
Expert heuristic: choosing inbound vs outbound vs both
The right Resolver endpoint strategy is a function of where the DNS
source of truth lives, not a one-size-fits-all. The heuristic below
resolves the trade-off deterministically.
Hybrid DNS scenario
├─ On-prem DNS is the source of truth for private domains?
│ └─ OUTBOUND endpoint + forwarding rules for corp.example.local.
│ VPC instances query Resolver; Resolver forwards to on-prem.
│ On-prem firewall must allow UDP/TCP 53 from endpoint IPs.
│
├─ Route 53 is the source of truth for private domains (Private Hosted Zones)?
│ └─ INBOUND endpoint. On-prem DNS forwarder points to endpoint IPs.
│ On-prem queries traverse Direct Connect / VPN to Resolver.
│ Resolver answers from the Private Hosted Zone.
│
├─ Both directions (corp.example.local. on-prem, internal.aws. on Route 53)?
│ └─ BOTH endpoints. Forwarding rules for on-prem domains only.
│ Inbound endpoint lets on-prem resolve Route 53 PHZ records.
│ Most common enterprise pattern.
│
└─ Pure cloud (no on-prem)?
└─ Neither endpoint. Resolver answers from Route 53 PHZ + public.
Add DNS Firewall for threat protection and query logging for audit.
Decision rules:
- Default to BOTH endpoints for enterprise hybrid environments. The
marginal cost of a second endpoint is small compared to the DNS
troubleshooting time it saves.
- For outbound-only, ensure the on-prem DNS servers are reachable from
the VPC subnets (Direct Connect, VPN, or Transit Gateway).
- For inbound-only, ensure the on-prem DNS forwarder is configured to
send to the inbound endpoint IPs (not the VPC CIDR).
- Always pair Resolver endpoints with DNS Firewall for threat protection
(block known-malicious domains) and query logging for audit (who
queried what, when).
- For multi-account, share forwarding rules via RAM rather than
recreating per account. The rule is created once in the Resolver
administrator account and shared to member accounts.
ALWAYS emit enableDnsSupport: true and enableDnsHostnames: true on
every VPC that uses Resolver. Without both, Resolver endpoints cannot
serve the VPC.
Recent AWS features (2024-2026)
Moved verbatim → references/advanced-patterns.md § "Recent AWS features (2024-2026)".
Load when: deciding whether a newer Resolver feature (cache TTL, ALERT metrics, Firehose, RAM OU sharing, OVERRIDE, endpoint health metrics) applies
AWS documentation
References (load on demand)
- references/endpoints-and-forwarding-rules.md — endpoint and forwarding-rule procedures, including the inbound/outbound/forwarding boilerplate moved from SKILL.md
- references/dns-firewall-and-query-logging.md — DNS Firewall and query-logging procedures, including the firewall/query-log boilerplate moved from SKILL.md
- references/advanced-patterns.md — Step 0 non-obvious Resolver behaviors and recent AWS features
- references/diagnostic-commands.md — live-account pre-flight command listing
Domain
AWS CloudOps / Networking & Content Delivery — Route 53 Resolver Provisioning.
1---2name: route53-resolver-deployer3description: Provisions Route 53 Resolver endpoints, forwarding rules, DNS Firewall, and query logging with secure networking defaults. Supports inbound endpoints (on-prem DNS to Route 53), outbound endpoints (VPC to on-prem DNS), forwarding rules with VPC associations, Resolver DNS Firewall (managed/custom domain lists, block/alert actions), and query logging to CloudWatch, S3, or Kinesis. Runs pre-checks (subnet AZ diversity, security group port 53 rules, IAM permissions, query log destination policies), emits create-resolver-endpoint, create-resolver -rule, create-firewall-rule, put-resolver-query-log-config CLIs behind a CONFIRM gate, verifies via get-resolver-endpoint. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when provisioning Resolver endpoints, forwarding rules, DNS Firewall policies, or query logging.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws route53resolver create-resolver-endpoint, create-resolver-rule, associate-resolver-rule, create-firewall-domain-list, create-firewall-rule, create-firewall-rule-group-association, put-resolver-query-log-config, associate-resolver-query-log-config, get-resolver-endpoint, list-resolver-rule-associations (AWS CLI v2, SSO or...6metadata:7 source: https://skillmd.com/skills/jhkchan/route53-resolver-deployer8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '1'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Networking15 task_type: deploy16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 tags: route53, resolver, dns, networking, firewall, query-logging, deploy, hybrid-dns, vpc22 dependencies: aws-orchestrator23 keywords: Route 53 Resolver, Resolver endpoint, inbound endpoint, outbound endpoint, forwarding rule, conditional forwarding, DNS Firewall, firewall domain list, firewall rule group, managed domain list, custom domain list, query logging, CloudWatch Logs, S3 logging, Kinesis Firehose, DNS, hybrid DNS, on-prem DNS, VPC DNS, route53resolver, rule association24 when_to_use: Creating a Route 53 Resolver inbound endpoint (on-prem resolvers forwarding to Route 53), outbound endpoint (VPC forwarding to on-prem DNS), conditional forwarding rules with VPC associations, Resolver DNS Firewall policies (managed or custom domain lists), or Resolver query logging to CloudWatch Logs, S3, or Kinesis Data Firehose.25 activation_triggers: create Resolver endpoint, provision Resolver inbound endpoint, provision Resolver outbound endpoint, deploy Route 53 Resolver, conditional forwarding rule, forwarding rule association, DNS Firewall, firewall domain list, firewall rule group, managed domain list, custom domain list, block DNS domains, Resolver query logging, DNS query logs CloudWatch, DNS query logs S3, hybrid DNS setup, on-prem DNS forwarding, route53resolver create-resolver-endpoint, route53resolver create-resolver-rule, route53resolver create-firewall-rule26 invocation_schema: 'Input: either (a) a Resolver deployment intent (create inbound endpoint, outbound endpoint, forwarding rule, DNS Firewall policy, or query log config) with target VPC, subnets, security groups, IP addresses, and forwarding targets; OR (b) an endpoint/rule ID for live-account update or validation. Output: deterministic RESOLVER/VERDICT/PRE_CHECKS/ STEPS/POST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.'27---2829# Route 53 Resolver Deployer3031## What this skill does3233Provisions Route 53 Resolver endpoints, forwarding rules, DNS Firewall34policies, and query logging configurations with secure networking35defaults. Enforces the minimum two subnets in distinct Availability Zones36for every endpoint, security groups that only expose UDP/TCP 53 to the37expected source CIDRs, forwarding rules that target reachable IPs with38the correct port, DNS Firewall rule group associations that do not39conflict on priority, and query log destinations that are writable by the40`route53resolver` service principal. Runs deterministic pre-checks41before any state-changing CLI, emits the exact42`create-resolver-endpoint`, `create-resolver-rule`,43`create-firewall-domain-list`, `create-firewall-rule`, and44`put-resolver-query-log-config` CLIs behind a CONFIRM gate, and verifies45the deployment via `get-resolver-endpoint` and46`list-resolver-rule-associations`. Every Resolver plan surfaces the47inbound/outbound direction, the rule-priority ordering, the firewall48action matrix, and the query-log destination write-permission gate.4950## Quick navigation5152| Section | What it covers | When to read it |53|---|---|---|54| **Quick reference** | Verdict thresholds + pre-check priority order + endpoint config matrix | Before any operation |55| **Mindset** | Why defaults matter; Resolver silent-failure modes; overwrite traps | Understanding the deployment model |56| **Pre-flight** | Endpoint metadata gate — subnets, security groups, target IPs, IAM permissions | Before executing any CLI |57| **Process** | Per-operation planning: inbound, outbound, forwarding rule, DNS Firewall, query logging | When choosing which operation |58| **Common patterns** | Production hybrid DNS / conditional forwarding / DNS Firewall / query logging boilerplate | Boilerplate lookup |59| **STRICT output contract** | Required RESOLVER/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block | Formatting the response |60| **NEVER (top 5)** | Hard rules that prevent common insecure patterns | Review before deploy |61| **Expert heuristic** | Choosing inbound vs outbound vs both for hybrid DNS | Choosing endpoint strategy |6263## Quick reference — verdict thresholds6465| Verdict | Trigger condition | Action |66|---|---|---|67| `PREREQUISITES_MISSING` | Any pre-check failed (fewer than 2 subnets in distinct AZs, security group missing UDP/TCP 53 ingress, outbound target IP unreachable, forwarding rule domain name malformed, DNS Firewall rule group priority collides with an existing association, query log destination ARN is not writable by route53resolver, IAM permission missing, endpoint name already exists for create) | List failures, do NOT execute |68| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full endpoint config, wait for operator yes |6970**Priority order for pre-checks (apply in this sequence, all must pass for71READY_TO_DEPLOY):**72731. **Endpoint name uniqueness** — `list-resolver-endpoints` returns no74 endpoint with the target name (for create) or matches exactly one75 (for update).762. **Subnet count and AZ diversity** — every Resolver endpoint requires77 at least 2 IP addresses in 2 distinct Availability Zones. Fewer than78 2 subnets is a hard block.793. **Security group ingress** — the referenced security group allows80 UDP/TCP 53 inbound from the expected source CIDR (the peered VPC,81 Direct Connect, or VPN CIDR for inbound endpoints; the VPC CIDR for82 outbound endpoints).834. **Security group egress** — the referenced security group allows84 UDP/TCP 53 outbound to the on-prem DNS server IPs (outbound endpoints)85 or to the VPC CIDR (inbound endpoints).865. **Forwarding rule domain** — the `DomainName` is a valid DNS suffix87 (e.g., `corp.example.local.`), trailing dot handled, not a TLD that88 conflicts with a public domain.896. **Forwarding target IPs** — every IP in `TargetIps` is reachable from90 the outbound endpoint subnets (route table check or caller-provided91 attestation). Port 53 is the default; non-standard ports are flagged.927. **Rule association VPC** — the target VPC exists in the same account93 and region (or is shared via `share-resolver-rule` cross-account).948. **DNS Firewall rule group priority** — the `Priority` integer on a95 new `firewall-rule-group-association` does not collide with an96 existing association on the same VPC. Lower priority = evaluated97 first.989. **Firewall domain list content** — custom domain lists use valid99 domain syntax with wildcards (`*.malware.example.`). Malformed100 entries are rejected.10110. **Firewall action consistency** — `BLOCK` actions have a102 `BlockResponse` (NXDOMAIN, NODATA, or custom IP) and optionally a103 `BlockOverrideDnsType`. `ALERT` logs but does not block. `ALLOW`104 overrides a matching BLOCK in a higher-priority group.10511. **Query log destination ARN** — the CloudWatch Logs log group, S3106 bucket, or Kinesis Data Firehose exists and the107 `route53resolver` service principal has write permission108 (`logs:PutLogEvents`, `s3:PutObject`, or `firehose:PutRecord`).10912. **Query log config name uniqueness** — `list-resolver-query-log-configs`110 returns no config with the target name.11113. **VPC DNS settings** — `enableDnsHostnames` and `enableDnsSupport`112 are both `true` on the target VPC (checked via `ec2:describe-vpc-attribute`).11314. **IAM permissions** — the operator principal holds114 `route53resolver:CreateResolverEndpoint`,115 `CreateResolverRule`, `AssociateResolverRule`,116 `CreateFirewallDomainList`, `CreateFirewallRule`,117 `CreateFirewallRuleGroupAssociation`, or118 `PutResolverQueryLogConfig` (as applicable to the operation).119120**Route 53 Resolver limits (2026):**121122- Resolver endpoints per Region: 4 inbound + 4 outbound (soft). 2-100 IPs per endpoint (>= 2 AZs).123- Resolver rules per account: 1000 (soft). Shareable cross-account via RAM.124- DNS Firewall rule groups per VPC: 5 (soft). Domain lists per account: 5000. Domains per list: 200,000.125- Query log configs per account: 2000 (soft). One query log config association per VPC.126127## Mindset128129**One-line takeaway:** Resolver silently accepts misconfigured security130groups and route tables. An outbound endpoint with a security group that131blocks egress to on-prem port 53 will deploy cleanly — DNS queries from132the VPC will time out, and the operator will blame the on-prem DNS133server. The skill enforces the networking gate at pre-check time.134135Driven by three Resolver realities:136137- **Resolver endpoints need a minimum of two subnets in two AZs.** A138 single-subnet endpoint is rejected at API time, but a two-subnet139 endpoint where both subnets are in the same AZ silently loses HA.140141- **Forwarding rules are evaluated in priority order against the VPC.**142 If two rules match the same domain suffix, the lower-priority integer143 wins. A new rule with an overlapping domain silently shadows an144 existing rule.145146- **DNS Firewall rule groups stack per VPC.** Each association has a147 priority integer; a BLOCK in priority 1 is overridden by an ALLOW in148 priority 2. Misordered priorities are the #1 cause of "why is my block149 not working" tickets.150151## Pre-flight: resolver endpoint metadata gate152153Run before classification. Misclassifying these produces wrong plans.154155**Pagination:** `list-resolver-endpoints` returns at most 100 per page156(via `--max-results`). Use `--next-token` to drain. `list-resolver-rules`157is paginated the same way.158159**Live-account pre-flight (skip if offline plan audit):**160> **Moved verbatim** → [references/diagnostic-commands.md](references/diagnostic-commands.md) § "Pre-flight — live-account command listing".161> Load when: running the live-account pre-flight (endpoint name, subnets, security groups, VPC attributes, rules, firewall associations, log destinations)162163**Malformed input:** if the Resolver spec is missing required fields164(`EndpointName`, `Direction`, `Subnets` (>= 2), or `SecurityGroupIds`),165emit `VERDICT: PREREQUISITES_MISSING` with `REASON: Resolver spec166missing required field — EndpointName, Direction, >= 2 SubnetIds in167distinct AZs, or SecurityGroupIds. Cannot plan.` and `REMEDIATION:168Provide the full endpoint configuration per169https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html.`170171| Attribute | Effect on operation |172|---|---|173| Fewer than 2 subnets | API rejects. PREREQUISITES_MISSING. |174| Both subnets in same AZ | Deploys but loses HA. Flag in NOTES; allow if user-acknowledged. |175| Security group missing UDP 53 ingress | DNS queries silently time out. PREREQUISITES_MISSING. |176| Outbound target IP unreachable from subnet route table | Forwarding rule deploys but queries fail. PREREQUISITES_MISSING. |177| Forwarding rule domain overlaps existing rule with lower priority | New rule shadows existing. Flag in NOTES. |178| DNS Firewall rule group priority collides on VPC | API rejects. PREREQUISITES_MISSING. |179| Query log destination not writable by route53resolver | Logs silently dropped. PREREQUISITES_MISSING. |180| VPC enableDnsSupport false | Resolver endpoints cannot serve. PREREQUISITES_MISSING. |181182## Process — operation planning (apply in order)183184### Step 0: Expert knowledge — non-obvious Resolver behaviors185186> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Step 0: Expert knowledge — non-obvious Resolver behaviors".187> Load when: planning any operation — endpoint IP semantics, suffix matching, SYSTEM rules, RAM sharing, firewall priority, wildcard domains, query-log association188189### Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails190191Run ALL of the following pre-checks. If ANY fails, the verdict is192PREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.193Do NOT execute.194195**For ALL operations:**1961. Endpoint/rule/config name is set, <= 64 chars, matches `[a-zA-Z0-9-]`.1972. Target VPC exists, `enableDnsSupport: true`, `enableDnsHostnames: true`.1983. IAM principal holds the relevant `route53resolver:` permission.199200**For create-resolver-endpoint (inbound or outbound):**2014. `Direction` is `INBOUND` or `OUTBOUND`.2025. `IpAddresses` contains at least 2 entries in 2 distinct AZs.2036. Each subnet in `IpAddresses` belongs to the target VPC.2047. `SecurityGroupIds` references exactly one or more existing security205 groups in the VPC.2068. For INBOUND: the security group ingress allows UDP/TCP 53 from the207 on-prem/peered source CIDR.2089. For OUTBOUND: the security group egress allows UDP/TCP 53 to the209 on-prem DNS server IPs.21010. Endpoint name does not collide with an existing endpoint211 (`list-resolver-endpoints`).212213**For create-resolver-rule (forwarding):**21411. `DomainName` is a valid DNS suffix with trailing dot.21512. `TargetIps` references at least one IP (port defaults to 53; non-53216 flagged in NOTES).21713. The domain does not overlap an existing forwarding rule with lower218 priority (flag, allow with acknowledgement).21914. `RuleType` is `FORWARD`. (`SYSTEM` rules are managed by AWS.)220221**For associate-resolver-rule:**22215. The rule exists and is in a `COMPLETE` state.22316. The target VPC exists and is not already associated with a224 conflicting rule on the same domain.225226**For create-firewall-domain-list:**22717. Domain list name does not collide.22818. (For `import-firewall-domains`): each domain is valid syntax,229 wildcard prefix `*.` supported, trailing dot optional.230231**For create-firewall-rule (in a rule group):**23219. The referenced `FirewallDomainListId` exists.23320. `Action` is one of `ALLOW`, `BLOCK`, `ALERT`.23421. For `BLOCK`: `BlockResponse` is set (`NXDOMAIN`, `NODATA`,235 `OVERRIDE`); if `OVERRIDE`, the override DNS type, value, and TTL236 are set.23722. `Priority` within the rule group does not collide with an existing238 rule.239240**For create-firewall-rule-group-association:**24123. The rule group exists.24224. `Priority` does not collide with an existing association on the243 target VPC (lower priority = evaluated first).24425. `MutationProtection` is `ENABLED` for production associations.245246**For put-resolver-query-log-config:**24726. `DestinationArn` points to an existing CloudWatch Logs log group,248 S3 bucket, or Kinesis Firehose.24927. The destination resource policy allows `route53resolver.amazonaws.com`250 to write (`logs:PutLogEvents`, `s3:PutObject`, `firehose:PutRecord`).25128. Config name does not collide.252253**For associate-resolver-query-log-config:**25429. The target VPC is not already associated with another query log255 config.256257### Step 2: READY_TO_DEPLOY — emit deployment plan258259If all pre-checks pass, emit `VERDICT: READY_TO_DEPLOY` with the exact260CLI sequence and the CONFIRM gate. The plan includes:261262- The exact `aws route53resolver create-resolver-endpoint` CLI with the263 full config (Direction, IpAddresses, SecurityGroupIds, Name, Tags).264- The follow-up `create-resolver-rule` CLI for each forwarding rule.265- The follow-up `associate-resolver-rule` CLI for each VPC association.266- The follow-up `create-firewall-domain-list` and `import-firewall-domains`267 CLIs for each custom domain list.268- The follow-up `create-firewall-rule` CLI for each rule in a group.269- The follow-up `create-firewall-rule-group-association` CLI for each VPC.270- The follow-up `put-resolver-query-log-config` and271 `associate-resolver-query-log-config` CLIs for query logging.272- The CONFIRM gate prompt.273274### Step 3: Execute behind CONFIRM gate275276- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI277 (`create-resolver-endpoint`, `create-resolver-rule`,278 `associate-resolver-rule`, `create-firewall-rule-group-association`,279 `put-resolver-query-log-config`), emit:280 `CONFIRM: About to <operation> <resource> in account <account>281 region <region>. This will <consequence>. Proceed? (yes/no)`. Do NOT282 execute until the operator confirms.283- Snapshot the current endpoint/rule config before modification:284 `aws route53resolver get-resolver-endpoint --resolver-endpoint-id <id>285 --output json > /tmp/<endpoint-name>-backup-$(date +%s).json`.286- Execute the CLI with the full config.287288### Step 4: Post-verification289290After the operation finishes, run post-verification:2912921. `get-resolver-endpoint --resolver-endpoint-id <id>` returns293 `Status: OPERATIONAL`.2942. For inbound endpoints: the IP addresses are reachable from on-prem295 (confirm with on-prem DNS admin or `dig @<ip> example.com`).2963. For outbound endpoints: the IP addresses are the source IPs the297 on-prem DNS server sees.2984. `list-resolver-rule-associations --resolver-rule-id <id>` returns299 the expected VPC associations with `Status: COMPLETE`.3005. For DNS Firewall: `list-firewall-rule-group-associations` returns301 the association with the expected priority.3026. For query logging: `list-resolver-query-log-config-associations`303 returns the VPC with `Status: COMPLETE`; verify log entries appear304 in the destination within 5 minutes.305306## Common resolver patterns (boilerplate)307308> **Moved verbatim** → [references/endpoints-and-forwarding-rules.md](references/endpoints-and-forwarding-rules.md) § "Common patterns — inbound / outbound / forwarding boilerplate".309> Load when: assembling the create-endpoint / create-rule / associate-rule CLI sequence310311> **Moved verbatim** → [references/dns-firewall-and-query-logging.md](references/dns-firewall-and-query-logging.md) § "Common patterns — DNS Firewall / query logging boilerplate".312> Load when: assembling firewall domain-list/rule/association or query-log-config CLI sequences (CloudWatch resource policy included)313314## STRICT output contract315316### Required output structure317318Every response MUST begin with this block — no preamble, no conversational319opening:320321```text322RESOLVER: <endpoint-name or rule-name>323VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING324TARGET: <endpoint-name> (endpoint-id: <id> for updates)325PRE_CHECKS:326 - [PASS] <check description>327 - [FAIL] <check description> — <reason>328STEPS:329 1. CONFIRM: About to <operation> <resource> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)330 2. <exact CLI command — no placeholders>331POST_VERIFY:332 - [PASS] <verification description>333 - [FAIL] <verification description> — <reason>334ENDPOINT_TYPE: INBOUND | OUTBOUND335SUBNETS: <count> subnets in <count> AZs336SECURITY_GROUPS: <count> (ingress: <CIDR>/<ports>; egress: <CIDR>/<ports>)337FORWARDING_RULES: <count> (domains: <list>)338FIREWALL_GROUPS: <count> associated (priorities: <list>)339QUERY_LOGS: CloudWatch | S3 | Kinesis | NONE340NOTES: <networking posture, DNS strategy, rule-priority caveats>341```342343### FORBIDDEN output patterns344345- NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT346 block is the FIRST line, always. No conversational preamble.347- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or348 `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).349- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`350 or `[FAIL]` and a specific reason for each failure. An empty351 PRE_CHECKS block is non-compliant.352- NEVER emit a plan with placeholder values (e.g., `<endpoint-id>`,353 `<account-id>`) in a READY_TO_DEPLOY plan — every field must be354 populated with actual values from the input.355- NEVER omit the CONFIRM gate as the first STEPS entry for any356 state-changing operation.357- NEVER claim success without verifying that the endpoint reached358 `OPERATIONAL` status (via `get-resolver-endpoint`).359- NEVER put-update an endpoint or rule without snapshotting the existing360 config first — updates to `SecurityGroupIds` and `TargetIps` overwrite361 silently.362- NEVER silently allow a DNS Firewall rule group association with a363 colliding priority — block it explicitly with a [FAIL] pre-check row.364365### Perfect example output366367```text368RESOLVER: prod-outbound369VERDICT: READY_TO_DEPLOY370TARGET: prod-outbound371PRE_CHECKS:372 - [PASS] Endpoint name unique (no collision in list-resolver-endpoints)373 - [PASS] 2 subnets in 2 distinct AZs (us-east-1a, us-east-1b)374 - [PASS] Security group sg-0def456 egress UDP/TCP 53 to 10.99.1.5, 10.99.2.5375 - [PASS] VPC enableDnsSupport: true, enableDnsHostnames: true376 - [PASS] Forwarding rule domain corp.example.local. is valid377 - [PASS] Target IPs reachable (10.99.1.5, 10.99.2.5 port 53)378 - [PASS] IAM principal holds route53resolver:CreateResolverEndpoint379STEPS:380 1. CONFIRM: About to create-resolver-endpoint prod-outbound in account 111111111111 region us-east-1. This will CREATE a new OUTBOUND endpoint with 2 IPs in 2 AZs. Proceed? (yes/no)381 2. aws route53resolver create-resolver-endpoint --creator-request-id outbound-1699000000 --name prod-outbound --security-group-ids sg-0def456 --direction OUTBOUND --ip-addresses '[{"SubnetId":"subnet-aaa"},{"SubnetId":"subnet-bbb"}]' --tags '[{"Key":"Environment","Value":"prod"}]'382 3. aws route53resolver create-resolver-rule --creator-request-id rule-1699000000 --name forward-corp-local --rule-type FORWARD --domain-name "corp.example.local." --resolver-endpoint-id <returned-id> --target-ips '[{"Ip":"10.99.1.5","Port":53},{"Ip":"10.99.2.5","Port":53}]'383 4. aws route53resolver associate-resolver-rule --resolver-rule-id <returned-rule-id> --vpc-id vpc-0abc123384POST_VERIFY:385 - (pending execution)386 - get-resolver-endpoint returns Status: OPERATIONAL387 - list-resolver-rule-associations returns vpc-0abc123 with Status: COMPLETE388ENDPOINT_TYPE: OUTBOUND389SUBNETS: 2 subnets in 2 AZs (us-east-1a, us-east-1b)390SECURITY_GROUPS: 1 (egress: 10.99.1.5/53, 10.99.2.5/53)391FORWARDING_RULES: 1 (domains: corp.example.local.)392FIREWALL_GROUPS: 0 associated393QUERY_LOGS: NONE394NOTES:395 - Outbound endpoint IPs (visible after creation) must be allowed by the on-prem firewall ACL.396 - Forwarding rule matches corp.example.local. and all subdomains. Trailing dot is significant.397 - Associate query log config separately if DNS query logging is required.398```399400## NEVER (top 5)401402These are the highest-impact, most-frequent failure modes in Route 53403Resolver deployments. Violating any one of these is a networking or404security regression.4054061. **NEVER create a Resolver endpoint with fewer than 2 subnets in 2407 distinct AZs.** A single-AZ endpoint loses the high-availability408 guarantee — if that AZ fails, all DNS forwarding stops. The API409 requires 2 IPs minimum, but both in the same AZ silently degrades410 HA. Block at pre-check.4114122. **NEVER deploy an outbound endpoint without verifying the security413 group egress to the on-prem DNS server IPs.** The endpoint deploys414 cleanly, but every forwarded query times out. The on-prem team sees415 no traffic and the VPC team blames the on-prem DNS server. The416 pre-check gate verifies egress on UDP/TCP 53 to the exact target IPs.4174183. **NEVER associate a DNS Firewall rule group to a VPC without419 checking priority collisions.** Each VPC can have up to 5 rule420 group associations, each with a unique priority integer. A new421 association with a colliding priority is rejected by the API — but422 a non-colliding priority that semantically overrides an existing423 ALLOW/BLOCK ordering is the #1 cause of "why is my block not424 working" tickets. Plan the priority ordering before associating.4254264. **NEVER enable query logging without a resource policy on the427 destination.** The `route53resolver` service principal needs428 `logs:PutLogEvents` (CloudWatch), `s3:PutObject` (S3), or429 `firehose:PutRecord` (Kinesis) on the destination resource. Missing430 policy = silent log drop. The pre-check gate verifies the resource431 policy.4324335. **NEVER create a forwarding rule for a domain that overlaps an434 existing rule with a lower priority integer.** The lower-priority435 rule is evaluated first and silently shadows the new rule. The436 pre-flight gate flags domain overlap and recommends priority437 reordering.438439## Expert heuristic: choosing inbound vs outbound vs both440441The right Resolver endpoint strategy is a function of where the DNS442source of truth lives, not a one-size-fits-all. The heuristic below443resolves the trade-off deterministically.444445```446Hybrid DNS scenario447 ├─ On-prem DNS is the source of truth for private domains?448 │ └─ OUTBOUND endpoint + forwarding rules for corp.example.local.449 │ VPC instances query Resolver; Resolver forwards to on-prem.450 │ On-prem firewall must allow UDP/TCP 53 from endpoint IPs.451 │452 ├─ Route 53 is the source of truth for private domains (Private Hosted Zones)?453 │ └─ INBOUND endpoint. On-prem DNS forwarder points to endpoint IPs.454 │ On-prem queries traverse Direct Connect / VPN to Resolver.455 │ Resolver answers from the Private Hosted Zone.456 │457 ├─ Both directions (corp.example.local. on-prem, internal.aws. on Route 53)?458 │ └─ BOTH endpoints. Forwarding rules for on-prem domains only.459 │ Inbound endpoint lets on-prem resolve Route 53 PHZ records.460 │ Most common enterprise pattern.461 │462 └─ Pure cloud (no on-prem)?463 └─ Neither endpoint. Resolver answers from Route 53 PHZ + public.464 Add DNS Firewall for threat protection and query logging for audit.465```466467**Decision rules:**468- Default to BOTH endpoints for enterprise hybrid environments. The469 marginal cost of a second endpoint is small compared to the DNS470 troubleshooting time it saves.471- For outbound-only, ensure the on-prem DNS servers are reachable from472 the VPC subnets (Direct Connect, VPN, or Transit Gateway).473- For inbound-only, ensure the on-prem DNS forwarder is configured to474 send to the inbound endpoint IPs (not the VPC CIDR).475- Always pair Resolver endpoints with DNS Firewall for threat protection476 (block known-malicious domains) and query logging for audit (who477 queried what, when).478- For multi-account, share forwarding rules via RAM rather than479 recreating per account. The rule is created once in the Resolver480 administrator account and shared to member accounts.481482ALWAYS emit `enableDnsSupport: true` and `enableDnsHostnames: true` on483every VPC that uses Resolver. Without both, Resolver endpoints cannot484serve the VPC.485486## Recent AWS features (2024-2026)487488> **Moved verbatim** → [references/advanced-patterns.md](references/advanced-patterns.md) § "Recent AWS features (2024-2026)".489> Load when: deciding whether a newer Resolver feature (cache TTL, ALERT metrics, Firehose, RAM OU sharing, OVERRIDE, endpoint health metrics) applies490491## AWS documentation492493- **Route 53 Resolver Developer Guide** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html494- **Resolver endpoints** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-endpoints.html495- **Resolver forwarding rules** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-rules.html496- **DNS Firewall** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-dns-firewall.html497- **Resolver query logging** — https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-query-logs.html498- **Resolver CLI reference** — https://docs.aws.amazon.com/cli/latest/reference/route53resolver/499500## References (load on demand)501502- [references/endpoints-and-forwarding-rules.md](references/endpoints-and-forwarding-rules.md) — endpoint and forwarding-rule procedures, including the inbound/outbound/forwarding boilerplate moved from SKILL.md503- [references/dns-firewall-and-query-logging.md](references/dns-firewall-and-query-logging.md) — DNS Firewall and query-logging procedures, including the firewall/query-log boilerplate moved from SKILL.md504- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 non-obvious Resolver behaviors and recent AWS features505- [references/diagnostic-commands.md](references/diagnostic-commands.md) — live-account pre-flight command listing506507## Domain508509AWS CloudOps / Networking & Content Delivery — Route 53 Resolver Provisioning.510