{"id":5087,"date":"2024-05-22T15:30:44","date_gmt":"2024-05-22T22:30:44","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=5087"},"modified":"2024-05-22T15:30:46","modified_gmt":"2024-05-22T22:30:46","slug":"how-to-setup-dns-conditional-forwarder-for-subdomains-on-windows-2019-server","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=5087","title":{"rendered":"How to Setup DNS Conditional Forwarder for Subdomains on Windows 2019 Server"},"content":{"rendered":"\n<p>Around a week ago I redid my lab network and added 2 new domain controllers. I used one of my website domains as the lab domain to mimic how a corporation could be setup.<\/p>\n\n\n\n<p>So the domain for my network was \u201c<strong>voltdrift\u201d<\/strong>&nbsp;and the website domain is externally hosted with the domain of \u201c<strong><a href=\"http:\/\/www.voltdrift.com\/\">www.voltdrift.com<\/a><\/strong>\u201c<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Problem: DNS will not resolve subdomains.<\/h3>\n\n\n\n<p>Ones I was done I noticed I could not get to the website. The DNS on the domain controller would not resolve it. I thought I knew how to fix this and all I needed was a new delegation for the \u201cwww\u201d subdomain. I could have sworn that\u2019s how I did it on Windows Server 2012 but for some reason, it would not work in Windows Server 2019.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DNS Conditional Forward<\/h3>\n\n\n\n<p>So after a few hours of messing with it off and doing some reading, it seemed like a \u201cConditional Forward\u201d was what I needed. But there was a problem. When I tried to add one I got this error.<\/p>\n\n\n\n<p>\u201cA problem occurred while trying to add the conditional forwarder. A zone configuration problem occurred.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.sysjolt.com\/wp-content\/uploads\/2020\/04\/conditionalforwarderror.png\" alt=\" conditional forward error\" class=\"wp-image-4765\"\/><\/figure>\n\n\n\n<p>It seems that because my local domain is \u201cvoltdrift\u201d the domain controller \/ DNS did not want to add any conditional forward rules dealing with that domain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Work Around<\/h3>\n\n\n\n<p>The way to get around this error is to trick the DNS server into thinking it is not in control of that domain\/subdomain. Or at least that\u2019s how I understand it. We do this by adding a new delegation to the DNS server for that subdomain.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.sysjolt.com\/wp-content\/uploads\/2020\/04\/NewDelegation1.png\" alt=\"delegated domain name\" class=\"wp-image-4767\"\/><\/figure>\n\n\n\n<p>Then we point that delegation to our Domain Controller \/ DNS server. I know it seems kind of silly. I have 2 so in my case, I pointed it to both of them.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.sysjolt.com\/wp-content\/uploads\/2020\/04\/NewDelegation2.png\" alt=\"name server\" class=\"wp-image-4768\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.sysjolt.com\/wp-content\/uploads\/2020\/04\/NewDelegation3.png\" alt=\"name server\" class=\"wp-image-4769\"\/><\/figure>\n\n\n\n<p>Now we can setup a new conditional forward without the error.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.sysjolt.com\/wp-content\/uploads\/2020\/04\/conditionalforward1.png\" alt=\"new conditional forward\" class=\"wp-image-4770\"\/><\/figure>\n\n\n\n<p>Make sure you check that box if you want the conditional forwards to replicate to all your other DNS servers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Now the conditional forward works<\/h3>\n\n\n\n<p>Now you\u2019re DNS should be able to resolve your website under the subdomain www.<\/p>\n\n\n\n<p>I still feel like this was easier in the past but this is how I got it working on a Windows Server 2019 DNS. So I thought it would be a good idea to document the process. I hope it has helped you!<\/p>\n\n\n\n<p>If you know of a better way please let me know in the\u00a0<strong>comments below<\/strong>! I\u2019d love to hear about it.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ref: <a href=\"https:\/\/www.sysjolt.com\/2020\/conditional-forward-rules-and-subdomains\/\">Conditional Forward Rules and Subdomains &#8211; Sysjolt<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Around a week ago I redid my lab network and added 2 new domain controllers. I used one of my website domains as the lab domain to mimic how a corporation could be setup. So the domain for my network was \u201cvoltdrift\u201d&nbsp;and the website domain is externally hosted with the domain of \u201cwww.voltdrift.com\u201c The Problem: <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=5087\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,15],"tags":[1781,1782],"class_list":["post-5087","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-windows-servers","tag-setup-dns-conditional-forwarder-for-subdomains","tag-setup-dns-conditional-forwarder-for-subdomains-windows-2019"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5087"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5087\/revisions"}],"predecessor-version":[{"id":5088,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5087\/revisions\/5088"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}