Debian / Ubuntu Instructions #
We strongly suggest to use Almalinux / Rocky Linux 8 or 9 for DNS Servers (Nodes) with Selinux and chroot-named.
Of course you can install Zonecloud Node on Debian or Ubuntu if you feel comfortable managing it. We have debian packages too.
First of all, you need to import the GPG key then get the nixpal.list file and just apt-get update:
1 2 3 | <span class="token function">wget</span> -O /tmp/nixpal.key -q https://repo.nixpal.com/debian/KEY.gpg <span class="token punctuation">;</span> apt-key <span class="token function">add</span> /tmp/nixpal.key <span class="token function">wget</span> -O /etc/apt/sources.list.d/nixpal.list https://repo.nixpal.com/debian/nixpal.list <span class="token function">apt-get</span> update |
Now that repo is in place you can install the Node:
1 | <span class="token function">apt</span> <span class="token function">install</span> zcloudnode |
Create a file that the Node will write the zones.
For debian/ubuntu can be /etc/bind/zones.conf:
1 | <span class="token function">touch</span> /etc/bind/zones.conf |
Edit /etc/zcloudnode.conf to suit your needs.
1 2 3 4 5 6 7 8 9 | <span class="token assign-left variable">ZONES_FILE</span><span class="token operator">=</span>/etc/bind/zones.conf <span class="token assign-left variable">SERVER_HOSTNAME</span><span class="token operator">=</span>zcloud.server.hostname <span class="token assign-left variable">TOKEN</span><span class="token operator">=</span>Token_From_zCloud_Server <span class="token assign-left variable">UPDATE_INTERVAL</span><span class="token operator">=</span><span class="token number">60</span> <span class="token assign-left variable">LICENSE</span><span class="token operator">=</span>ZCNode-XXXXX //LOG LEVEL: ERROR - WARNING - INFO -DEBUG <span class="token assign-left variable">LOG_LEVEL</span><span class="token operator">=</span>DEBUG <span class="token assign-left variable">RNDC_PATH</span><span class="token operator">=</span>/usr/sbin/rndc <span class="token assign-left variable">ZONE_TEMPLATE</span><span class="token operator">=</span>zone <span class="token punctuation">\</span>"<span class="token punctuation">[</span>%DOMAIN_NAME%<span class="token punctuation">]</span><span class="token punctuation">\</span>" <span class="token punctuation">{</span><span class="token punctuation">\</span>n<span class="token punctuation">\</span>ttype slave<span class="token punctuation">;</span><span class="token punctuation">\</span>n<span class="token punctuation">\</span>tfile <span class="token punctuation">\</span>"slaves/<span class="token punctuation">[</span>%DOMAIN_NAME%<span class="token punctuation">]</span>.db<span class="token punctuation">\</span>"<span class="token punctuation">;</span><span class="token punctuation">\</span>n<span class="token punctuation">\</span>tmasters <span class="token punctuation">{</span> <span class="token punctuation">[</span>%SERVER_IP%<span class="token punctuation">]</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">;</span><span class="token punctuation">\</span>n<span class="token punctuation">}</span><span class="token punctuation">;</span><span class="token punctuation">\</span>n |
Don’t forget to include /etc/bind/zones.conf to named.conf
and enable/start zcloudnode using systemctl.