<?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; Slave DNS Manager Download</title>
	<atom:link href="http://wiki.centos-webpanel.com/tag/slave-dns-manager-download/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>Slave DNS Server &amp; Manager download version</title>
		<link>http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version</link>
		<comments>http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version#comments</comments>
		<pubDate>Wed, 10 Jul 2019 23:42:15 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Slave DNS Manager Download]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1199</guid>
		<description><![CDATA[Slave DNS Server &#038; Manager download version - installation instructions Please read more detailed info here. Latest Update: March 7, 2021 For Slave DNS Manager is recommended that you have a clean server with CWP which will be used as Slave DNS (ns2). Create a New Account on the CWPpro Server * This is the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Slave DNS Server &#038; Manager download version - installation instructions</strong><br />
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><strong>Latest Update:</strong> March 7, 2021</p>
<p><em>For Slave DNS Manager is recommended that you have a clean server with CWP which will be used as Slave DNS (ns2).</em></p>
<p><strong>Create a New Account on the CWPpro Server</strong><br />
<em>* This is the server you plan to use as Slave DNS Server &#038; Manager</em><br />
username: recommended is slave (as it will be used in the tutorial)<br />
domain: domain which you plan to use for slave dns manager gui and API access</p>
<p><strong>Download Slave DNS Manage and upload it to public_html folder on your cwp account</strong><br />
Latest update: July 20, 2019. (manual update required by overwriting files)</p>
<pre>cd /home/USERNAME/public_html
wget http://dl1.centos-webpanel.com/files/cwp/addons/cwp-slave_dns.zip
unzip cwp-slave_dns.zip
mv slave_dns/* .
rm -f index.html</pre>
<p><strong>Fix file permissions (you can do that also from cwp)</strong></p>
<pre>chown -R USERNAME.USERNAME /home/USERNAME/public_html/*</pre>
<p><strong>MySQL: Create User and Database</strong><br />
Go to CWP module: MySQL Manager --> Create Database and User </p>
<p>Edit file /home/USERNAME/public_html/inc/db_conn.php.sample and enter your database connection details<br />
Rename sample file to get DB connection into production</p>
<pre>mv inc/db_conn.php.sample inc/db_conn.php</pre>
<p>Import database by using PhpMyAdmin or with MySQL command</p>
<pre>mysql DATABASENAME < sql/slave_dns.sql</pre>
<p>Create permissions for the user to be able to control the bind DNS.<br />
Replace USERNAME with the user of the account you had created in cwp</p>
<p>FILENAME: /etc/sudoers.d/USERNAME</p>
<pre>
%USERNAME  ALL= NOPASSWD: /bin/systemctl start named
%USERNAME  ALL= NOPASSWD: /bin/systemctl stop named
%USERNAME  ALL= NOPASSWD: /bin/systemctl restart named
%USERNAME  ALL= NOPASSWD: /bin/systemctl reload named
%USERNAME  ALL= NOPASSWD: /bin/systemctl status named
%USERNAME  ALL= NOPASSWD: /bin/systemctl is-active named
</pre>
<pre>touch /etc/named/slave.conf
chmod 771 /etc/named
usermod -a -G named USERNAME
chown USERNAME.named /etc/named/slave.conf

mkdir /var/named/slave
chown named.named /var/named/slave</pre>
<p>Edit File: /etc/named.conf and add this in options section before closing }</p>
<pre>masterfile-format text;</pre>
<p>Add after options{} where other include lines are specifed</p>
<pre>//Slave dns configuration
include "/etc/named/slave.conf";</pre>
<p>Now you can login to DNS Manager GUI by using a domain link of the account you have created</p>
<p><strong>Default login for DNS Manager GUI admin/root</strong><br />
Username: root<br />
Password: FX8QKxvQ<br />
<em>* Please change the default password after the first login</em></p>
<p><strong>Adding WebServers to DNS</strong><br />
- On dns manager GUI create a new user for each server or use a single for all webservers if you plan to transfer accounts from one to another webserver.<br />
- On CWP WebServer go to DNS Functions -> Slave DNS Manager</p>
<p>For Slave Host you need to use the same URL you are accessing DNS Manager GUI, example</p>
<p>http://slave-dns.manager.domain.com</p>
<p>* You can also add this as an addon domain to the account later.</p>
<h1>CWPpro WebServer configuration</h1>
<p>Edit File: /etc/named.conf and add this in options section before closing }</p>
<pre>//Slave dns configuration
allow-transfer {111.112.113.114;};
allow-recursion {111.112.113.114;};
also-notify {111.112.113.114;};
masterfile-format text;
</pre>
<p><strong>Mostly know issues</strong><br />
issue: domain/zone not deleted from /etc/named/slave.conf<br />
apache logs file: /usr/local/apache/domlogs/DOMAIN.error.log<br />
apache logs line: sed: couldn't open temporary file /etc/named/sedzizIXw: Permission denied<br />
solution: chmod 771 /etc/named</p>
<p>issue: Slave BIND/DNS not showing changes<br />
solution: try to restart named and check if the service has some errors in the /var/log/messages</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
