Questions tagged [cname-record]

A CNAME record or Canonical Name record is a type of resource record in the Domain Name System (DNS) that specifies that the domain name is an alias of another, canonical domain name.

Filter by
Sorted by
Tagged with
165 votes
3 answers
109k views

Why can't a CNAME record be used at the apex (aka root) of a domain?

This is a Canonical Question about CNAMEs at the apices (or roots) of zones It's relatively common knowledge that CNAME records at the apex of a domain are a taboo practice. Example: example.com. IN ...
Andrew B's user avatar
  • 32.8k
107 votes
8 answers
173k views

Is a wildcard CNAME DNS record valid?

I know it's valid to have a DNS A record that's a wildcard (e.g. *.mysite.com). Is it possible/valid/advised to have a wildcard CNAME record?
Ben Mills's user avatar
  • 1,203
96 votes
2 answers
93k views

Should CNAME Be Used For Subdomains?

I manage multiple websites that currently have the following DNS configuration: example.com - A Record - Production Server IP test.example.com - A Record - Test Server IP www.example.com - ...
Joseph Sturtevant's user avatar
90 votes
3 answers
58k views

Is a CNAME to CNAME chain allowed?

Is it allowed in DNS to have a CNAME record that points to another CNAME record? The reason we need this is that we have a hostname that we want to be looked up to the IP address of our web server ...
Erik Sjölund's user avatar
73 votes
6 answers
347k views

How to redirect domain A to domain B using A-Records and CNAME records only

I have 2 domains hosted with different hosts. I need to redirect Domain A to Domain B. Unfortunately I can't do a 301 redirect from Host A, but can only modify/add DNS entries (A-Records and CNAMEs) ...
Prembo's user avatar
  • 917
63 votes
2 answers
147k views

Can we have multiple CNAMES for a single Name?

I need this for load balancing. For example, I've two azure storage accounts (say a and b) and the blob addresses for those are a.blob.core.windows.net and b.blob.core.windows.net. Both of them store ...
Raghuram Murthy P's user avatar
55 votes
2 answers
225k views

CNAME record/alias in windows hosts file?

Is it possible to enter some sort of CNAME record or alias in the windows hosts file (C:\Windows\System32\drivers\etc\hosts)? Basically I want to forward all requests made to host A to host B, ...
MEMark's user avatar
  • 651
53 votes
4 answers
155k views

Can a CNAME DNS record point to a subdirectory

Can a DNS record point to an address like my.domain.com/subdir1
Hannes de Jager's user avatar
48 votes
3 answers
117k views

How to list all CNAME records for a given domain?

I cannot list them using dig/nslookup/host.
Paweł Gościcki's user avatar
48 votes
3 answers
42k views

CNAME for top of domain?

Is it possible to set a CNAME record at the top of a domain? (i.e. @ CNAME www, @ CNAME foobar.com., etc.) My ISP says that it's only possible to use CNAME's for subdomains but I've read somewhere ...
Martin's user avatar
  • 775
42 votes
4 answers
85k views

Using CNAME to point to another domain to save IP addresses

I have one server which I'm hosting a handful of sites on. Currently, each site has it's domain hosted by an independent provider and each has an A record pointing to the server's IP address. But if ...
wows's user avatar
  • 535
33 votes
2 answers
69k views

www a-record vs cname-record

I have set up DNS for my website so that example.com is an A record (pointing to the IP), but I don't know what to do about www.example.com. I intend to add a CNAME record www.example.com so it would ...
Sorin Buturugeanu's user avatar
32 votes
2 answers
70k views

What does the TTL on a CNAME record mean?

Due to how many servers are involved in my network, I have a hard time keeping them all organized. Some of them don't have static IP's, so I thought it might be nice if I made a config.mydomain.com ...
Ryan Pendleton's user avatar
29 votes
3 answers
42k views

Do I need a separate SSL certificate for a DNS redirect?

I am implementing a multi-tenant application where my application hosts and serves technical documentation for a tenant's product. Now, the approach that I was considering was - I host the ...
codematix's user avatar
  • 401
28 votes
2 answers
69k views

Adding both CNAME and TXT DNS records for one subdomain

I have a Heroku app and I need to set up a domain for it. The common way to set it up is to use CNAME record to specify that this domain is an alias to <your-domain-name>.herokuapp.com. The ...
serge1peshcoff's user avatar
28 votes
2 answers
60k views

Do CNAME records require time to propagate?

When I typically update DNS ("A" records) I will allow for an extended period of time for the changes to propagate throughout the root nameservers. Do I need to make this same allowance for updates ...
Jaryd Malbin's user avatar
27 votes
3 answers
23k views

DNS, Do A Record wildcards have priority over more-specific CNAMEs?

