Results 1 to 4 of 4
  1. #1

    Exclamation CNAME or A record in DNS Zone?

    i have just created a dns ZONE for my domain, but i dont know what to use for ftp service.

    i looked up in cpanel dns zone records for the domain i created and it looks like this... i am confused what to use CNAME or A record for an FTP entry


    ftp 14400 IN A <IP> (for sites on shared IP)
    ftp 14400 CNAME domain.com. (for sites with dedicated ip)
    what is the difference? what if i change to


    ftp 14400 IN CNAME domain.com. (for sites on shared IP)
    ftp 14400 A <IP> (for sites with dedicated ip)

    confused

    Also, how many A records i can place in zone file?

    Thanks

  2. #2
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,858
    cname is an alias, if you set

    ftp in cname domain.com.

    then it'll require 2 dns queries, one to get ftp.domain.com's record, and another to get domain.com's record.

    If you just make it an A record, only one query to get the record for ftp.domain.com will be required.


    you can put as many A records as you cant in a zone file.

  3. #3
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,842
    Quote Originally Posted by ub3r View Post
    then it'll require 2 dns queries, one to get ftp.domain.com's record, and another to get domain.com's record.
    Only if the CNAME points to a different domain, not served by the same nameservers. If the same nameservers are authoritative for both, as is probably the case here, they'll most likely return both results for a single query - the CNAME and the A it points to. (In short, it doesn't matter which you use).

    you can put as many A records as you cant in a zone file.
    Or even more!
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  4. #4
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Quote Originally Posted by olddocks View Post


    what is the difference?
    Cname and A record do the same purpose. It helps to point to a IP address. If you need to point one.domain1.com to domain2.com and dont know the IP address of domain2.com, just add CNAME for "one" to domain2.com inside the zone of domain1.com.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •