Updated: 01012021
All:
I found a script that started here on the old version with perl. Originally created by user jordivn on the DirectAdmin forum:https://forum.directadmin.com/showthread.php?t=43924&page=22&p=278112#post278112
I have taken it and modified it to work with GO version. I was able to install a CentOS 7 box all works no issues. If you have another OS you will need to modify the script. It had fail2ban in the old version but many like other options so I removed it. Also SSL is not set automatically you will need to do that manually. Feel free to add to it or modify it. Please report success or failure.
Script now includes:
DirectSlave 3.4.1
Root install check
OS check
ssh port updating. (never want to keep default 22)
Simple Firewalld install and setup (opens DNS and 2222). Does not setup access to ssh port Admin needs to own that.
********************Note this script currently rebuilds the /etc/named.conf on the slave server. Don't run this on a current IN USE slave server. This is mean't for a fresh server.****************************
Please do all the normal admin tasks for setting up a Server E.G. set Timezone, Host File, Hostname, and Swap space before running script.
Run:
usage <username> <userpass> <master ip>
sh da-slave-install.sh admin C00Lpassword xxx.zzz.ccc.vvv < IP of your Mater DA server
Normal output is
Once this completes Go setup Multi Server on your DA master with username, password and ip of Slave server.
Troubleshooting here:
simple things can you ping from outside to the box?
did you check if the firewall is on and blocking?
ref if you need it. https://www.rootusers.com/how-to-open-a-port-in-centos-7-with-firewalld/
If you dig on the slave server do you find records?
if you dig on the DA server do you see it in the list?
ref https://www.rootusers.com/12-dig-command-examples-to-query-dns-in-linux/
on the slave if you
do you see zones and their db's listed?
do what do you see?
does all of this look correct?
In there do you see
at the very bottom
in the options section do you see
@roman_m feel free to include in your first post and or test this out as well. It sort of buried here..
All:
I found a script that started here on the old version with perl. Originally created by user jordivn on the DirectAdmin forum:https://forum.directadmin.com/showthread.php?t=43924&page=22&p=278112#post278112
I have taken it and modified it to work with GO version. I was able to install a CentOS 7 box all works no issues. If you have another OS you will need to modify the script. It had fail2ban in the old version but many like other options so I removed it. Also SSL is not set automatically you will need to do that manually. Feel free to add to it or modify it. Please report success or failure.
Script now includes:
DirectSlave 3.4.1
Root install check
OS check
ssh port updating. (never want to keep default 22)
Simple Firewalld install and setup (opens DNS and 2222). Does not setup access to ssh port Admin needs to own that.
********************Note this script currently rebuilds the /etc/named.conf on the slave server. Don't run this on a current IN USE slave server. This is mean't for a fresh server.****************************
Please do all the normal admin tasks for setting up a Server E.G. set Timezone, Host File, Hostname, and Swap space before running script.
Run:
Code:
yum install wget -y
cd /root
wget https://raw.githubusercontent.com/bdacus01/directadmin-directslave-install/master/da-slave-install.sh -O da-slave-install.sh
chmod +x da-slave-install.sh
usage <username> <userpass> <master ip>
sh da-slave-install.sh admin C00Lpassword xxx.zzz.ccc.vvv < IP of your Mater DA server
Normal output is
Code:
Saving most outputs to /root/install.log
doing updates and installs
creating user admin and adding to wheel
disable root access to ssh
installing and configuring directslave
Added user admin to authfile.
setting enabled and starting up
Created symlink from /etc/systemd/system/multi-user.target.wants/named.service to /usr/lib/systemd/system/named.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/directslave.service to /etc/systemd/system/directslave.service.
all done!
Troubleshooting here:
simple things can you ping from outside to the box?
did you check if the firewall is on and blocking?
ref if you need it. https://www.rootusers.com/how-to-open-a-port-in-centos-7-with-firewalld/
If you dig on the slave server do you find records?
if you dig on the DA server do you see it in the list?
ref https://www.rootusers.com/12-dig-command-examples-to-query-dns-in-linux/
on the slave if you
Code:
cat /etc/namedb/directslave.inc
do you see zones and their db's listed?
do what do you see?
Code:
cat /etc/named.conf
In there do you see
Code:
include "/etc/namedb/directslave.inc";
in the options section do you see
Code:
allow-query { any; };
allow-notify { your da master ip here; };
allow-transfer { none; };
@roman_m feel free to include in your first post and or test this out as well. It sort of buried here..
Last edited: