{"id":234,"date":"2021-08-29T16:43:00","date_gmt":"2021-08-29T14:43:00","guid":{"rendered":"https:\/\/greg.klonis.gr\/?p=234"},"modified":"2021-10-14T14:59:26","modified_gmt":"2021-10-14T12:59:26","slug":"azure-private-dns-zone","status":"publish","type":"post","link":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone","title":{"rendered":"Azure Private DNS zone"},"content":{"rendered":"\n<p>A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. To publish a private DNS zone to your virtual network, you specify the list of virtual networks that are allowed to resolve records within the zone. These are called linked virtual networks. When auto registration is enabled, Azure DNS also updates the zone records whenever a virtual machine is created, changes its&#8217; IP address, or is deleted.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Let&#8217;s create a private DNS Zone!<\/p>\n\n\n\n<p>Login to the Azure Portal and on the search bar on top of the page type &#8220;private dns zone&#8221;. Click on the Private DNS Zone icon and the click create.<\/p>\n\n\n\n<p>On the creation page: select subscription, resource group, the name of your dns zone and then click Review + Create.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"809\" src=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg\" alt=\"\" class=\"wp-image-235\" srcset=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg 1024w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-300x237.jpg 300w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-768x606.jpg 768w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create.jpg 1041w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Now we have to link the Private DNS Zone with an Azure VNet.<\/p>\n\n\n\n<p>Go to Virtual Network Links and then Click Add.<\/p>\n\n\n\n<p>Give a name, the subscription and select the VNet that you want to link with.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"786\" src=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create_link-1024x786.jpg\" alt=\"\" class=\"wp-image-237\" srcset=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create_link-1024x786.jpg 1024w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create_link-300x230.jpg 300w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create_link-768x590.jpg 768w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create_link.jpg 1085w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>NOTE: The &#8220;Enable auto registration&#8221; setting enables automatic creation of DNS records in this Private DNS zone, for the virtual machines connected to the virtual network.<\/p>\n\n\n\n<p>Let&#8217;s test it.<\/p>\n\n\n\n<p>I just created 2 Virtual Machines.<\/p>\n\n\n\n<p>At first, the auto registration works!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration-1024x499.jpg\" alt=\"\" class=\"wp-image-241\" srcset=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration-1024x499.jpg 1024w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration-300x146.jpg 300w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration-768x374.jpg 768w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration-1536x748.jpg 1536w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration-1200x585.jpg 1200w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/autoregistration.jpg 1599w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Let&#8217;s ping vm02 from vm01 with fqdn&#8230;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"424\" src=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/test_ping_hostname.jpg\" alt=\"\" class=\"wp-image-242\" srcset=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/test_ping_hostname.jpg 931w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/test_ping_hostname-300x137.jpg 300w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/test_ping_hostname-768x350.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>It Works \ud83d\ude42<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. To publish a private DNS zone to your virtual &hellip; <a href=\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Azure Private DNS zone&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,49],"tags":[22,27],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-cloud","category-microsoft-azure-cloud","tag-azure","tag-dns"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Azure Private DNS zone &#8226; Gregory Klonis IT Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Azure Private DNS zone &#8226; Gregory Klonis IT Blog\" \/>\n<meta property=\"og:description\" content=\"A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. To publish a private DNS zone to your virtual &hellip; Continue reading &quot;Azure Private DNS zone&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\" \/>\n<meta property=\"og:site_name\" content=\"Gregory Klonis IT Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/gklonis\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/gklonis\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-29T14:43:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-14T12:59:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg\" \/>\n<meta name=\"author\" content=\"gklonis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gklonis\" \/>\n<meta name=\"twitter:site\" content=\"@gklonis\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gklonis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#article\",\"isPartOf\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\"},\"author\":{\"name\":\"gklonis\",\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\"},\"headline\":\"Azure Private DNS zone\",\"datePublished\":\"2021-08-29T14:43:00+00:00\",\"dateModified\":\"2021-10-14T12:59:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\"},\"wordCount\":251,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\"},\"image\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg\",\"keywords\":[\"Azure\",\"DNS\"],\"articleSection\":[\"Cloud\",\"Microsoft Azure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\",\"url\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\",\"name\":\"Azure Private DNS zone &#8226; Gregory Klonis IT Blog\",\"isPartOf\":{\"@id\":\"https:\/\/greg.klonis.gr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg\",\"datePublished\":\"2021-08-29T14:43:00+00:00\",\"dateModified\":\"2021-10-14T12:59:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage\",\"url\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create.jpg\",\"contentUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create.jpg\",\"width\":1041,\"height\":822},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greg.klonis.gr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Azure Private DNS zone\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greg.klonis.gr\/#website\",\"url\":\"https:\/\/greg.klonis.gr\/\",\"name\":\"Gregory Klonis IT Blog\",\"description\":\"IT Infrastructure Blog\",\"publisher\":{\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greg.klonis.gr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\",\"name\":\"gklonis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png\",\"contentUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png\",\"width\":240,\"height\":136,\"caption\":\"gklonis\"},\"logo\":{\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/greg.klonis.gr\",\"https:\/\/www.facebook.com\/gklonis\/\",\"https:\/\/www.linkedin.com\/in\/gklonis\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Azure Private DNS zone &#8226; Gregory Klonis IT Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone","og_locale":"en_US","og_type":"article","og_title":"Azure Private DNS zone &#8226; Gregory Klonis IT Blog","og_description":"A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. To publish a private DNS zone to your virtual &hellip; Continue reading \"Azure Private DNS zone\"","og_url":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone","og_site_name":"Gregory Klonis IT Blog","article_publisher":"https:\/\/www.facebook.com\/gklonis\/","article_author":"https:\/\/www.facebook.com\/gklonis\/","article_published_time":"2021-08-29T14:43:00+00:00","article_modified_time":"2021-10-14T12:59:26+00:00","og_image":[{"url":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg","type":"","width":"","height":""}],"author":"gklonis","twitter_card":"summary_large_image","twitter_creator":"@gklonis","twitter_site":"@gklonis","twitter_misc":{"Written by":"gklonis","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#article","isPartOf":{"@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone"},"author":{"name":"gklonis","@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04"},"headline":"Azure Private DNS zone","datePublished":"2021-08-29T14:43:00+00:00","dateModified":"2021-10-14T12:59:26+00:00","mainEntityOfPage":{"@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone"},"wordCount":251,"commentCount":0,"publisher":{"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04"},"image":{"@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage"},"thumbnailUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg","keywords":["Azure","DNS"],"articleSection":["Cloud","Microsoft Azure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone","url":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone","name":"Azure Private DNS zone &#8226; Gregory Klonis IT Blog","isPartOf":{"@id":"https:\/\/greg.klonis.gr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage"},"image":{"@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage"},"thumbnailUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create-1024x809.jpg","datePublished":"2021-08-29T14:43:00+00:00","dateModified":"2021-10-14T12:59:26+00:00","breadcrumb":{"@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#primaryimage","url":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create.jpg","contentUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/10\/create.jpg","width":1041,"height":822},{"@type":"BreadcrumbList","@id":"https:\/\/greg.klonis.gr\/index.php\/azure-private-dns-zone#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greg.klonis.gr\/"},{"@type":"ListItem","position":2,"name":"Azure Private DNS zone"}]},{"@type":"WebSite","@id":"https:\/\/greg.klonis.gr\/#website","url":"https:\/\/greg.klonis.gr\/","name":"Gregory Klonis IT Blog","description":"IT Infrastructure Blog","publisher":{"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greg.klonis.gr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04","name":"gklonis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/","url":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png","contentUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png","width":240,"height":136,"caption":"gklonis"},"logo":{"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/greg.klonis.gr","https:\/\/www.facebook.com\/gklonis\/","https:\/\/www.linkedin.com\/in\/gklonis\/"]}]}},"_links":{"self":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":6,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}