From 8e9053cfa19e740d9429b66c2b85f469f569e065 Mon Sep 17 00:00:00 2001 From: bosdaring <80306378+bosdaring@users.noreply.github.com> Date: Tue, 6 Aug 2024 06:22:34 +0700 Subject: [PATCH] Update serviceManager.py some pdns settings are deprecated since ver 4.5.0 master > primary slave > secondary slave-cycle-interval > xfr-cycle-interval superslave > autosecondary --- manageServices/serviceManager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/manageServices/serviceManager.py b/manageServices/serviceManager.py index 106ab88b6..0476b3b02 100755 --- a/manageServices/serviceManager.py +++ b/manageServices/serviceManager.py @@ -77,7 +77,7 @@ def managePDNS(self): writeToFile.writelines('also-notify=' + ipStringNoSubnet + '\n') writeToFile.writelines('daemon=no\n') writeToFile.writelines('disable-axfr=no\n') - writeToFile.writelines('master=yes\n') + writeToFile.writelines('primary=yes\n') writeToFile.close() command = 'sudo mv ' + tempPath + ' ' + path @@ -117,17 +117,17 @@ def managePDNS(self): writeToFile.writelines(items + '\n') slaveData = """ -slave=yes +secondary=yes daemon=yes disable-axfr=yes guardian=yes local-address=0.0.0.0 local-port=53 -master=no -slave-cycle-interval=60 +prmary=no +xfr-cycle-interval=60 setgid=pdns setuid=pdns -superslave=yes +autosecondary=yes """ writeToFile.writelines(slaveData) @@ -324,4 +324,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()