Skip to content

Commit

Permalink
Merge pull request #1300 from bosdaring/patch-2
Browse files Browse the repository at this point in the history
Update serviceManager.py due to pdns settings change
  • Loading branch information
usmannasir authored Aug 19, 2024
2 parents 9c6323a + 8e9053c commit 7d52a0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions manageServices/serviceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -324,4 +324,4 @@ def main():


if __name__ == "__main__":
main()
main()

0 comments on commit 7d52a0f

Please sign in to comment.