<?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>how to setup slave dns Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-setup-slave-dns/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 02 Dec 2020 21:20:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Configure Slave BIND DNS Server On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-configure-slave-bind-dns-server-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-configure-slave-bind-dns-server-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 04 Dec 2020 05:14:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to setup slave dns]]></category>
		<category><![CDATA[master slave dns bind server]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25997</guid>

					<description><![CDATA[<p>In our previous guide we covered the setup of Master(Primary) DNS Server. Here we&#8217;ll learn that how to configure slave bind dns server on Ubuntu 20.04 . As the name defined, slave obtains the data from the master &#38; keeps this data in the zones for particular time &#38; from there response to the DNS [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-slave-bind-dns-server-on-ubuntu-20-04/">How To Configure Slave BIND DNS Server On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In our previous guide we covered the <a href="https://www.osradar.com/?p=24928" target="_blank" rel="noreferrer noopener">setup of Master(Primary) DNS Server</a>. Here we&#8217;ll learn that <a href="https://www.osradar.com/?p=25997" target="_blank" rel="noreferrer noopener">how to configure</a> slave bind dns server on Ubuntu 20.04 . As the name defined, slave obtains the data from the master &amp; keeps this data in the zones for particular time &amp; from there response to the DNS queries. So, let&#8217;s move towards the installation process.</p>



<h2>Setup</h2>



<figure class="wp-block-image size-large"><img loading="lazy" width="496" height="352" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/2020-11-29_09h54_46.png" alt="" class="wp-image-26017" srcset="https://www.osradar.com/wp-content/uploads/2020/11/2020-11-29_09h54_46.png 496w, https://www.osradar.com/wp-content/uploads/2020/11/2020-11-29_09h54_46-300x213.png 300w" sizes="(max-width: 496px) 100vw, 496px" /></figure>



<pre class="wp-block-verse">Master DNS Server IP: 172.16.10.2<br>Master domain name:ns1.osradar.local<br>Slave DNS Server IP:172.16.10.10<br>Slave domain name:ns2.osradar.local</pre>



<h3>Step 1: Configure Master DNS Server On Ubuntu 20.04</h3>



<p>The configuration procedure of slave DNS server is similar to the Master server. The main difference b/w is that slave gets it&#8217;s data from the Master DNS.</p>



<p>Edit the <strong>/etc/bind/named.conf.local</strong> file on primary server &amp; add the <strong>allow-transfer</strong> &amp; <strong>also-notify</strong> commands. Add this to both zones (forward &amp; reverse).</p>



<pre class="wp-block-preformatted">sudo nano /etc/bind/named.conf.local</pre>



<pre class="wp-block-preformatted">##Forward zone
zone "osradar.local" IN { // Domain name

type master; // Primary DNS

file "/etc/bind/forward.osradar.local.db"; // Forward lookup file

allow-update { none; }; // Since this is the primary DNS, it should be none.
allow-transfer { 172.16.10.10; }; //Allow Transfer of zone from the master server

also-notify { 172.16.10.10; }; //Notify slave for zone changes

};

##Reverse zone

zone "10.16.172.in-addr.arpa" IN { //Reverse lookup name, should match your network in reverse order

type master; // Primary DNS

file "/etc/bind/reverse.osradar.local.db"; //Reverse lookup file

allow-update { none; }; //Since this is the primary DNS, it should be none.

allow-transfer { 172.16.10.10; }; //Allow Transfer of zone from the master server

also-notify { 172.16.10.10; }; //Notify slave for zone changes

};</pre>



<p><strong>allow-transfer</strong> will help you to transfer data from Primary to secondary server.<br><strong>also-notify</strong> helps you to notify the slave when update is available.</p>



<p>And after making these changes, restart the bind services.</p>



<pre class="wp-block-preformatted">sudo systemctl restart bind9</pre>



<h3>Step 2: Configure Slave DNS Server On Ubuntu 20.04</h3>



<p>Install the following packages required for slave DNS server by typing</p>



<pre class="wp-block-preformatted">sudo apt-get install -y bind9 bind9utils bind9-doc dnsutils</pre>



<p>Once packages are installed, edit the <strong>/etc/bind/named.conf.local</strong> file &amp; update the forward &amp; reverse DNS records.</p>



<pre class="wp-block-preformatted">sudo nano /etc/bind/named.conf.local</pre>



<pre class="wp-block-preformatted">##Forward Zone

zone "osradar.local" IN { //Domain name

type slave; //Secondary Slave DNS

file "/var/cache/bind/forward.osradar.local.db"; //Forward Zone Cache file

masters { 172.16.10.2; }; //Master Server IP

};

##Reverse zone

zone "10.16.172.in-addr.arpa" IN { //Reverse lookup name. Should match your network in reverse order

type slave; // Secondary/Slave DNS

file "/var/cache/bind/reverse.osradar.local.db"; //Reverse Zone Cache file

masters { 172.16.10.2; }; //Master Server IP

};
</pre>



<p>And then restart the DNS services on slave.</p>



<pre class="wp-block-verse">sudo systemctl restart bind9</pre>



<h3>Step 3: Testing Slave DNS Server On Ubuntu 20.04</h3>



<p>In order to test the working of slave DNS server, create a client machine on the slave server and hit.</p>



<pre class="wp-block-preformatted">sudo echo "nameserver 172.16.10.10" &gt;&gt; /etc/resolv.conf</pre>



<p>Finally use the dig command to verify the DNS.</p>



<pre class="wp-block-preformatted">root@ubuntu20:~# dig www.osradar.local

; &lt;&lt;&gt;&gt; DiG 9.16.1-Ubuntu &lt;&lt;&gt;&gt; www.osradar.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to DNS
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 24401
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: b1e287dd1d118ad6010000005f8c88233ef562a7063e7a15 (good)
;; QUESTION SECTION:
;www.osradar.local. IN A

;; ANSWER SECTION:
www.osradar.local. 604800 IN A 172.16.10.3

;; Query time: 0 msec
;; SERVER: 172.16.10.10#53(172.16.10.10)
;; WHEN: Sat Nov 18 18:23:31 UTC 2020
;; MSG SIZE rcvd: 100</pre>



<p>So, this is how you can configure DNS Slave Server on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-slave-bind-dns-server-on-ubuntu-20-04/">How To Configure Slave BIND DNS Server On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-configure-slave-bind-dns-server-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
