
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Remove DNS Using PowerShell Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/remove-dns-using-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/remove-dns-using-powershell/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sat, 23 Apr 2022 10:19:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Remove DNS Using PowerShell Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/remove-dns-using-powershell/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Install DNS in Server 2022 using Server Manager and Powershell</title>
		<link>https://www.technig.com/install-dns-using-server-manager-and-powershell/</link>
					<comments>https://www.technig.com/install-dns-using-server-manager-and-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Danish]]></dc:creator>
		<pubDate>Tue, 26 Apr 2022 10:18:00 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DNS Feature]]></category>
		<category><![CDATA[DNS PowerShell Commands]]></category>
		<category><![CDATA[DNS Server]]></category>
		<category><![CDATA[DNS Service]]></category>
		<category><![CDATA[Install DNS]]></category>
		<category><![CDATA[Install DNS using PowerShell]]></category>
		<category><![CDATA[Remove DNS Using PowerShell]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=17605</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install DNS Service in Server 2022 Using Window PowerShell and Server Manager" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>Domain Name System or DNS for short is a fundamental service that resolves names/services to IP addresses and sometimes vice versa. It is a key service that must be running in every network. The very first configuration regarding this topic is installing its capability on the server. Then, there are bundles of configurations and settings [&#8230;]</p>
<p>The post <a href="https://www.technig.com/install-dns-using-server-manager-and-powershell/">Install DNS in Server 2022 using Server Manager and Powershell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1221" height="694" src="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install DNS Service in Server 2022 Using Window PowerShell and Server Manager" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1.jpg 1221w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-300x171.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-1024x582.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Feature-Image-Final-1-768x437.jpg 768w" sizes="(max-width: 1221px) 100vw, 1221px" /></div>
<p>Domain Name System or <a href="https://docs.microsoft.com/en-us/windows-server/networking/dns/dns-top" target="_blank" rel="noreferrer noopener">DNS </a>for short is a fundamental service that resolves names/services to IP addresses and sometimes vice versa. It is a key service that must be running in every network. The very first configuration regarding this topic is installing its capability on the server. Then, there are bundles of configurations and settings to understand and care about. So, as a beginner article regarding DNS, this article covers how to install DNS in Windows Server 2022 using both Server Manager and PowerShell tools. </p>



<p>You may also like to read: <a href="https://www.technig.com/install-and-configure-dhcp-using-powershell-in-windows-server-2022/" target="_blank" rel="noreferrer noopener nofollow">Install And Configure DHCP In Windows Server 2022 Using PowerShell</a>.</p>



<h2 class="wp-block-heading">Install DNS Using Server Manager</h2>



<p>Using Server Manager is a user-friendly and easy method to install roles, including DNS, in Windows Server Operating Systems. We just graphically navigate through the options and install it. The steps are listed below. </p>



<p><strong>1. </strong>Open <strong>Server Manager</strong> console. It is present in the <strong>Start Menu</strong> by default. If it is not, search for it. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="696" height="479" src="https://www.technig.com/wp-content/uploads/2022/04/1-5.jpg" alt="Opening Server Manager in Windows Server 2022" class="wp-image-17608" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-5.jpg 696w, https://www.technig.com/wp-content/uploads/2022/04/1-5-300x206.jpg 300w" sizes="(max-width: 696px) 100vw, 696px" /><figcaption>Opening Server Manager in Windows Server 2022</figcaption></figure></div>



<p><strong>2. </strong>On the <strong>Server Manager</strong> console, click on <strong>Manage</strong> in the top-right corner. Then, select <strong>Add Roles and Features</strong> option. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="638" height="289" src="https://www.technig.com/wp-content/uploads/2022/04/2-10.jpg" alt="Add roles and features using Server Manger" class="wp-image-17609" srcset="https://www.technig.com/wp-content/uploads/2022/04/2-10.jpg 638w, https://www.technig.com/wp-content/uploads/2022/04/2-10-300x136.jpg 300w" sizes="(max-width: 638px) 100vw, 638px" /><figcaption>Add roles and features using Server Manager</figcaption></figure></div>



<p><strong>3. </strong>On the <strong>Before You Being</strong> page, just click on <strong>Next </strong>to continue. Choose the <strong>Role-based or feature-based installation</strong> option on Installation Type. Then, click on the <strong>Next </strong>button. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="786" height="560" src="https://www.technig.com/wp-content/uploads/2022/04/3-6.jpg" alt="Choosing Installation Type for the Role" class="wp-image-17610" srcset="https://www.technig.com/wp-content/uploads/2022/04/3-6.jpg 786w, https://www.technig.com/wp-content/uploads/2022/04/3-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/3-6-768x547.jpg 768w" sizes="(max-width: 786px) 100vw, 786px" /><figcaption>Choosing Installation Type for the Role</figcaption></figure></div>



<p><strong>4.</strong> On the <strong>Server Selection</strong> section, choose the server on which you want to install DNS and click on the <strong>Next </strong>button, afterwards. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="784" height="560" src="https://www.technig.com/wp-content/uploads/2022/04/4-6.jpg" alt="Selecting the Server to Install the DNS Service on it" class="wp-image-17611" srcset="https://www.technig.com/wp-content/uploads/2022/04/4-6.jpg 784w, https://www.technig.com/wp-content/uploads/2022/04/4-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/4-6-768x549.jpg 768w" sizes="(max-width: 784px) 100vw, 784px" /><figcaption>Selecting the Server to Install the DNS Service on it</figcaption></figure></div>



<p><strong>5. </strong>In this step, check out the <strong>DNS Serve</strong>r checkbox option on the <strong>Server Roles</strong> section. Click on <strong>Add Features</strong> on the next window that pops up. Finally, click on <strong>Next</strong>. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="784" height="560" src="https://www.technig.com/wp-content/uploads/2022/04/5-8.jpg" alt="Selecting DNS Role to Install " class="wp-image-17612" srcset="https://www.technig.com/wp-content/uploads/2022/04/5-8.jpg 784w, https://www.technig.com/wp-content/uploads/2022/04/5-8-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/5-8-768x549.jpg 768w" sizes="(max-width: 784px) 100vw, 784px" /><figcaption>Selecting DNS Role to Install </figcaption></figure></div>



<p><strong>6.</strong> Click on <strong>Next </strong>on both <strong>Features </strong>and<strong> DNS Server</strong> wizards. On the <strong>Confirmation </strong>window, check out the option for the Restart if it needs to during the DNS role installation. And, finally, click on the <strong>Install </strong>button. See the picture below.  </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="783" height="559" src="https://www.technig.com/wp-content/uploads/2022/04/6-6.jpg" alt="Confirming DNS Role Installation on Server" class="wp-image-17613" srcset="https://www.technig.com/wp-content/uploads/2022/04/6-6.jpg 783w, https://www.technig.com/wp-content/uploads/2022/04/6-6-300x214.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/6-6-768x548.jpg 768w" sizes="(max-width: 783px) 100vw, 783px" /><figcaption>Confirming DNS Role Installation on Server</figcaption></figure></div>



<p><strong>7.</strong> Wait for a few moments until the DNS role installation completes. Once completed, click on the <strong>Close </strong>button in the <strong>Result </strong>section. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="784" height="555" src="https://www.technig.com/wp-content/uploads/2022/04/7-5.jpg" alt="DNS Installation Result Screen" class="wp-image-17615" srcset="https://www.technig.com/wp-content/uploads/2022/04/7-5.jpg 784w, https://www.technig.com/wp-content/uploads/2022/04/7-5-300x212.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/7-5-768x544.jpg 768w" sizes="(max-width: 784px) 100vw, 784px" /><figcaption>DNS Installation Result Screen</figcaption></figure></div>



<p>As simple as the above steps, we have installed the DNS Server in Windows Server 2022 using Server Manager. Now, if you open the <strong>Tools </strong>menu on the Server Manager console, you will observe the DNS is present there.</p>



<h2 class="wp-block-heading">Install DNS using Windows PowerShell </h2>



<p>Using <strong>Windows PowerShell</strong> is always a preferred and professional method of accomplishing such tasks. Besides other benefits, it takes us less time. Now, let&#8217;s dive into the brief steps to install DNS using the Windows PowerShell tool. </p>



<p><strong>1. </strong>Open <strong>Windows PowerShell</strong> as administrator. To do so, go to the <strong>Start Menu</strong>, right-click on it and choose <strong>Run as Administrator</strong>. You can also open it using the Run dialogue box by using <code>powershell</code>as command. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="790" height="510" src="https://www.technig.com/wp-content/uploads/2022/04/1-3.jpg" alt="Opening Windows PowerShell as administrator " class="wp-image-17469" srcset="https://www.technig.com/wp-content/uploads/2022/04/1-3.jpg 790w, https://www.technig.com/wp-content/uploads/2022/04/1-3-300x194.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/1-3-768x496.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/1-3-210x136.jpg 210w" sizes="(max-width: 790px) 100vw, 790px" /><figcaption>Opening Windows PowerShell as an administrator</figcaption></figure></div>



<p><strong>2. </strong>Once you have opened the PowerShell tool, check the DNS if it is available to install. To check the DNS, use the <code>Get-WindowsFeature DNS</code> command. As you can see in the picture below, it is available to install. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="978" height="181" src="https://www.technig.com/wp-content/uploads/2022/04/8-5.jpg" alt="Check DNS Status Using PowerShell Command" class="wp-image-17616" srcset="https://www.technig.com/wp-content/uploads/2022/04/8-5.jpg 978w, https://www.technig.com/wp-content/uploads/2022/04/8-5-300x56.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/8-5-768x142.jpg 768w" sizes="(max-width: 978px) 100vw, 978px" /><figcaption>Checking DNS Feature Status Using PowerShell Command</figcaption></figure></div>



<p><strong>3. </strong>To install DNS run <code>Install-WindowsFeature DNS -IncludeManagementTools</code> PowerShell command. Then, wait for a while until it finishes the installation process. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="978" height="183" src="https://www.technig.com/wp-content/uploads/2022/04/9-5.jpg" alt="Install DNS Using Windows PowerShell Command" class="wp-image-17617" srcset="https://www.technig.com/wp-content/uploads/2022/04/9-5.jpg 978w, https://www.technig.com/wp-content/uploads/2022/04/9-5-300x56.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/9-5-768x144.jpg 768w" sizes="(max-width: 978px) 100vw, 978px" /><figcaption>Install DNS Using Windows PowerShell Command</figcaption></figure></div>



<p><strong>4. </strong>Now that we have installed DNS, once more, run <code>Get-WindowsFeature</code> DNS PowerShell command to verify the installation. You can see in the below picture that it is installed. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="977" height="173" src="https://www.technig.com/wp-content/uploads/2022/04/10-3.jpg" alt="Verify DNS State Using Windows PowerShell Command " class="wp-image-17618" srcset="https://www.technig.com/wp-content/uploads/2022/04/10-3.jpg 977w, https://www.technig.com/wp-content/uploads/2022/04/10-3-300x53.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/10-3-768x136.jpg 768w" sizes="(max-width: 977px) 100vw, 977px" /><figcaption>Verify DNS State Using Windows PowerShell Command </figcaption></figure></div>



<p><strong>5. </strong>It is also the right point to mention how we can uninstall DNS using Windows PowerShell. To uninstall it, run <code>Remove-WindowsFeature DNS</code> PowerShell command. Wait for a moment until it completes the operation. You will receive a message to restart the server if it needs to. you can restart the server using <code>Restart-Computer</code> PowerShell command. </p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="976" height="258" src="https://www.technig.com/wp-content/uploads/2022/04/11-3.jpg" alt="Uninstalling DNS Using Windows PowerShell Command" class="wp-image-17619" srcset="https://www.technig.com/wp-content/uploads/2022/04/11-3.jpg 976w, https://www.technig.com/wp-content/uploads/2022/04/11-3-300x79.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/11-3-768x203.jpg 768w" sizes="(max-width: 976px) 100vw, 976px" /><figcaption>Uninstalling DNS Using Windows PowerShell Command</figcaption></figure></div>



<p>That is it. We learned how to install and uninstall the DNS in Windows Server 2022 using Windows PowerShell. </p>



<h2 class="wp-block-heading">Summery</h2>



<p>To summarize this article, we have walked through a step-by-step guide on how to install DNS service in Windows Server 2022 using Server Manager and Windows Powershell tools. We covered a detailed illustration to install DNS using Server Manager, first. Then, in a separate section, we discussed the PowerShell commands to install, verify and uninstall DNS in Server 2022. </p>



<p>In the end, I hope you find this article helpful. If you have any further questions, do not hesitate to share us in the comment section. </p>
<p>The post <a href="https://www.technig.com/install-dns-using-server-manager-and-powershell/">Install DNS in Server 2022 using Server Manager and Powershell</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/install-dns-using-server-manager-and-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17605</post-id>	</item>
	</channel>
</rss>
