DNS/CNAME Config question

Discussion in 'Installation/Configuration' started by baronw, Jul 1, 2008.

  1. baronw

    baronw New Member

    I created a box to run ispconfig with the name (not real) box1.domain.com

    then after all was installed I made a new site called domain.com and had the wizard create MX record and all other appropriate DNS entries. (MX is pointed to box1.domain.com)
    ***all same IP address
    Now www work but testing email from outside I get:

    Looking up IP address for box1.domain.com.
    There is no A record for box1.domain.com..

    First off did I mess up by naming the box in the same domain name the site is?

    Anyway I figure I could add a CNAME box1 to www and all is well but that does not work.

    I even tested making up a fictitious A record (which resolves from outside) but when I add a cname..that does not work either.

    I went into the bind conf dir and looked at the PTR for that domain and the syntax was:

    box1 CNAME www.
    (including the period)

    I tried a variety of ways taking off the period and adding the IN according to the bind how-to's.

    Is there something I am missing or an easy way to just resolve box1.domain.com to the outside ?

    Thanks in advance
     
  2. baronw

    baronw New Member

    in the addition to above I noticed that NO cnames are working. I just tried mail pointing to www and mail will not resolve if that helps.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that you created a DNS A-Record for box1.domain.com in the authoritive nameserver of the domain domain.com. If the authoritive server for box1.domain.com is domain.com, then you will have to ask your domain registry to create glue records for you.

    Here is a howto that explains how to run your own nameservers with godaddy:

    http://www.howtoforge.com/ispconfig_dns_godaddy
     
  4. baronw

    baronw New Member

    There isnt a problem going to www.domain.com or if I add another A record to another IP. There is a problem with ANY CNAME I create.

    I did add the A record for box1.domain.com and it works. If I add a cname for www -> box1 doesnt work.

    I created another site with another domain.

    A record works with www.domain2.com

    I create a CNAME pointing mail->www

    Doesnt work
     
    Last edited: Jul 1, 2008
  5. falko

    falko Super Moderator ISPConfig Developer

    Did you check the zones files if they are ok?
     
  6. baronw

    baronw New Member

    yep *note the domain name and IP's have been hidden to protect the innocent

    $TTL 86400
    @ IN SOA trogdor.domain.com. admin.domain.com. (
    2008070109 ; serial, todays date + todays serial #
    28800 ; refresh, seconds
    7200 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;
    NS trogdor.domain.com. ; Inet Address of name server 1
    NS trogdor.domain.com. ; Inet Address of name server 2
    ;

    MX 10 trogdor.domain.com.

    domain.com. A 99.99.99.99
    trogdor A 99.99.99.99

    www CNAME trogdor.

    domain.com. TXT "v=spf1 a mx ptr ~all"

    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
     
  7. baronw

    baronw New Member

    this is for domain 2 that I made to test and cnames not working either.

    $TTL 86400
    @ IN SOA trogdor.domain.com. admin.domain2.com. (
    2008070104 ; serial, todays date + todays serial #
    28800 ; refresh, seconds
    7200 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;
    NS trogdor.domain.com. ; Inet Address of name server 1
    NS trogdor.domain.com. ; Inet Address of name server 2
    ;

    MX 10 trogdor.domain.com.

    domain2.com. A 99.99.99.99
    www A 99.99.99.99

    mail CNAME www.

    domain2.com. TXT "v=spf1 a mx ptr ~all"

    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
     
  8. falko

    falko Super Moderator ISPConfig Developer

    The dot is the problem:
    You are supposed to filll in the FQDN in ISPConfig, not just a subdomain.

    E.g.:
    Code:
    www CNAME trogdor.domain.com.
     
  9. baronw

    baronw New Member

    if I change it in the bind file vs ispconfig will that effect anything?
     
  10. baronw

    baronw New Member

    I changed it in the bind file for the zone and restarted bind9 and still no go
     
  11. falko

    falko Super Moderator ISPConfig Developer

    You must change it in ISPConfig because otherwise your changes will be overwritten by ISPConfig.
     

Share This Page