Closed perf3ktion closed 4 years ago
+1
Should be relatively easy fix to do in this file. https://github.com/usmannasir/cyberpanel/blob/stable/manageServices/serviceManager.py
Not near a desktop to do that right now but I believe changing
ipsString = ipsString + '%s/32 ' % (items.slaveServerIP) ipStringNoSubnet = ipStringNoSubnet + '%s ' % (items.slaveServerIP)
To this would essentially correct the missing comma issue.
ipsString = ipsString + '%s/32, ' % (items.slaveServerIP) ipStringNoSubnet = ipStringNoSubnet + '%s, ' % (items.slaveServerIP)
Recommend backing up this file making that modification and seeing if it adds It properly after that.
If that works please let us know and we can get a commit with that fix applied.
@whattheserver
Will further investigate.
Fixed.
Hi @usmannasir, sorry I have been away. Would you still like me to test?
Yes, you can try using the upgrade guide I gave on https://github.com/usmannasir/cyberpanel/issues/346
Hey team,
I am setting up a CyberPanel hosting server with two DNS Slaves. All are currently running CentOS Linux release 7.8.2003 (Core) with CyberPanel 2.0.
Issue
When configuring the MASTER DNS server in the UI and after entering multiple slaves (2 or 3), the allow-axfr-ips and also-notify values are separated by spaces, however they are requested to be separated by commas in the PDNS documentation. This prevents PDNS from being able to create a Master / Slave relationship correctly.
The result is a config similar to below:
allow-axfr-ips=192.168.0.2/32 192.168.0.3/32 also-notify=192.168.0.2 192.168.0.3
When it should resemble below:
allow-axfr-ips=192.168.0.2/32, 192.168.0.3/32 also-notify=192.168.0.2, 192.168.0.3
Expected
Steps to Reproduce
Thanks for your hard work :)