How to Update CName Record At CloudFlare - hosting

I am trying to using CloudFlare service for my hosting.After changing my domain dns to cloudflare ,My Domain cname record at cloudflare was redirecting my site to a parking page.By mistake i have deleted that but now can not update my cname record.Any idea how can i do this?

Select DNS in the cloudflare topbar:
Edit the name or value of an existing record, or add a new one with the add record function:
Please update the original question.
But in regards to your question, CNAMES direct to another domain name, never an ip:
https://support.dnsimple.com/articles/cname-record/
If the record must point to an IP, you will need to add an A record.
In regards to what the specific values are for your host, you will need to get these from your Host.

Related

Configure DNS for root domain on Namecheap

Relatively new to coding and was looking for some help on configuring the DNS for a root domain. I've been following this heroku guide on adding a custom root domain and am currently stuck since the guide doesn't have specific rules on if your DNS provider is Namecheap (where I got my domain from).
To clarify, I have the domain gperalta.com and would like it to show the page I made at https://guarded-caverns-49596.herokuapp.com/. The closest I've been to having this work is having Namecheap redirect from gperalta to the herokuapp URL. But I'd like the URL itself to remain as 'gperalta.com' instead of defaulting back to the herokuapp URL.
Namecheap lists a Type, Host, Value, and TTS under their Advanced DNS Section. For reference, here are the options for what you can choose for Type:
A Record
A+ Dynamic DNS Record
AAAA Record
CNAME Record
NS Record
SRV Record
TXT Record
URL Redirect Record
Haven't been able to find anything on Namecheap (closest answer I found involves using an IP address, but heroku doesn't keep a consistent IP for apps) or stackoverflow so far, so any help would be much appreciated.
I hope this helps you get started. https://www.namecheap.com/support/knowledgebase/article.aspx/9737/2208/pointing-a-domain-to-the-heroku-app
In the future, Namecheap has an always-accessible 24/7/365 Live Chat and ticket platform so you should expect to get answers quicker.

Configure DNS to work with both heroku and google suite

I currently have 3 DNS records:
www.erbij.app - CNAME - www.erbij.app.herokudns.com
api.erbij.app - CNAME - api.erbij.app.herokudns.com
erbij.app - CNAME - erbij.app.herokudns.com
Our web app and api are functioning fine. However, I'd like to have our email hosted by Google Suite, so I'm trying to add MX records:
erbij.app - MX - ASPMX.L.GOOGLE.COM.
But I get an error that I can't have two records for erbij.app.
I've tried contacting my domain registrar, but they don't have a blue.
In this SO question the possible solution of subdomain redirection is mentioned, but how does this work? If erbij.app is not pointing to a server, how can I use server software to redirect all requests to www.erbij.app?
My apologies if this is a silly question. I know very little about DNS records.
I ended up signing up for CloudFlare (thanks Luke Ramsden for the tip) to manage my DNS. Cloudflare does allow users to add CNAME/ALIAS records to the root domain.
Simply change the nameservers in the control panel of your registrar, configure the domain on cloudflare.com and you're done.
Is you zone erbij.app? In that case you shouldn't have a CNAME record that has the same name as your zone in the first place, and also, a CNAME record name must be unique so you cannot have an MX with that name if you have the CNAME

Configure a custom domain name for an azure blob storage endpoint

