Underscore in CNAME record [SOLVED]

Discussion in 'ISPConfig 3 Priority Support' started by SupuS, Mar 30, 2015.

  1. SupuS

    SupuS Member HowtoForge Supporter

    Hi,
    I found it is not possible to use underscore in CNAME record even it is allowed in RFC:
    http://domainkeys.sourceforge.net/underscore.html
    How is it possible to permanently add underscore to cname record like this:
    Code:
    k1._domainkey 3600      CNAME        dkim.mcsv.net.
    I edited zone file directly but it will be removed with next DNS change in ISPConfig.
    Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. SupuS

    SupuS Member HowtoForge Supporter

    Hi Till,
    thank you. Is it way to add CNAME record with underscore manually and avoid deleting by ISPConfig?
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    change the validator in interface/web/dns/form/dns_cname.tform.php from
    Code:
    'regex' => '/^[a-zA-Z0-9\.\-\*]{0,255}$/',
    to
    Code:
    'regex' => '/^[a-zA-Z0-9\.\-\*\_]{0,255}$/',
    @till: you can mark this task as solved.
     
    till likes this.
  5. SupuS

    SupuS Member HowtoForge Supporter

    Hello Florian,
    thank you it works.
     

Share This Page