<?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>Control WebPanel Wiki &#187; Slave2 DNS Server</title>
	<atom:link href="http://wiki.centos-webpanel.com/tag/slave2-dns-server/feed" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Slave2 DNS Server</title>
		<link>http://wiki.centos-webpanel.com/slave2-dns-server</link>
		<comments>http://wiki.centos-webpanel.com/slave2-dns-server#comments</comments>
		<pubDate>Thu, 11 Jul 2019 00:02:21 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Slave2 DNS Server]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1205</guid>
		<description><![CDATA[Slave2 DNS Server - Cluster Setup If you need to have multiple DNS servers then you can have them connected to the slave dns manager. Slave2 DNS Server requires that you have previously installed Slave DNS Server &#038; Manager. Please read more detailed info here. Create configuration file: /root/dns_sync_slave2.conf USERNAME="slave" SERVER="121.122.123.124" SSHPORT="22" SOURCESYNCLOCATION="/var/named/slave" CHECKMAINDNS="centos-webpanel.com" LOCALSYNCLOCATION="/var/named/slave" [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Slave2 DNS Server - Cluster Setup</strong><br />
If you need to have multiple DNS servers then you can have them connected to the slave dns manager.<br />
Slave2 DNS Server requires that you have previously installed Slave DNS Server &#038; Manager.</p>
<p>Please read more detailed info <a href="/slave-dns-server-manager-dns-cluster" title="Slave DNS Server &#038; Manager – DNS Cluster">here</a>.</p>
<p>Create configuration file: /root/dns_sync_slave2.conf</p>
<pre>USERNAME="slave"
SERVER="121.122.123.124"
SSHPORT="22"
SOURCESYNCLOCATION="/var/named/slave"
CHECKMAINDNS="centos-webpanel.com"
LOCALSYNCLOCATION="/var/named/slave"
LOCALCONFFILE="/etc/named/slave_additional.conf"</pre>
<p>* SERVER = IP of Slave DNS Server &#038; Manager.<br />
* SSHPORT = SSH-Port of Slave DNS Server &#038; Manager.<br />
* SOURCESYNCLOCATION = Location of DNS zone files on Slave DNS Server &#038; Manager.<br />
* CHECKMAINDNS = This is a domain used for testing Slave DNS Server &#038; Manager, it can be any and it doesn't need to be on the server.<br />
* LOCALSYNCLOCATION = Location for DNS zone files on this local server.<br />
* LOCALCONFFILE = Configuration files which contains the list of all zone files on this local server.</p>
<p>Setup cron how often you want to check for changes</p>
<pre>crontab -e</pre>
<p>* On servers with many clients and domains 100+ we recommend 5min cron.<br />
* For servers with 1000+ you can go even with every 1-2 minutes.<br />
example every 1 minute</p>
<pre>* * * * * sh /scripts/dns_sync_slave2</pre>
<p>In file /etc/named.conf after last include add:</p>
<pre>include "/etc/named/slave_additional.conf";</pre>
<p>Prepare config files</p>
<pre>touch /etc/named/slave_additional.conf
chown named.named /etc/named/slave_additional.conf</pre>
<p>go in cwp.admin -> Server Settings -> SSH Key Generator<br />
there you need to generate new Keys</p>
<p>Go to Slave DNS Server &#038; Manager<br />
add key to the Slave DNS Server &#038; Manager user you are using as "slave"</p>
<pre>mkdir /home/slave/.ssh
nano /home/slave/.ssh/authorized_keys</pre>
<p><em>** paste your key here which you had generated on the Slave2 DNS Server</em></p>
<pre>chown -R slave.slave /home/slave/.ssh
chmod 600 /home/slave/.ssh/authorized_keys
chmod 700 /home/slave/.ssh/</pre>
<p>You will also need to enable bash shell for that user so rsync could work</p>
<pre>chsh -s /bin/bash slave</pre>
<p>You can now test ssh connection like this from Slave2 DNS Server to Slave DNS Server &#038; Manager<br />
ssh slave@SERVER-IP -p SSH-PORT<br />
If your connection goes ok without asking for the password then you are fully set.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/slave2-dns-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