I am following these instructions on how to configure a custom domain for a blob storage endpoint
and get to the instruction on configuring the custom domain name
Azure shows
I expect I need to enter the custom domain name but I am not clear on how to do this.
For example which one?
contoso.com
www.contoso.com
http://www.contoso.com
http://contoso.com
I am trying contoso.com
When I do this I see a brief message stating
Failed to update storage account 'mystaticwebsite' Error: The custom domain name could not be verified. CName mapping from contoso.com to mywebsite.blob.core.windows.net does not exist
using my example names
I have only just changed my domain name hosting location so I expect I need to wait.
[Update]
I see that all my storage accounts belong to the same Active Directory.
Could it be that the website needs to have the same domain as the Azure Active Directory?
[Update]
I see the CName record is not propagating.
I have asked about it here
I noticed existing answers are over a year old. Here is my scenario and the simple change I needed:
I already had my domain/website running through Cloudflare for the past 5+ years. My simple static .html website was being hosted on a traditional IIS server, but Azure's Static website offering is much more attractive, so now I was trying to move everything over as an Azure static website.
I created a new Storage Account and set up the "Static website" and copied my files over via Azure Storage Explorer.
My static website was working over Azure's url -- https xxxxxx.z5.web.core.windows.net fine.
I went to the "Custom domain" settings in the Blob service section of my Storage Account and followed the instructions of adding a CNAME for example.com and www in Cloudflare's DNS settings dashboard.
Back in the Azure Portal, I typed www.example.com into the custom domain textbox, but was immediately notified of:
"Failed to update storage account 'xxxxxxx'. Error: The custom domain name could not be verified. CNAME mapping from www.example.com to any
of xxxxx.windows.net, xxxxx.core.windows does not exist."
But I already followed the CNAME instructions and my Cloudflare DNS entries looked exactly like they wanted. I waited hours, thinking it was a DNS replication/refresh issue. I went to bed. Same problem in the morning.
THEN I noticed one thing that was different in Cloudflare... All 3 of the CNAMES i set up (asverify.www, example.com and www) all had Status "DNS and HTTP proxy (CDN)" turned on (the cloud icon with an arrow through it was lit up and orange colored.)
I clicked each one to turn off HTTP proxy. So now my DNS entries at Cloudflare are "DNS only" <-- this is the tl;dr, thanks for reading all this way.
tl;dr: If your DNS Records are set up in Cloudflare, you must make each of those entries "DNS only" and not "DNS and HTTP proxy (CDN)"
Edit: After your custom domain name is verified, you can go back into Cloudflare and turn the HTTP proxy (CDN) back on. You will need to add a Page Rule of example.com/* to Forwarding URL 301 to https://www.example.com/$1 if you want SSL to work for a root site.
As your first link mentioned, you need to get a custom domain name which binds your blob storage endpoint url before you enter the domain name in textbox.( step 3, 4, 5 ).
If you enter the domain name casually, you would get the above error. And you needn’t to enter ‘http://’ in textbox. The ‘contoso.com’ and ‘www.contoso,com’ are OK.
If you have a custom domain name, you just need to create a CNAME record with your DNS provider that points from your domain (like www.contoso.com) to blob endpoint url. Different domain registrar's websites have different methods.
For Azure,you could follow my steps to bind a domain name to blob endpoint url:
Before you do this, please make sure you have purchased a valid domain name. If not, please refer to this step to buy: (App Service>Create App service>click Custom domains> Buy domain).
Or you could read this article to buy a domain name.
Buy domain
If you have already purchased it, you could see the custom domain name like this:
the domain name you have purchased
Open your App Service>Custom domains>App Service Domains(domain name list)> click your domain name>Click DNS Zone>click ‘+Record set’ button.
Record set
In Name property, you could enter a custom domain name( such as aa.contoso.com). In Type, you could choose CNAME. In Alias, you could enter your blob storage endpoint url which you want to bind( such as myname.blob.core.windows.net). After you saved the record, you’d better to click ‘Refresh’ button to refresh the domain record list.
The bind screenshot like this:
Bind blob endpoint url to custom domain name
Return storage account> Blob Service>Custom domain>In textbox, you could enter the custom domain name which you have created. (such as aa.contoso.com).
Finally, you could save the domain name successfully. (If you saved successfully, the ‘Save’ button would be disabled.)
save custom domain name successfully
I made a CNAME record with name=docs Alias to myblob.website.blob.core.windows.net ( i.e mapping to the storage account in Azure)
Then in the text box in the Azure Custom domain screen I entered docs.contoso.com
then I made a redirect for www to http://docs.contoso.com/index.html
So now
www.contoso.com opens the index.html to say "hello world"
Note I do have the $root container set up with index.html inside it.

How to configure DNS records for Name.com and a Heroku app

I'm a bit confused about how to set up the DNS records for my domain at Name.com so it can correctly point to my Heroku app.
I found DNS configuration documentation at heroku's site but I'm still confused.
I'm under the impression that I need to set up a CNAME record for all subdomains and an A record for my root domain.
Also, on the name.com website, when I try to add a CNAME there are three blank fields I need to fill out which kind of confuse me: "Host" (where I enter '*' so it applies to all subdomains?), "Answer" (where I enter the DNS Target?), and "TTL"
Any help would be greatly appreciated. Thank you.
Fully detailed steps (2)
1). Visit Heroku apps dashboard
Choose your app
Click "Settings"
Find text "Add Domain", click button
Add your site with www subdomain:
www.yoursitename.com
Copy the returned "DNS target" value
2). Visit your name.com account
Find link text "Manage DNS Records" and visit link
"ADD RECORD" row with the following content:
Type:
Host:
Answer:
CNAME
www
📋 DNS target value from clipboard
(SAUMITRA KUMAR's answer, is what helped me write this answer.)
Don't use an A-record for your root domain. Heroku is using volatile IP addresses, which means the IP you configure in your A record can stop working at any moment without notice.
See https://devcenter.heroku.com/articles/apex-domains
On your root domain, you need to either setup an HTTP redirect to your www subdomain with your DNS provider, or use another provider which offers CNAME records for root domains.
As for the CNAME in your subdomains, yes, "Host" would be "*" to be all your subdomains.
Answer will be the endpoint provided by heroku, in the form appname.herokudns.com..
TTL means how often the DNS cache should be refreshed with the clients. Using the default (or 3600 if they don't provide any) will work here.
Here's what worked for me. Start with typing this in the Heroku CLI
Heroku domains: add www.youwebsitename.com --app yourherokuapp
This should give you a DNS target.You can obtain this from the your app settings as well on the website . Copy it and save it because we are going to need it later.Then after this run
heroku domains:wait for www.youwebsitename.com --app yourherokuapp
Then visit name.com and under your domains visit your dns records . There add CNAME entry with HOST equal to "www.yourwebsite.com" and ANSWER equal to whatever the dns target that heroku supplied you with .
Go ahead and visit your website , it'll work , if it doesn't make sure that you've used www with your website name . To fix this issue add an ANAME entry with "yourwebsite.com" as HOST and heroku dns again as target . It should reflect the changes within few hours .

Can I have a CNAME and TXT record for the same subdomain?

I have a Heroku app on a custom domain, as described in their Dev Center article about custom domains.
For Google Webmaster Tools, I'd like to verify ownership using the DNS method with a TXT record.
Naturally, these two records would be for the same subdomain.
Can I do this? And if so, how?
Yep, just add a TXT record through your DNS provider. One way to verify is via dig:
$ dig foo.com TXT
...
foo.com. 1800 IN TXT "google-site-verification=XXXXXXXXXXXX"

Resources