{
    "id": "dd6c7b98-bb28-487b-a3d4-bee0467929c0",
    "name": "Implement Public Azure DNS",
    "slug": "implement-public-azure-dns",
    "status": "published",
    "lab_type": "pta",
    "is_sample": false,
    "duration_in_seconds": 1800,
    "metadata": {
        "courses": [
            "26f9ad91-c452-41bd-87ea-284a1e3de3f3",
            "9d8d4179-9915-4895-95e6-178f7ca69436",
            "1684bedc-e75a-42a8-8912-6d5cd3cff45c"
        ],
        "pta_sdn": "391",
        "pta_namespace": "my.ine",
        "learning_paths": [],
        "has_published_parent": true
    },
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2022-10-07T16:56:54.012917Z",
    "modified": "2023-10-03T18:59:06.039428Z",
    "is_beta": false,
    "lab_objectives": [],
    "main_learning_area": "d3f82c70-f4e7-428e-afd7-4b1d28988e18",
    "learning_areas": [
        {
            "id": "d3f82c70-f4e7-428e-afd7-4b1d28988e18",
            "name": "Cloud",
            "slug": "cloud"
        }
    ],
    "categories": [],
    "tags": [],
    "difficulty": null,
    "is_web_access": true,
    "is_lab_experience": false,
    "is_featured": false,
    "cve": null,
    "severity": null,
    "year": null,
    "classification": null,
    "is_trackable": false,
    "cpe_credits": null,
    "is_skill_check": false,
    "external_url": "",
    "solution_video": null,
    "explanation_video": null,
    "description": "The goal of this task is to provision two Azure public DNS zones. One will serve as a primary zone, and the other will serve as a sub-dmoain.\n\n*Note: For this task, you will only need to test the zone configuration by querying the name server for the DNS zone directly. If you can register the DNS zone and want to test actual public access to the DNS record you are encouraged to do so. If you do plan on publically registering the DNS zones, you should acquire a domain name first. Use that name when provisioning your first DNS zone in requirement 1. For example, if you register ine-demo.com, your first DNS zone should be named ine-demo.com.*",
    "description_html": "<p>The goal of this task is to provision two Azure public DNS zones. One will serve as a primary zone, and the other will serve as a sub-dmoain.</p>\n<p><em>Note: For this task, you will only need to test the zone configuration by querying the name server for the DNS zone directly. If you can register the DNS zone and want to test actual public access to the DNS record you are encouraged to do so. If you do plan on publically registering the DNS zones, you should acquire a domain name first. Use that name when provisioning your first DNS zone in requirement 1. For example, if you register ine-demo.com, your first DNS zone should be named ine-demo.com.</em></p>",
    "tasks": "",
    "tasks_html": "",
    "published_date": "2020-05-23T04:33:00Z",
    "solutions": "# Provision DNS zones\n\nWhen you will login to your azure portal with the generated credentials. You will see that there are some resources pre created for you.\n\nThis all you will need to work with this lab.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/1.png)\n\nSearch for **dns zones** and open the **DNS zones** service as highlighted below.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/2.png)\n\nClick on **Create** to add azure dns zone.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/3.png)\n\nNow configure your DNS zone as below:\n\n* Use the assigned resource group\n* Name the DNS zone as **ine-demo.com**\n\nClick on **Review+Create**.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/4.png)\n\nAzure will validate your configurations and you will see something like the below image. Click on **Create** after you see *Validation passed*\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/5.png)\n\nIt will take time to deploy the DNS zone. You will see something like the below image after the DNS zone is deployed.\n\nYou can click on **Go to resource** to check the DNS zone you just created.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/6.png)\n\nNow you have to deploy one more DNS zone and make this as a sub-domain of the first created DNS zone.\n\nCreate a new DNS zone with below configs:\n\n* Use the assigned resource group\n* Name the DNS zone as **dev.ine-demo.com**\n\nClick on **Review+Create**.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/7.png)\n\nAzure will validate your configurations and you will see something like the below image. Click on **Create** after you see *Validation passed*\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/8.png)\n\nIt will take time to deploy the DNS zone. You will see something like the below image after the DNS zone is deployed.\n\nYou can click on **Go to resource** to check the DNS zone you just created.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/9.png)\n\nNow take a not of the nameservers, we will use these to configure it as a sub-domain of the first created DNS zone.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/10.png)\n\n# Create DNS records\n\nGo to the first created DNS zone and click on **+ Record set** to add a DNS record.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/11.png)\n\nGive it a name as **dev**, set the type as **NS** which means nameserver type record. Paste all the name servers of the second DNS zone.\n\nClick on **OK** to add the record.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/12.png)\n\nGo to the web1-vm and copy the public IP address of VM.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/15.png)\n\nGo to the child zone and click on **+ Record set** to add a DNS record.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/16.png)\n\n* Name the record as **web**\n* Use the type as **A**\n* Paste the IP address of VM copied earlier\n\nClick on **OK** to add the record.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/17.png)\n\n## Extra\n\nWe have created the second DNS zone as sub-domain of first DNS zone. This whole procedure could also be done by some simple steps as follows:\n\n**Note:** Below step is just for the information, no need to configure the child zone if configured by adding the namespace record.\n\nAfter creating the first DNS zone, open it and click on **+ Child zone**.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/13.png)\n\n* Use the assigned resource group\n* Name the child DNS zone as **dev**\n\nClick on **Review + Create** to add the dev as child zone.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/14.png)\n\nThis is a new feature added by azure. This way azure will configure everything for you.\n\n# Test DNS\n\nOpen the azure cloudshell from the below link:\n\n```\nshell.azure.com\n```\n\nClick on **Bash** to create a bash environment.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/18.png)\n\nClick on **Show advanced settings** to configure the storage for cloudshell.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/19.png)\n\nProvide a unique name for storage account and file share. Click on **Create storage** to provision the cloudshell.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/20.png)\n\nA bash environment of cloudshell will open up to you.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/21.png)\n\nUse the below command to test out the DNS record.\n\n```\nnslookup web.dev.<your primary DNS zone> <the .com. name server>\n```\n\nUse the web record and nameserver from the **2nd DNS zone**.\n\nThis will revert back with the IP address of **web1-vm**.\n\n![](https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/22.png)\n\n# Optional: Register the DNS zone\n\n**Note:** *If you registered a domain name with the public internet, you can test name resolution with your browser. In order to do this, you will need to update your domain registration with the name servers for your Azure DNS zone. Once you have done that you should be able to navigate to the DNS name of your web app server.*\n\n\nOur lab is now complete.",
    "solutions_html": "<h1>Provision DNS zones</h1>\n<p>When you will login to your azure portal with the generated credentials. You will see that there are some resources pre created for you.</p>\n<p>This all you will need to work with this lab.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/1.png\" /></p>\n<p>Search for <strong>dns zones</strong> and open the <strong>DNS zones</strong> service as highlighted below.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/2.png\" /></p>\n<p>Click on <strong>Create</strong> to add azure dns zone.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/3.png\" /></p>\n<p>Now configure your DNS zone as below:</p>\n<ul>\n<li>Use the assigned resource group</li>\n<li>Name the DNS zone as <strong>ine-demo.com</strong></li>\n</ul>\n<p>Click on <strong>Review+Create</strong>.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/4.png\" /></p>\n<p>Azure will validate your configurations and you will see something like the below image. Click on <strong>Create</strong> after you see <em>Validation passed</em></p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/5.png\" /></p>\n<p>It will take time to deploy the DNS zone. You will see something like the below image after the DNS zone is deployed.</p>\n<p>You can click on <strong>Go to resource</strong> to check the DNS zone you just created.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/6.png\" /></p>\n<p>Now you have to deploy one more DNS zone and make this as a sub-domain of the first created DNS zone.</p>\n<p>Create a new DNS zone with below configs:</p>\n<ul>\n<li>Use the assigned resource group</li>\n<li>Name the DNS zone as <strong>dev.ine-demo.com</strong></li>\n</ul>\n<p>Click on <strong>Review+Create</strong>.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/7.png\" /></p>\n<p>Azure will validate your configurations and you will see something like the below image. Click on <strong>Create</strong> after you see <em>Validation passed</em></p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/8.png\" /></p>\n<p>It will take time to deploy the DNS zone. You will see something like the below image after the DNS zone is deployed.</p>\n<p>You can click on <strong>Go to resource</strong> to check the DNS zone you just created.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/9.png\" /></p>\n<p>Now take a not of the nameservers, we will use these to configure it as a sub-domain of the first created DNS zone.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/10.png\" /></p>\n<h1>Create DNS records</h1>\n<p>Go to the first created DNS zone and click on <strong>+ Record set</strong> to add a DNS record.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/11.png\" /></p>\n<p>Give it a name as <strong>dev</strong>, set the type as <strong>NS</strong> which means nameserver type record. Paste all the name servers of the second DNS zone.</p>\n<p>Click on <strong>OK</strong> to add the record.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/12.png\" /></p>\n<p>Go to the web1-vm and copy the public IP address of VM.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/15.png\" /></p>\n<p>Go to the child zone and click on <strong>+ Record set</strong> to add a DNS record.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/16.png\" /></p>\n<ul>\n<li>Name the record as <strong>web</strong></li>\n<li>Use the type as <strong>A</strong></li>\n<li>Paste the IP address of VM copied earlier</li>\n</ul>\n<p>Click on <strong>OK</strong> to add the record.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/17.png\" /></p>\n<h2>Extra</h2>\n<p>We have created the second DNS zone as sub-domain of first DNS zone. This whole procedure could also be done by some simple steps as follows:</p>\n<p><strong>Note:</strong> Below step is just for the information, no need to configure the child zone if configured by adding the namespace record.</p>\n<p>After creating the first DNS zone, open it and click on <strong>+ Child zone</strong>.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/13.png\" /></p>\n<ul>\n<li>Use the assigned resource group</li>\n<li>Name the child DNS zone as <strong>dev</strong></li>\n</ul>\n<p>Click on <strong>Review + Create</strong> to add the dev as child zone.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/14.png\" /></p>\n<p>This is a new feature added by azure. This way azure will configure everything for you.</p>\n<h1>Test DNS</h1>\n<p>Open the azure cloudshell from the below link:</p>\n<pre class=\"codehilite\"><code>shell.azure.com</code></pre>\n\n<p>Click on <strong>Bash</strong> to create a bash environment.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/18.png\" /></p>\n<p>Click on <strong>Show advanced settings</strong> to configure the storage for cloudshell.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/19.png\" /></p>\n<p>Provide a unique name for storage account and file share. Click on <strong>Create storage</strong> to provision the cloudshell.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/20.png\" /></p>\n<p>A bash environment of cloudshell will open up to you.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/21.png\" /></p>\n<p>Use the below command to test out the DNS record.</p>\n<pre class=\"codehilite\"><code>nslookup web.dev.&lt;your primary DNS zone&gt; &lt;the .com. name server&gt;</code></pre>\n\n<p>Use the web record and nameserver from the <strong>2nd DNS zone</strong>.</p>\n<p>This will revert back with the IP address of <strong>web1-vm</strong>.</p>\n<p><img alt=\"\" src=\"https://assets.ine.com/content/labs/azure-course-labs/implement-public-azure-dns/22.png\" /></p>\n<h1>Optional: Register the DNS zone</h1>\n<p><strong>Note:</strong> <em>If you registered a domain name with the public internet, you can test name resolution with your browser. In order to do this, you will need to update your domain registration with the name servers for your Azure DNS zone. Once you have done that you should be able to navigate to the DNS name of your web app server.</em></p>\n<p>Our lab is now complete.</p>",
    "flags": [],
    "min_points_to_pass": null,
    "access_type": "web",
    "user_status": "unstarted",
    "user_lab_status": null,
    "user_status_modified": null,
    "user_flags": [],
    "global_running_session": null
}