• 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

Error while trying to set SRV type DNS record.

Steve Douzos

New Pleskian
Hello everyone,

Am having this issue with a Windows server that has Plesk 8.6.0.5 installed.

I try to add this list of SRV records:

_jabber._tcp.MYDOMAIN.gr. TCP MYDOMAIN3.dyndns.org. 5269
_jabber._udp.MYDOMAIN.gr. UDP MYDOMAIN3.dyndns.org. 5269
_sip._tcp.MYDOMAIN.gr. TCP MYDOMAIN3.dyndns.org. 5060
_sip._udp.MYDOMAIN.gr. UDP MYDOMAIN3.dyndns.org. 5060


_jabber-client._tcp.MYDOMAIN.gr. TCP MYDOMAIN3.dyndns.org. 5222
_jabber-client._udp.MYDOMAIN.gr. UDP MYDOMAIN3.dyndns.org. 5222
_xmpp-client._tcp.MYDOMAIN.gr. TCP MYDOMAIN3.dyndns.org. 5222
_xmpp-client._udp.MYDOMAIN.gr. UDP MYDOMAIN3.dyndns.org. 5222
_xmpp-server._tcp.MYDOMAIN.gr. TCP MYDOMAIN3.dyndns.org. 5269
_xmpp-server._udp.MYDOMAIN.gr. UDP MYDOMAIN3.dyndns.org 5269


The first 4 are added with no problem.

When I try to add any one of the other records, I get the following error
about the the "Service name" field:
Error: Incorrect DNS Record parameter values were specified.

Plesk doesn't seem to like the dash " - " in the service name field
because if I change the service name eg. from:
_jabber-client to _jabberclient

the error message goes away.

I tried this on a Windows Server with fresh Plesk 8.6.0.5 (Not Updated from previous versions),
and it still gave me the error.
I also tried it on Linux Server with Plesk 8.6 and worked with no problem.

Does anyone have a clue on how to fix this ?

Thanx in advance,
Steve.
 
I have reproduced in on latest version of Plesk for unix and for windows and found the same issue - hyphen in service name allowed only for unix Plesk. Not sure but maybe there is some MS restrictions? As result I have submitted request to development team for clarification.
I will update this thread with their answer as soon as I receive it.
 
Thank you for the response IgorG.

The domain name in question does not have a Domain Alias.
I created one domain alias anyhow and tried switching off the Sync option.

Still the SRV record refused to comply with my commands.
 
I was wondering if this bug appears on Plesk 9.2.x for windows.
Unfortunately I do not have an appropriate server to test this.
 
This issue still under developer's investigation. I will update this thread with results as soon as I receive it.
 
Try to apply this workaround. Please update this thread with results.

Tried this workaround but my server has Plesk version 8.6.0.5 so plesk Crashes when I use this file with this error message:
Warning: require_once(dns/DNSZoneRec.php) [function.require-once]: failed to open stream: No such file or directory in %PleskC:\SWSoft\Plesk\admin\plib\dns\DNSZone.php on line 20

Fatal error: require_once() [function.require]: Failed opening required 'dns/DNSZoneRec.php' (include_path='C:\SWSoft\Plesk\admin/plib;C:\SWSoft\Plesk\admin/plib/api-rpc;C:\SWSoft\Plesk\admin/javascripts;C:\SWSoft\Plesk\admin/plib/locale;C:\SWSoft\Plesk\admin/auto_prepend;C:\SWSoft\Plesk\admin/htdocs/domains/databases/phpMyAdmin;C:\SWSoft\Plesk\admin/htdocs/domains/databases/phpPgAdmin') in C:\SWSoft\Plesk\admin\plib\dns\DNSZone.php on line 20

When I replace with the original file, Plesk works again.

The problem is obviously the wrong permissions of the new file in comparison to the original file. I was really frustrated with this.

Anyway I found the way to replace the original file like this:

Step1- Keep a copy of the original file: "Copy of DNSZoneRec.php"

Step2- Delete the original file: "DNSZoneRec.php"

Step3- Copy the new file: "DNSZoneRec.php.9xx" into folder "C:\....\Plesk\admin\plib\dns" (
CAUTION: DON'T Cut>Paste the file
into the directory because it will not inherit the right permissions).

Step4- Rename the new file from "DNSZoneRec.php.9xx" to "DNSZoneRec.php"

RESULTS:
Now plesk DNS settings module works as expected and I successfully added the
SRV records that gave me errors before.

PS.
I hope this new file does not have any issues with my version 8.6 Plesk.
 
Thank you for detailed information. I have requested this file for Plesk 8.6.0.5 version from developers. I will update thread when it will be ready.
 
Developers have informed that there is an empty diff between 8.6.0 and 9.2.3 for this patched file and you can use the same file.
 
Thank you again IgorG.

The server is working as expected and so are the SRV records.

I am very pleased to have helped in tackling this bug.
I hope this Fix is merged into the next release of Plesk 9.2.x and/or Plesk 8.6.x.x.

Steve.
Over and out.
 
Back
Top