From 4ad53e349c4e146241f6fffca13d8a15530cdabe Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 25 Oct 2024 18:45:28 +0400 Subject: [PATCH 1/2] 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 From 5c6dd81e7975b2e304f8bd154acebbafb1c4e011 Mon Sep 17 00:00:00 2001 From: Rezwan Ahmed Sami <76748049+rezwanahmedsami@users.noreply.github.com> Date: Mon, 28 Oct 2024 02:05:19 +0600 Subject: [PATCH 2/2] bug: fixed pydns version --- requirments-old.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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