We have a wildcard set up to handle all subdomains for "example.com" A RECORD: *.example.com points to 10.10.10.10 We have a more specific A record to handle a special subdomain (this works fine): ...
zdennis's user avatar
  • 373
25 votes
3 answers
23k views

What's the difference between `dig` and `host` when querying a specific name-server?

I was using this command to verify if I'd set things up correctly with a DNS provider: host hostname.example.com ns1.example-nameserver.com As far as I can tell, this asks ns1.example-nameserver.com ...
jhabbott's user avatar
  • 381
25 votes
1 answer
16k views

In DNS can an IN NS point to a CNAME?

Is it allowed to have an NS record be a CNAME? E.g.: subdomain.example.com. IN NS ns1.example.com. ns1.example.com. CNAME foo.example.com. foo.example.com. IN A 10.1....
Mark Wagner's user avatar
  • 18.1k
24 votes
2 answers
24k views

Why can't a domain's root be a CNAME? [duplicate]

I've just read this question which essentially says that when I set up DNS for example.com, the root record can't be a CNAME, it has to be an A record. My question is, why? I'm sure the clever ...
billpg's user avatar
  • 585
24 votes
3 answers
47k views

How long does it take for a Route 53 CNAME to work?

I have set up a CNAME in Amazon's Route 53 to point to another server. This is a new CNAME for a new subdomain pointing to an existing domain name. With other DNS providers that I've worked with, new ...
David Sulpy's user avatar
22 votes
8 answers
37k views

DNS: Subdomains that Require Both an MX Record and a CNAME

Let us say we own the zone mywebservice.com. I would like each of my customers to get their own subdomain, such as customer.mywebservice.com. customer.mywebservice.com needs to be a CNAME to a given ...
Michael Gorsuch's user avatar
20 votes
3 answers
15k views

CNAME and A record have different TTLs. Which one will be cached?

If a CNAME has a TTL of 1 hour that points to an A record with a TTL of 1 minute, will someone who looks up this CNAME have the entire result cached for 1 hour, or will it will keep having to lookup ...
Sean's user avatar
  • 379
20 votes
2 answers
37k views

Resolve a domain name to CNAME alias locally using dnsmasq

I'd like to resolve a domain name somedomain.com to a CNAME (AWS load balancer, e.g. some-balancer-1213231237.ap-southeast-2.elb.amazonaws.com), but only locally. What I mean to achieve is that ...
luqo33's user avatar
  • 357
19 votes
2 answers
10k views

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

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....
user avatar
17 votes
2 answers
10k views

Published SRV records pointing to CNAME alias in violation of RFC 2782?

In the course of some work responsibilities I need to bone up on SRV records, and I'm trying to reconcile a Wikipedia statement with what I'm seeing in DNS digs. According to Wikipedia's SRV record ...
Scott's user avatar
  • 273
16 votes
5 answers
19k views

Set root domain record to be a CNAME

I need to create an NS record for a domain that is a CNAME, for the purpose of having two domains pointed at one IP, and not having to maintain the current IP address in two different places. The DNS ...
tomfanning's user avatar
  • 3,378
15 votes
2 answers
9k views

Can you reference a CNAME record in an MX record?

We have several domains all pointing their MX records at mail.ourdomain.com, an internal mail server. We are looking to outsource our email to a new supplier, who would like us to use mail....
NeilS's user avatar
  • 253
15 votes
5 answers
63k views

Querying DNS for CNAMEs for a server

Is there a way to query our internal DNS entries to discover all the CNAME entries that point to a particular server? Edit: We're a Windows environment, Server 2003.
PhilPursglove's user avatar
14 votes
1 answer
27k views

cpanel - I'd like to add CNAME for domain.com [duplicate]

I want to change an A record of my root domain www.domain.com to CNAME dyndns.org. But the cpanel gives me the following error: already has a SOA record. You may not mix CNAME records with other ...
user avatar
13 votes
3 answers
6k views

Having Multiple CNAMEs

We have our DNS domain with 5 level CNAMEs for historical reasons. Some of the things got outsourced for high availability etc. but that's not the point here. My question is having 5 CNAMEs an ...
Vishal Naidu's user avatar
13 votes
1 answer
23k views

IPv6 AAAA vs. CNAME for same domain name

I reach my home site through a DynDNS name, and also have tunneled IPv6 there. In the DNS zone, I have: myhomesite CNAME example.dyndns.org. How do I simultaneously point "myhomesite" to an AAAA ...
unixtippse's user avatar
12 votes
4 answers
38k views

How to create a CNAME for a domain's root name

I'd like to set a domain's root name to a CNAME instead of the usual A record. Here's a perfect example of what I'm trying to do: dig lrnskls.com Notice the answer section: ;; ANSWER SECTION: ...
user avatar
12 votes
4 answers
49k views

Is there any way to point the root domain to a CNAME? [duplicate]

