From 4ad53e349c4e146241f6fffca13d8a15530cdabe Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 25 Oct 2024 18:45:28 +0400 Subject: [PATCH] bug fix in cPanel importer for dns records --- plogical/cPanelImporter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plogical/cPanelImporter.py b/plogical/cPanelImporter.py index 3ebceb398..a1326b5c8 100644 --- a/plogical/cPanelImporter.py +++ b/plogical/cPanelImporter.py @@ -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