{
  "id": "04",
  "content": [
    {
      "type": "heading",
      "text": "CNAME Records and Host Aliases"
    },
    {
      "type": "text",
      "html": "A <code>CNAME</code> record makes one hostname an alias of another hostname. It is common for <code>www</code>, hosted apps, CDNs, landing page platforms, and SaaS tools."
    },
    {
      "type": "text",
      "html": "A CNAME normally cannot be placed at the zone apex/root in traditional DNS because the root also needs other records. Some DNS providers offer flattening or ALIAS-style features to solve this."
    },
    {
      "type": "callout",
      "style": "info",
      "html": "<strong>Practice:</strong> Use CNAMEs for subdomains such as <code>www</code>, <code>shop</code>, or <code>learn</code> when a platform gives you a target hostname instead of an IP."
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "What does a CNAME do?",
        "options": [
          {
            "id": "a",
            "text": "Makes one hostname an alias of another hostname"
          },
          {
            "id": "b",
            "text": "Stores an email inbox password"
          },
          {
            "id": "c",
            "text": "Compresses images"
          }
        ],
        "correct": [
          "a"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "Where are CNAMEs commonly used?",
        "options": [
          {
            "id": "a",
            "text": "Subdomains connected to platforms or CDNs"
          },
          {
            "id": "b",
            "text": "Inside HTML paragraphs only"
          },
          {
            "id": "c",
            "text": "As replacement for all legal pages"
          }
        ],
        "correct": [
          "a"
        ]
      }
    ]
  }
}
