Symptoms

Customer is trying to create DNS record of the CNAME type . He is specifying an underscore in record name. OA returns an error:

Domain names must contain Latin characters, digits, hyphens and dots as separators and must start and end with a letter or a digit.

Cause

Prior to OA version 6.0.3, underscores in CNAME record names are not supported. However, 'Canonical name' field still cannot handle underscores. Feature Request #POA-100983 is filled to implement missing functionality.

Resolution

Please, consider updating your OSA installation to the latest version.

Workaround

NOTE: This CNAME record can't be managed from CCP.

  1. Login into the name servers and backup the domain "domain.tld" zone file.
  2. Then add the requested CNAME record to the zone file.

    [root@ns1 ~]# grep 'smtpapi._domainkey.domain.tld' /var/named/run-root/var/domain.tld.
    smtpapi._domainkey.domain.tld.            CNAME   dkim.domain.tld.
    
  3. Reload the zone file.

    [root@ns1 ~]# named-checkzone domain.tld /var/named/run-root/var/domain.tld.
    /var/named/run-root/var/domain.tld.:1: no TTL specified; using SOA MINTTL instead
    zone domain.tld/IN: loaded serial 51772
    OK
    
    [root@ns1 ~]# rndc reload domain.tld
    zone reload queued
    [root@ns1 ~]# rndc reload domain.tld
    zone reload up-to-date
    
  4. Then it can resolve the host "smtpapi._domainkey.domain.tld" within the name servers.

    [root@ns1 ~]# dig -t CNAME smtpapi._domainkey.domain.tld @ns1.provider.tld +short
    dkim.sendgrid.net.
    
    [root@ns2 ~]# dig -t CNAME smtpapi._domainkey.domain.tld @ns2.provider.tld +short
    dkim.sendgrid.net.
    
    [root@ns3 ~]# dig -t CNAME smtpapi._domainkey.domain.tld @ns3.provider.tld +short
    dkim.sendgrid.net.
    

Internal content

Link on internal Article