Setting CNAME does not work

Discussion in 'ISPConfig 3 Priority Support' started by Spaetzle, Jul 31, 2018.

  1. Spaetzle

    Spaetzle Member HowtoForge Supporter

    Hi
    I need to set up a CNAME record for a domain.
    I opened ub the zone, deleted all other (unneeded A, MX, ... entries) and added the CNAME entry.
    As "Hostname" i use the domain, followed by a dot (as this: myname.de.), as target hostname I used the wanted domain followed by a dot (eg. target.name.tld.). When saving the red dot with a the number of changes that should be done is shown in the top area left of the search box. After this sign is gone I tried to get the information form the server and checked the corresponding file (/etc/bind/pro.name.de). The CNAME entry could not be seen.
    I can not see an error in the system logs ...
    Do you have any hint. All hints I could find where the missing dot at the end of the entries. But I did not forget to add them.

    Regards
    Bernd
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Probably you deleted too many records where not all were unneeded, but that's just a guess.

    Is there a file /etc/bind/pro.name.de.err now?
     
  3. Spaetzle

    Spaetzle Member HowtoForge Supporter

    Hi Till
    Yes I found that one.
    It looks like this:
    $TTL 3600
    @ IN SOA CCC.DDDDDD.de. AAAAA.BBBBBBB.de. (
    2018073113 ; serial, todays date + todays serial #
    7200 ; refresh, seconds
    540 ; retry, seconds
    604800 ; expire, seconds
    3600 ) ; minimum, seconds
    ;

    XXXXXXXX.de. 3600 CNAME master-4rzewti-cjx4t5rbwquu3.de-1.ttttttt.sssss.
    XXXXXXXX.de. 3600 NS d.GGGGG.net.
    XXXXXXXX.de. 3600 NS b.GGGGG.net.
    XXXXXXXX.de. 3600 NS c.GGGGG.net.

    As you might guess ;-) I blackend the real names. the target for the CNAME is changed too. The real version contains in the first part letter, digits and the hyphen sign.

    Regard
    Bernd
     
  4. Spaetzle

    Spaetzle Member HowtoForge Supporter

    OK.
    Stupid me. It was the first time I set a CNAME ... I think a CNAME could not be set for a root domain. The CNAME host must be subdomain.domain.tld.
    Am I right?

    Regards
    Bernd
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    You can use the named-checkzone command to get the exact error message from BIND:

    named-checkzone name.de /etc/bind/pro.name.de.err

    And yes, you probably can not use a CNAME for the zone itself, replace it with an A-Record.
     
  6. Spaetzle

    Spaetzle Member HowtoForge Supporter

    Hi
    I will check this out with the next error ;-)

    Thanks for the hints and you god work.

    Bernd
     

Share This Page