• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs I can't define an empty target in an SRV-record (RFC2782)

mr-wolf

Silver Pleskian
Plesk Guru
TITLE:
I can't define an empty target in an SRV-record (RFC2782)
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk 17.5.3 / Ubuntu 16.0.4 LTS
PROBLEM DESCRIPTION:
According to RFC2782 it should be possible to define a target as empty (only a dot). In the said RFC it is defined in the section with this text:
RFC 2782 - A DNS RR for specifying the location of services (DNS SRV)
Code:
   Target
       The domain name of the target host.  There MUST be one or more
       address records for this name, the name MUST NOT be an alias (in
       the sense of RFC 1034 or RFC 2181).  Implementors are urged, but
       not required, to return the address record(s) in the Additional
       Data section.  Unless and until permitted by future standards
       action, name compression is not to be used for this field.

       A Target of "." means that the service is decidedly not
       available at this domain.

Using the CLI this is not possible.
I tried that with this command:
Code:
/usr/local/psa/bin/dns --add ${DOMAIN} -srv "" -srv-priority 0 -srv-weight 0 -srv-port 0 -srv-protocol tcp -srv-service pop3 -srv-target-host ""

I have been given this as a work-around, but this is not according to RFC
Code:
/usr/local/psa/bin/dns --add ${DOMAIN} -srv "" -srv-priority 0 -srv-weight 0 -srv-port 0 -srv-protocol tcp -srv-service pop3 -srv-target-host "0.0.0.0"

On top of that the GUI makes it impossible to define a port 0
It wrongfully says it needs to be between 1-65535, which should in fact be 0-65535​
STEPS TO REPRODUCE:
Code:
DOMAIN=dummy.nl
[root@ns3 ~]# /usr/local/psa/bin/dns --add ${DOMAIN} -srv "" -srv-priority 0 -srv-weight 0 -srv-port 0 -srv-protocol tcp -srv-service pop3 -srv-target-host ""
Incorrect DNS Record parameter values were specified

[root@ns3 ~]# /usr/local/psa/bin/dns --add ${DOMAIN} -srv "" -srv-priority 0 -srv-weight 0 -srv-port 0 -srv-protocol tcp -srv-service pop3 -srv-target-host "0.0.0.0"
SUCCESS: Creation of DNS record in Domain 'dummy.nl' complete.
ACTUAL RESULT:
Code:
DOMAIN=dummy.nl
[root@ns3 ~]# /usr/local/psa/bin/dns --add ${DOMAIN} -srv "" -srv-priority 0 -srv-weight 0 -srv-port 0 -srv-protocol tcp -srv-service pop3 -srv-target-host ""
Incorrect DNS Record parameter values were specified
EXPECTED RESULT:
Code:
DOMAIN=dummy.nl
[root@ns3 ~]# /usr/local/psa/bin/dns --add ${DOMAIN} -srv "" -srv-priority 0 -srv-weight 0 -srv-port 0 -srv-protocol tcp -srv-service pop3 -srv-target-host ""
SUCCESS: Creation of DNS record in Domain 'dummy.nl' complete.
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Issue requests were created:

- PPPM-6371 srv-port 0 for SRV DNS record can not be specified using GUI
- PPPM-6374 SRV DNS record with empty target can not be added

Thank you.
 
Back
Top