bug fix in cPanel importer for dns records

This commit is contained in:
usmannasir 2024-10-25 18:45:28 +04:00
parent e8a1387e6a
commit 4ad53e349c
1 changed files with 4 additions and 1 deletions

View File

@ -522,7 +522,7 @@ class cPanelImporter:
SOACheck = 1
continue
if SOACheck == 1 and items.find(')') > -1:
if (SOACheck == 1 and items.find(')') > -1) or (SOACheck == 1 and items.find('NS') > -1 and items.find(zone.name) > -1):
SOACheck = 0
start = 1
continue
@ -530,6 +530,9 @@ class cPanelImporter:
pass
if start == 1:
if os.path.exists(ProcessUtilities.debugPath):
message = f'Current DNS record we are creating for {zone.name} is {items}'
logging.statusWriter(self.logFile, message, 1)
if len(items) > 3:
if items.find("DKIM1") > -1:
continue