Here is the problem: we host our website with an external provider that doesn't give us an IP address, rather, they give us a domain where we point our www CNAME record to. I assume they are using ...
Ryan Mortier's user avatar
12 votes
2 answers
65k views

Which FQDN hostname to use for SSL certificate signing request- when using a CNAME record?

We have a subdomain (https://portal.company.com) that is the alias for a different hostname (defined in a CNAME record). This dynamic DNS hostname (https://portal.dlinkddns.com) resolves to the ...
Austin ''Danger'' Powers's user avatar
11 votes
2 answers
455 views

Changing A record and CNAME records

Currently I'm using a LAMP configuration for both my landing page page, for the web app, and for the APIs. Now I'd like to split these things across multiple Virtual Servers (VS). I'm unsure of the ...
don's user avatar
  • 215
11 votes
3 answers
7k views

record DKIM on IONOS makes sense?

If I am sending mail through SMTP, I understand that it is IONOS who signs those emails, right? I would like to add the DKIM header to my emails. I know that it is necessary to publish a CNAME record ...
Diego's user avatar
  • 113
11 votes
2 answers
12k views

Not receiving mails from some senders due to DNS config

I have noticed a peculiar behavior of my google apps domain. Most of the mails come through as you would expect, but over a period of time I have come to the conclusion that mails from certain senders ...
Milo Wielondek's user avatar
11 votes
4 answers
10k views

How do I use SSL with Amazon S3 CNAME masked buckets?

I am successfully running an Amazon S3 bucket as media.mydomain.com. The problem is, I'm running an https site and I'm unable to link to files using https//media.mydomain.com. How can I switch to ...
Citizen's user avatar
  • 560
10 votes
2 answers
10k views

Godaddy cname "@" not working (instructions from Heroku)

I created a little app on Heroku, and am trying to follow their directions for setting up a custom domain on Godaddy. I've created a CNAME for www, but I can't create one for @ (or mydomain.com. per ...
btelles's user avatar
  • 203
10 votes
2 answers
15k views

Best way to add a DNS wildcard record for a domain

What is the best way to add a DNS wildcard record for a domain? I want example.net, www.example.net, a.b.c.www.example.net, ... going to one server. Now I use: example.net. 60 IN A 1.2.3....
martin's user avatar
  • 228
9 votes
3 answers
4k views

CNAME with S3 buckets

I have a Web and I wanted to move its images to AWS S3. Say it's called mypage.com and I can access to an image like this: https://mypage.com/pics/one.jpg I created a bucket called static.mypage.com ...
Ommadawn's user avatar
  • 235
9 votes
3 answers
8k views

What URL should the browser display with this DNS configuration?

If I have the following records in the DNS: hostname Record Type address benmccormack.com A 216.10.244.61 www.benmccormack.com CNAME ...
Ben McCormack's user avatar
9 votes
4 answers
49k views

Redirect subdomain.example.org to somethingelse.com hidden to the user?

I'm not knowledgeable at all about C-NAMES, A-RECORDS, name servers and the like, so just bear with me on this one: I want to redirect subdomain.example.org to another domain somethingelse.com. I do ...
Dennis G's user avatar
  • 608
9 votes
2 answers
16k views

Does an SSL certificate work on CNAME'd urls?

Suppose I create sub domain per user, something like mysite.test.com which is secured under a wildcard ssl certificate. If I allow users to have their own custom url via a CNAME would the new url ...
whatWhat's user avatar
  • 529
9 votes
2 answers
8k views

Do CNAME DNS entries affect SEO?

I am setting up a website for a client that I will be hosting and maintaining, and I am trying to determine what will be the most pain free setup. My thought is to do the following: Set up the ...
user avatar
9 votes
2 answers
9k views

How do i smoothly update ntpd's peer list?

I have a network of solaris/linux servers that have ntpd configured to use a single internal server of stratum 2 through a DNS alias/CNAME. This is server is down for some time and the client servers' ...
Benoît's user avatar
  • 1,341
8 votes
2 answers
12k views

Changing an `A` record to a `CNAME` without downtime

I have a domain name (currently hosted on dyn.com) with an A record pointing to our production IP address. We're moving across to Amazon EC2 and are using a load balancer, with the recommendation ...
James Davies's user avatar
8 votes
4 answers
47k views

How to redirect domain without breaking the email?

Good morning - I'm a product manager type building an application for the first time. I've taught myself the ruby and rails pieces, but I'm a little gunshy about the sysadmin stuff. I apologize in ...
Jason Butler's user avatar
8 votes
3 answers
7k views

Best practice for placing DNS records and subdomains

Say I have mydomain.com: Is it better to use option A: [A] mydomain.com 123.45.67.89 [A] www.mydomain.com 123.45.67.89 or option B: [A] mydomain.com 123.45.67.89 [CNAME] www....
nightrod's user avatar
  • 113

1
2 3 4 5
15