CNAME to external server

Discussion in 'Installation/Configuration' started by wiss, Oct 31, 2010.

  1. wiss

    wiss Member

    Hy.

    I'm interested in create a CNAME dns record for a www subdomanin to external site like this:
    Code:
    dig www.pcrednet.com
    
    ; <<>> DiG 9.7.0-P1 <<>> www.pcrednet.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24078
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.pcrednet.com.		IN	A
    pd:
    ;; ANSWER SECTION:
    [B]www.pcrednet.com.	13680	IN	CNAME	pcrednet.no-ip.org.
    pcrednet.no-ip.org.	16	IN	A	82.158.76.244[/B]
    
    ;; Query time: 948 msec
    ;; SERVER: 208.67.222.222#53(208.67.222.222)
    ;; WHEN: Sun Oct 31 21:36:24 2010
    ;; MSG SIZE  rcvd: 82
    
    The no-ip domain is dinamyc ip.

    I have a manual but not found how can i do this.

    pd: sorry for my english.Thx.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Go to dns module, edit your zone, click on new cname and enter the cname record.
    The cname record for www.pcrednet.com in the output above is fine.
     
  3. wiss

    wiss Member

    I have configured it like you havel told me:

    [​IMG]

    and outupu of dig www.cblasan.net:
    Code:
    dig www.cblasan.net
    
    ; <<>> DiG 9.7.0-P1 <<>> www.cblasan.net
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 11470
    ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
    ;; WARNING: recursion requested but not available
    
    ;; QUESTION SECTION:
    ;www.cblasan.net.		IN	A
    
    ;; ANSWER SECTION:
    [/B]www.cblasan.net.	86400	IN	CNAME	www.cblasan.com.cblasan.net.[/B]
    
    ;; AUTHORITY SECTION:
    cblasan.net.		86400	IN	SOA	ns1.pcrednet.net. info.pcrednet.com. 2010110101 28800 7200 604800 86400
    
    ;; Query time: 67 msec
    ;; SERVER: 84.246.215.12#53(84.246.215.12)
    ;; WHEN: Mon Nov  1 10:19:05 2010
    ;; MSG SIZE  rcvd: 129
    
    And not works.
     
  4. wiss

    wiss Member

  5. falko

    falko Super Moderator ISPConfig Developer

    You've forgotten a dot. Now you have:

    Code:
    CNAME www www.cblasan.com
    but it must be
    Code:
    CNAME www www.cblasan.com[B][COLOR="Red"].[/COLOR][/B]
     
  6. wiss

    wiss Member

    Thank you so much Falko. Works now:
    Code:
     dig www.domain.net
    
    ; <<>> DiG 9.7.0-P1 <<>> www.domain.net
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28057
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.domain.net.		IN	A
    
    ;; ANSWER SECTION:
    www.domain.net.	86369	IN	CNAME	www.domain.com.
    www.domain.com.	14370	IN	A	93.93.116.45
    
    ;; Query time: 63 msec
    ;; SERVER: 208.67.222.222#53(208.67.222.222)
    ;; WHEN: Mon Nov  1 17:25:57 2010
    ;; MSG SIZE  rcvd: 78
    
    
     
    Last edited: Nov 21, 2010
  7. Ben

    Ben ISPConfig Developer ISPConfig Developer

    As this is often an issue and maybe not known to many,

    a FQDN always ends with a dot (.). Eventhough e.g. a Webbrowser does not really care about, from the resolver's point of view, in any case an DNS-Name does NOT end with a dot (.), it is not terminated and thus possible / allowed to attach any known suffic for lookup....
     

Share This Page