[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P1TNYCZECRGTC1A0373B65":3,"skill-same:01M6P1TNYCZECRGTC1A0373B65":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":29,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6P1TNYCZECRGTC1A0373B65","dns-management",null,"Configure DNS zones and records. Manage Route53, Cloud DNS, and self-hosted DNS. Use when setting up DNS infrastructure.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fdns-management\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"dns management","dns","management","community","relevant","route53","scripts","critical","os","platform","self","main","security","self-hosted","up","only","configure","access","devops-security","infrastructure","2026-11-10 10:12:30",false,"---\nname: dns-management\ndescription: Configure DNS zones and records. Manage Route53, Cloud DNS, and self-hosted\n  DNS. Use when setting up DNS infrastructure.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant OS\u002Fplatform tooling and privileged access where\n  noted. Docs-only; helper scripts and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# DNS Management\n\nConfigure and manage DNS zones, records, and resolution for production infrastructure.\n\n## When to Use\n\n- Setting up domains for web applications, APIs, and email.\n- Migrating DNS providers or consolidating zones.\n- Configuring DNS for CDN, load balancers, and cloud services.\n- Troubleshooting resolution failures, propagation delays, or misconfigurations.\n- Implementing DNSSEC, SPF, DKIM, and DMARC for email security.\n\n## Prerequisites\n\n- Domain registered with a registrar (Namecheap, Route53, Google Domains, Cloudflare).\n- Access to DNS provider dashboard or API.\n- AWS CLI configured (for Route53 examples).\n- `dig` and `nslookup` available locally (included in most OS installs).\n\n## DNS Record Types Reference\n\n| Type  | Purpose | Example Value |\n|-------|---------|---------------|\n| A     | IPv4 address | `93.184.216.34` |\n| AAAA  | IPv6 address | `2606:2800:220:1:248:1893:25c8:1946` |\n| CNAME | Alias to another domain | `www.example.com -> example.com` |\n| MX    | Mail server with priority | `10 mail.example.com` |\n| TXT   | Arbitrary text (SPF, DKIM, verification) | `v=spf1 include:_spf.google.com ~all` |\n| NS    | Authoritative name servers | `ns1.example.com` |\n| SRV   | Service location (host, port, priority) | `10 5 5060 sip.example.com` |\n| CAA   | Certificate Authority Authorization | `0 issue \"letsencrypt.org\"` |\n| PTR   | Reverse DNS lookup | `34.216.184.93.in-addr.arpa` |\n\n## AWS Route 53\n\n### Hosted Zone Management\n\n```bash\n# Create a hosted zone\naws route53 create-hosted-zone \\\n  --name example.com \\\n  --caller-reference \"$(date +%s)\"\n\n# List hosted zones\naws route53 list-hosted-zones\n\n# Get name servers for a zone (update at your registrar)\naws route53 get-hosted-zone --id Z1234567890ABC \\\n  --query 'DelegationSet.NameServers'\n```\n\n### Create and Manage Records\n\n```bash\n# Create an A record\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"CREATE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"app.example.com\",\n        \"Type\": \"A\",\n        \"TTL\": 300,\n        \"ResourceRecords\": [{\"Value\": \"93.184.216.34\"}]\n      }\n    }]\n  }'\n\n# Create a CNAME record\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"CREATE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"www.example.com\",\n        \"Type\": \"CNAME\",\n        \"TTL\": 300,\n        \"ResourceRecords\": [{\"Value\": \"example.com\"}]\n      }\n    }]\n  }'\n\n# Create an alias record (no TTL, Route53-specific)\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"CREATE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"example.com\",\n        \"Type\": \"A\",\n        \"AliasTarget\": {\n          \"HostedZoneId\": \"Z2FDTNDATAQYW2\",\n          \"DNSName\": \"d1234567890.cloudfront.net\",\n          \"EvaluateTargetHealth\": false\n        }\n      }\n    }]\n  }'\n\n# List records in a zone\naws route53 list-resource-record-sets --hosted-zone-id Z1234567890ABC\n\n# Delete a record (Action: DELETE with exact match)\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"DELETE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"old.example.com\",\n        \"Type\": \"A\",\n        \"TTL\": 300,\n        \"ResourceRecords\": [{\"Value\": \"1.2.3.4\"}]\n      }\n    }]\n  }'\n```\n\n### Route 53 Health Checks\n\n```bash\n# Create a health check\naws route53 create-health-check --caller-reference \"$(date +%s)\" \\\n  --health-check-config '{\n    \"IPAddress\": \"93.184.216.34\",\n    \"Port\": 443,\n    \"Type\": \"HTTPS\",\n    \"ResourcePath\": \"\u002Fhealth\",\n    \"RequestInterval\": 30,\n    \"FailureThreshold\": 3\n  }'\n```\n\n## Cloudflare DNS\n\n### Manage Records via API\n\n```bash\n# Get zone ID\nZONE_ID=$(curl -s \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones?name=example.com\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" | jq -r '.result[0].id')\n\n# Create an A record (proxied through Cloudflare)\ncurl -X POST \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"type\":\"A\",\"name\":\"app\",\"content\":\"93.184.216.34\",\"proxied\":true,\"ttl\":1}'\n\n# Create a CNAME record (DNS only, not proxied)\ncurl -X POST \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" \\\n  -d '{\"type\":\"CNAME\",\"name\":\"docs\",\"content\":\"docs.readthedocs.io\",\"proxied\":false,\"ttl\":3600}'\n\n# List all records\ncurl -s \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" | jq '.result[] | {name, type, content, proxied}'\n\n# Delete a record\ncurl -X DELETE \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\u002F$RECORD_ID\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\"\n```\n\n## Terraform DNS Management\n\n### Route 53 with Terraform\n\n```hcl\n# dns.tf\nresource \"aws_route53_zone\" \"main\" {\n  name = \"example.com\"\n}\n\nresource \"aws_route53_record\" \"app\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"app.example.com\"\n  type    = \"A\"\n  ttl     = 300\n  records = [\"93.184.216.34\"]\n}\n\nresource \"aws_route53_record\" \"www\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"www.example.com\"\n  type    = \"CNAME\"\n  ttl     = 300\n  records = [\"example.com\"]\n}\n\n# Alias record for CloudFront\nresource \"aws_route53_record\" \"cdn\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"example.com\"\n  type    = \"A\"\n\n  alias {\n    name                   = aws_cloudfront_distribution.main.domain_name\n    zone_id                = aws_cloudfront_distribution.main.hosted_zone_id\n    evaluate_target_health = false\n  }\n}\n\n# Email records\nresource \"aws_route53_record\" \"mx\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"example.com\"\n  type    = \"MX\"\n  ttl     = 3600\n  records = [\n    \"1 aspmx.l.google.com\",\n    \"5 alt1.aspmx.l.google.com\",\n    \"5 alt2.aspmx.l.google.com\",\n  ]\n}\n\nresource \"aws_route53_record\" \"spf\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"example.com\"\n  type    = \"TXT\"\n  ttl     = 3600\n  records = [\"v=spf1 include:_spf.google.com ~all\"]\n}\n\nresource \"aws_route53_record\" \"dmarc\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"_dmarc.example.com\"\n  type    = \"TXT\"\n  ttl     = 3600\n  records = [\"v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com; pct=100\"]\n}\n```\n\n### Cloudflare with Terraform\n\n```hcl\nresource \"cloudflare_record\" \"app\" {\n  zone_id = var.cloudflare_zone_id\n  name    = \"app\"\n  content = \"93.184.216.34\"\n  type    = \"A\"\n  proxied = true\n}\n\nresource \"cloudflare_record\" \"mail\" {\n  zone_id  = var.cloudflare_zone_id\n  name     = \"@\"\n  content  = \"aspmx.l.google.com\"\n  type     = \"MX\"\n  priority = 1\n}\n```\n\n## DNS Troubleshooting Commands\n\n### dig\n\n```bash\n# Query A record\ndig app.example.com A +short\n\n# Query from a specific DNS server\ndig @8.8.8.8 app.example.com A\n\n# Show full answer with TTL\ndig app.example.com A +noall +answer\n\n# Query MX records\ndig example.com MX +short\n\n# Trace the full resolution path\ndig app.example.com +trace\n\n# Check DNSSEC validation\ndig example.com +dnssec +short\n\n# Query TXT records (SPF, DKIM)\ndig example.com TXT +short\ndig default._domainkey.example.com TXT +short\n```\n\n### nslookup\n\n```bash\n# Basic lookup\nnslookup app.example.com\n\n# Specify DNS server\nnslookup app.example.com 8.8.8.8\n\n# Query specific record type\nnslookup -type=MX example.com\nnslookup -type=TXT example.com\n```\n\n### Check DNS Propagation\n\n```bash\n# Query multiple public resolvers\nfor dns in 8.8.8.8 1.1.1.1 9.9.9.9 208.67.222.222; do\n  echo \"=== $dns ===\"\n  dig @$dns app.example.com A +short\ndone\n```\n\n## Email Security Records\n\n```bash\n# SPF — authorize sending servers\n# TXT record on example.com\n\"v=spf1 include:_spf.google.com include:sendgrid.net -all\"\n\n# DKIM — email signing verification\n# TXT record on google._domainkey.example.com\n# (value provided by your email provider)\n\n# DMARC — policy for failed SPF\u002FDKIM\n# TXT record on _dmarc.example.com\n\"v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com; pct=100\"\n```\n\n## TTL Strategies\n\n| Scenario | Recommended TTL | Rationale |\n|----------|----------------|-----------|\n| Stable production records | 3600-86400 (1h-24h) | Reduce DNS queries, faster resolution |\n| Pre-migration warmup | 60-300 (1-5 min) | Lower TTL days before migration |\n| During migration\u002Ffailover | 60 | Fast propagation of changes |\n| Post-migration cooldown | Gradually increase to 3600+ | Return to normal after confirming stability |\n| Load-balanced records | 60-300 | Allow health-check-driven failover |\n\n## Troubleshooting\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| DNS changes not visible | TTL not expired on recursive resolvers | Wait for old TTL to expire; lower TTL before next change |\n| `SERVFAIL` response | DNSSEC validation failure or broken delegation | Check NS records at registrar; verify DNSSEC signatures |\n| `NXDOMAIN` for valid record | Wrong hosted zone or missing record | Verify record exists with `dig @\u003Cauthoritative-ns> domain` |\n| CNAME at zone apex returns error | CNAME not allowed at zone apex per RFC | Use ALIAS (Route53) or proxied A record (Cloudflare) |\n| Email going to spam | Missing or broken SPF\u002FDKIM\u002FDMARC | Verify TXT records with `dig example.com TXT`; test at mail-tester.com |\n| Slow resolution | Recursive resolver far from authoritative NS | Use Anycast DNS providers (Cloudflare, Route53) |\n| Inconsistent results across resolvers | Partial propagation or cache poisoning | Query authoritative NS directly; check for conflicting records |\n\n## Related Skills\n\n- cdn-setup (`cdn-setup`) - CDN CNAME and alias record configuration\n- load-balancing (`load-balancing`) - DNS-based load balancing and health checks\n- cloudflare-zero-trust (`cloudflare-zero-trust`) - Tunnel DNS routing\n- reverse-proxy (`reverse-proxy`) - Connecting domains to backend services\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n","# DNS Management\n\nConfigure and manage DNS zones, records, and resolution for production infrastructure.\n\n## When to Use\n\n- Setting up domains for web applications, APIs, and email.\n- Migrating DNS providers or consolidating zones.\n- Configuring DNS for CDN, load balancers, and cloud services.\n- Troubleshooting resolution failures, propagation delays, or misconfigurations.\n- Implementing DNSSEC, SPF, DKIM, and DMARC for email security.\n\n## Prerequisites\n\n- Domain registered with a registrar (Namecheap, Route53, Google Domains, Cloudflare).\n- Access to DNS provider dashboard or API.\n- AWS CLI configured (for Route53 examples).\n- `dig` and `nslookup` available locally (included in most OS installs).\n\n## DNS Record Types Reference\n\n| Type  | Purpose | Example Value |\n|-------|---------|---------------|\n| A     | IPv4 address | `93.184.216.34` |\n| AAAA  | IPv6 address | `2606:2800:220:1:248:1893:25c8:1946` |\n| CNAME | Alias to another domain | `www.example.com -> example.com` |\n| MX    | Mail server with priority | `10 mail.example.com` |\n| TXT   | Arbitrary text (SPF, DKIM, verification) | `v=spf1 include:_spf.google.com ~all` |\n| NS    | Authoritative name servers | `ns1.example.com` |\n| SRV   | Service location (host, port, priority) | `10 5 5060 sip.example.com` |\n| CAA   | Certificate Authority Authorization | `0 issue \"letsencrypt.org\"` |\n| PTR   | Reverse DNS lookup | `34.216.184.93.in-addr.arpa` |\n\n## AWS Route 53\n\n### Hosted Zone Management\n\n```bash\n# Create a hosted zone\naws route53 create-hosted-zone \\\n  --name example.com \\\n  --caller-reference \"$(date +%s)\"\n\n# List hosted zones\naws route53 list-hosted-zones\n\n# Get name servers for a zone (update at your registrar)\naws route53 get-hosted-zone --id Z1234567890ABC \\\n  --query 'DelegationSet.NameServers'\n```\n\n### Create and Manage Records\n\n```bash\n# Create an A record\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"CREATE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"app.example.com\",\n        \"Type\": \"A\",\n        \"TTL\": 300,\n        \"ResourceRecords\": [{\"Value\": \"93.184.216.34\"}]\n      }\n    }]\n  }'\n\n# Create a CNAME record\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"CREATE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"www.example.com\",\n        \"Type\": \"CNAME\",\n        \"TTL\": 300,\n        \"ResourceRecords\": [{\"Value\": \"example.com\"}]\n      }\n    }]\n  }'\n\n# Create an alias record (no TTL, Route53-specific)\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"CREATE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"example.com\",\n        \"Type\": \"A\",\n        \"AliasTarget\": {\n          \"HostedZoneId\": \"Z2FDTNDATAQYW2\",\n          \"DNSName\": \"d1234567890.cloudfront.net\",\n          \"EvaluateTargetHealth\": false\n        }\n      }\n    }]\n  }'\n\n# List records in a zone\naws route53 list-resource-record-sets --hosted-zone-id Z1234567890ABC\n\n# Delete a record (Action: DELETE with exact match)\naws route53 change-resource-record-sets \\\n  --hosted-zone-id Z1234567890ABC \\\n  --change-batch '{\n    \"Changes\": [{\n      \"Action\": \"DELETE\",\n      \"ResourceRecordSet\": {\n        \"Name\": \"old.example.com\",\n        \"Type\": \"A\",\n        \"TTL\": 300,\n        \"ResourceRecords\": [{\"Value\": \"1.2.3.4\"}]\n      }\n    }]\n  }'\n```\n\n### Route 53 Health Checks\n\n```bash\n# Create a health check\naws route53 create-health-check --caller-reference \"$(date +%s)\" \\\n  --health-check-config '{\n    \"IPAddress\": \"93.184.216.34\",\n    \"Port\": 443,\n    \"Type\": \"HTTPS\",\n    \"ResourcePath\": \"\u002Fhealth\",\n    \"RequestInterval\": 30,\n    \"FailureThreshold\": 3\n  }'\n```\n\n## Cloudflare DNS\n\n### Manage Records via API\n\n```bash\n# Get zone ID\nZONE_ID=$(curl -s \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones?name=example.com\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" | jq -r '.result[0].id')\n\n# Create an A record (proxied through Cloudflare)\ncurl -X POST \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"type\":\"A\",\"name\":\"app\",\"content\":\"93.184.216.34\",\"proxied\":true,\"ttl\":1}'\n\n# Create a CNAME record (DNS only, not proxied)\ncurl -X POST \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" \\\n  -d '{\"type\":\"CNAME\",\"name\":\"docs\",\"content\":\"docs.readthedocs.io\",\"proxied\":false,\"ttl\":3600}'\n\n# List all records\ncurl -s \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\" | jq '.result[] | {name, type, content, proxied}'\n\n# Delete a record\ncurl -X DELETE \"https:\u002F\u002Fapi.cloudflare.com\u002Fclient\u002Fv4\u002Fzones\u002F$ZONE_ID\u002Fdns_records\u002F$RECORD_ID\" \\\n  -H \"Authorization: Bearer $CF_API_TOKEN\"\n```\n\n## Terraform DNS Management\n\n### Route 53 with Terraform\n\n```hcl\n# dns.tf\nresource \"aws_route53_zone\" \"main\" {\n  name = \"example.com\"\n}\n\nresource \"aws_route53_record\" \"app\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"app.example.com\"\n  type    = \"A\"\n  ttl     = 300\n  records = [\"93.184.216.34\"]\n}\n\nresource \"aws_route53_record\" \"www\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"www.example.com\"\n  type    = \"CNAME\"\n  ttl     = 300\n  records = [\"example.com\"]\n}\n\n# Alias record for CloudFront\nresource \"aws_route53_record\" \"cdn\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"example.com\"\n  type    = \"A\"\n\n  alias {\n    name                   = aws_cloudfront_distribution.main.domain_name\n    zone_id                = aws_cloudfront_distribution.main.hosted_zone_id\n    evaluate_target_health = false\n  }\n}\n\n# Email records\nresource \"aws_route53_record\" \"mx\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"example.com\"\n  type    = \"MX\"\n  ttl     = 3600\n  records = [\n    \"1 aspmx.l.google.com\",\n    \"5 alt1.aspmx.l.google.com\",\n    \"5 alt2.aspmx.l.google.com\",\n  ]\n}\n\nresource \"aws_route53_record\" \"spf\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"example.com\"\n  type    = \"TXT\"\n  ttl     = 3600\n  records = [\"v=spf1 include:_spf.google.com ~all\"]\n}\n\nresource \"aws_route53_record\" \"dmarc\" {\n  zone_id = aws_route53_zone.main.zone_id\n  name    = \"_dmarc.example.com\"\n  type    = \"TXT\"\n  ttl     = 3600\n  records = [\"v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com; pct=100\"]\n}\n```\n\n### Cloudflare with Terraform\n\n```hcl\nresource \"cloudflare_record\" \"app\" {\n  zone_id = var.cloudflare_zone_id\n  name    = \"app\"\n  content = \"93.184.216.34\"\n  type    = \"A\"\n  proxied = true\n}\n\nresource \"cloudflare_record\" \"mail\" {\n  zone_id  = var.cloudflare_zone_id\n  name     = \"@\"\n  content  = \"aspmx.l.google.com\"\n  type     = \"MX\"\n  priority = 1\n}\n```\n\n## DNS Troubleshooting Commands\n\n### dig\n\n```bash\n# Query A record\ndig app.example.com A +short\n\n# Query from a specific DNS server\ndig @8.8.8.8 app.example.com A\n\n# Show full answer with TTL\ndig app.example.com A +noall +answer\n\n# Query MX records\ndig example.com MX +short\n\n# Trace the full resolution path\ndig app.example.com +trace\n\n# Check DNSSEC validation\ndig example.com +dnssec +short\n\n# Query TXT records (SPF, DKIM)\ndig example.com TXT +short\ndig default._domainkey.example.com TXT +short\n```\n\n### nslookup\n\n```bash\n# Basic lookup\nnslookup app.example.com\n\n# Specify DNS server\nnslookup app.example.com 8.8.8.8\n\n# Query specific record type\nnslookup -type=MX example.com\nnslookup -type=TXT example.com\n```\n\n### Check DNS Propagation\n\n```bash\n# Query multiple public resolvers\nfor dns in 8.8.8.8 1.1.1.1 9.9.9.9 208.67.222.222; do\n  echo \"=== $dns ===\"\n  dig @$dns app.example.com A +short\ndone\n```\n\n## Email Security Records\n\n```bash\n# SPF — authorize sending servers\n# TXT record on example.com\n\"v=spf1 include:_spf.google.com include:sendgrid.net -all\"\n\n# DKIM — email signing verification\n# TXT record on google._domainkey.example.com\n# (value provided by your email provider)\n\n# DMARC — policy for failed SPF\u002FDKIM\n# TXT record on _dmarc.example.com\n\"v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com; pct=100\"\n```\n\n## TTL Strategies\n\n| Scenario | Recommended TTL | Rationale |\n|----------|----------------|-----------|\n| Stable production records | 3600-86400 (1h-24h) | Reduce DNS queries, faster resolution |\n| Pre-migration warmup | 60-300 (1-5 min) | Lower TTL days before migration |\n| During migration\u002Ffailover | 60 | Fast propagation of changes |\n| Post-migration cooldown | Gradually increase to 3600+ | Return to normal after confirming stability |\n| Load-balanced records | 60-300 | Allow health-check-driven failover |\n\n## Troubleshooting\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| DNS changes not visible | TTL not expired on recursive resolvers | Wait for old TTL to expire; lower TTL before next change |\n| `SERVFAIL` response | DNSSEC validation failure or broken delegation | Check NS records at registrar; verify DNSSEC signatures |\n| `NXDOMAIN` for valid record | Wrong hosted zone or missing record | Verify record exists with `dig @\u003Cauthoritative-ns> domain` |\n| CNAME at zone apex returns error | CNAME not allowed at zone apex per RFC | Use ALIAS (Route53) or proxied A record (Cloudflare) |\n| Email going to spam | Missing or broken SPF\u002FDKIM\u002FDMARC | Verify TXT records with `dig example.com TXT`; test at mail-tester.com |\n| Slow resolution | Recursive resolver far from authoritative NS | Use Anycast DNS providers (Cloudflare, Route53) |\n| Inconsistent results across resolvers | Partial propagation or cache poisoning | Query authoritative NS directly; check for conflicting records |\n\n## Related Skills\n\n- cdn-setup (`cdn-setup`) - CDN CNAME and alias record configuration\n- load-balancing (`load-balancing`) - DNS-based load balancing and health checks\n- cloudflare-zero-trust (`cloudflare-zero-trust`) - Tunnel DNS routing\n- reverse-proxy (`reverse-proxy`) - Connecting domains to backend services\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n",{"name":5,"risk":25,"source":43,"license":14,"category":44,"metadata":45,"date_added":48,"description":7,"source_repo":49,"source_type":21,"compatibility":50,"license_source":51},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":46,"version":47},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant OS\u002Fplatform tooling and privileged access where noted. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fdns-management","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill dns-management",{"tool":63,"command":64},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill dns-management",{"tool":66,"command":67},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill dns-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fdns-management\u002FSKILL.md",true,[],[72,94,118,143,171,195],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":83,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[78],{"categoryNo":79,"categoryName":80,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[84,85,86,87,88,89,74,90,36,35,34,33,21,29,91,25,92,24,22,93],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","active","scope","implementing",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,109,110,111,112,113,33,114,21,115,116,25,117],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[125,126,127,128,129,130,131,132,133,134,135,136,137,21,29,138,139,140,141,142],"transcript","youtube transcript","youtube","safe","github","codex","research","license","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":160,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[149,152,155],{"categoryNo":150,"categoryName":151,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":153,"categoryName":154,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":156,"categoryName":157,"taxonomyType":158,"taxonomyTypeDesc":159},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[125,126,127,161,128,162,129,130,132,163,164,165,166,135,167,21,29,168,169,170],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":181,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[177,180],{"categoryNo":178,"categoryName":179,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":153,"categoryName":154,"taxonomyType":81,"taxonomyTypeDesc":82},[127,182,183,105,128,184,185,186,187,132,165,188,189,190,191,29,192,138,193,194],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":202,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[201],{"categoryNo":150,"categoryName":151,"taxonomyType":81,"taxonomyTypeDesc":82},[203,127,204,205,128,162,163,206,207,164,165,166,135,208,167,21,29,168,209,141],"youtube full","full","google","server","dlp","credits","automatic"]