• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Plesk Extension.... 'Transfer of DNS Records'

Rob Taylor

Basic Pleskian
Server operating system version
CentOS Linux 7.9.2009 (Core)
Plesk version and microupdate number
18.0.43 Update #1
Hi All,

Been a Plesk user for a long time but only ever used for web / email hosting, we are looking to migrate the DNS hosting for our client domains from our own DNS servers to the Plesk server(s) and then sync back, so users can edit DNS records themselves in the Plesk control panel.

I found there is a 'Transfer of DNS Records' Plesk Extension which will import the zone files for us and it seems perfect but just can't get it to work...


Problem:

If I go to the extension in the control panel web UI it does not find any domain names (see attached) despite there being 200+ domain names on the server.

If I try running the import from the command line:

plesk ext dns-transfer import 2 /tmp/example.com

...it returns a PHP error:

Continue importing? Type (Y)es or (N)o: [2022-05-17 08:39:56.730] 29517:6283514cb1bec ERR [panel] Call to undefined function PleskExt\DnsTransfer\Cli\Command\readline():
0: /usr/local/psa/admin/plib/modules/dns-transfer/library/Cli/Command/ImportCommand.php:137
PleskExt\DnsTransfer\Cli\Command\ImportCommand->run()
1: /usr/local/psa/admin/plib/modules/dns-transfer/hooks/ApiCli.php:56
Modules_DnsTransfer_ApiCli->executeCommand(string 'import')
2: /usr/local/psa/admin/plib/modules/dns-transfer/hooks/ApiCli.php:33
Modules_DnsTransfer_ApiCli->importCommand()
3: /usr/local/psa/admin/plib/Extension/Hook/ApiCli.php:26
Plesk\Extension\Hook\ApiCli::call(string 'dns-transfer', array)
4: /usr/local/psa/admin/plib/api-common/cuModule.php:419
cuModule->_callCommand(string 'dns-transfer', array)
5: /usr/local/psa/admin/plib/api-common/cuApp.php:79
cuApp->_callCommandMethod(array)
6: /usr/local/psa/admin/plib/api-common/cuModule.php:172
cuModule->_callCommandMethod(array)
7: /usr/local/psa/admin/plib/api-common/cuApp.php:73
cuApp->_executeCommand()
8: /usr/local/psa/admin/plib/api-common/cuApp.php:53
cuApp->runFromCliGate()
9: /usr/local/psa/admin/plib/api-common/CuExecutor.php:69
CuExecutor->execUtil(string 'cuModule', string 'runFromCliGate')
10: /usr/local/psa/admin/plib/api-common/CuExecutor.php:131
CuExecutor->run()
11: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:28
CliUtilityRunner->run()
12: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:37
require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
13: /usr/local/psa/admin/plib/api-cli/extension.php:3
ERROR: Error: Call to undefined function PleskExt\DnsTransfer\Cli\Command\readline() (ImportCommand.php:137)
exit status 1


SOFTWARE - We are running CentOS Linux 7.9.2009 (Core) and a Plesk Version 18.0.43 Update #1 (fully licensed).

QUESTION:

The Plesk files are all protected code so can't debug myself, I can't think of anything else I can do to troubleshoot this other than reporting as a bug - has anyone else used this extension with any success?
 

Attachments

  • Screenshot 2022-05-17 at 08.55.49.png
    Screenshot 2022-05-17 at 08.55.49.png
    170.2 KB · Views: 2
Based on the symptoms and similar cases from the past, this may happen when the DNS transfer extension is corrupted.
Have you tried to re-install this extension?
 
Thanks for your reply Igor, much appreciated.

I've just tried removing the extension and re-installing it but still get the same result - should I restart the Plesk service in-between?
 
I suggest you submit a detailed report here Reports
I will forward it to the developers for further investigation.
 
Back
Top