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 diff --git a/requirments-old.txt b/requirments-old.txt index 8b991d367..427741460 100644 --- a/requirments-old.txt +++ b/requirments-old.txt @@ -19,7 +19,7 @@ oauthlib==3.1.0 paramiko==2.9.2 pexpect==4.8.0 psutil==5.7.3 -py3dns==3.2.1 +py3dns==4.0.2 pyOpenSSL==19.1.0 pysftp pyotp