Thursday, January 20, 2011

Will a wildcard CNAME take precedence over a named CNAME record ?

Hi Guys,

Generally wondering whether its possible to have both a CNAME entry with a " * " to domain and a seperate subdomain mapping i.e. like

*              | CNAME | domain.com
bla.domain.com | CNAME | some.example.com

Is this possible or does the * overwrite the "bla.domain.com" and therefore when you enter "bla.domain.com" you go to "domain.com" ?

  • In BIND, the wildcard matches when another record does not exist. See http://en.wikipedia.org/wiki/Wildcard_DNS_record.

    BrianEss : Not just BIND, any RFC 1912 DNS server will do this.
    Alnitak : RFC1912 is telling _operators_ how not to do wildcards. RFC 1035 is the one that _servers_ comply with.
    From Warner
  • A more specific entry always overrides a wildcard, not the other way around.

    For chapter and verse, see §4.3.3 of RFC 1034.

    From Alnitak

0 comments:

Post a Comment