Redirect domain.com to www.domain.com with CNAME and Openshift - redirect

For eg. my domain is domain.com ( :D ) and my Openshift server has this url: domain-spiderman.rhcloud.com. (not true).
Now, I'm trying to configure the DNS zone so that:
domain.com redirects to www.domain.com
www.domain.com loads the website
The configuration I have already applied is this:
domain.com. NS dns111.ovh.net.
domain.com. NS ns111.ovh.net.
domain.com. MX 1 mx1.ovh.net.
domain.com. MX 5 mx2.ovh.net.
domain.com. MX 100 mxb.ovh.net.
domain.com. CNAME domain-spiderman.rhcloud.com.
www.domain.com. CNAME domain.com.
domain.com. SPF "v=spf1 include:mx.ovh.com ~all"
The strange thing is that www.domain.com correctly loads the page, while domain.com has a loop towards domain.com and finally brake up.
Any help?

I use this service (not endorsing anything, I don't know how safe it is or anything. I use it for my blog, so no stress):
http://wwwizer.com/naked-domain-redirect
Just point your naked domain A record to 174.129.25.170

Related

Redirect apex domain to www using route53 alias record not working

I had my example.com and www.example.com pointed to the same IP 111.222.333.444 in AWS route53 via A records.
Now I want to redirect example.com to www.example.com .
In route53 I changed example.com A record to an alias record, “Alias to another record in this hosted zone”. Then in the next field I selected www.example.com.
After 24 hours, I can still access http://example.com. It is not redirected to http://www.example.com.

google cloud DNS zone mapping from naked to www URL

I am trying to get my naked domain URL example.com to map to www.example.com. Can someone please give me the step by step procedure to get this working. I can't get it working, no matter what I try
Here is my setup:
1) Domain is registered on GoDaddy, the GoDaddy DNS is pointing to google (ns-cloud-a1.googledomains.com etc..)
2) Website is hosted on google cloud storage bucket www.example.com (domain also verified by google domain)
3) Under google cloud DNS, below is my zone file.
example.com. A 3600
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21
example.com. AAAA 3600
2001:4860:4802:32::15
2001:4860:4802:34::15
2001:4860:4802:36::15
2001:4860:4802:38::15
example.com. MX 3600
0 aspmx.l.google.com.
5 alt1.aspmx.l.google.com.
5 alt2.aspmx.l.google.com.
10 alt3.aspmx.l.google.com.
10 alt4.aspmx.l.google.com.
example.com. NS 21600
ns-cloud-a1.googledomains.com.
ns-cloud-a2.googledomains.com.
ns-cloud-a3.googledomains.com.
ns-cloud-a4.googledomains.com.
example.com. SOA 21600
ns-cloud-a1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 259200 300
www.example.com. CNAME 3600
c.storage.googleapis.com.
when i go to www.example.com, everything works fine. However when I go to example.com google says "404. That’s an error. The requested URL / was not found on this server. That’s all we know." And if i remove the A and AAAA records, the page just won't load.
All i am looking for is have example.com redirect/forward to www.example.com but cant seem to get it working.
Thank you for your help
You may also redirect the A/AAAA record to example.com. You can do that simultaneously from Cloud DNS (GCP). Pointing A record to www.example.com & example.com

how to configure a Sub-domain for email and web service

I am developing a web site and I have it hosted in AWS. To access it I have a domain domain.org and I use this domain with a sub-domain for a web service.
So I have
CName
my.domain.org CNAME mywebsite.amazonaws.net
and it works perfectly.
The problem now is that I'm trying to use the same sub-domain as a email service with mailgun. Hence I want to be capable to have something like example#my.domain.org. Mailgun tells me to set this configuration:
TXT
my.domain.org TXT v=spf1 include:mailgun.org ~all
mailo._domainkey.my.domain.org TXT k=rsa; p=SOMEPASSWORDNUMBERS
MX
MX 10 mxa.mailgun.org
MX 10 mxb.mailgun.org
CNAME
email.my.domain.org CNAME mailgun.org
I have done all this with my DNS provider, but the status of the domain in mailgun is still unverified, specifically the TXT record my.domain.org TXT v=spf1 include:mailgun.org ~all cannot be checked.
I have made some research and found that I should include an A Record with the sub-domain and the IP address that points to the mailserver in mailgun, example:
A Record
my.domain.org A nnn.nnn.nnn.nnn:
but my DNS provider DOES NOT let me do it, and it says CNAME record already exists for the entered Host name
I'm struggling to fix this, but I am still stuck. And I haven't found someone with the same problem on the internet who has solved it already, what I want to know is, if is it possible to use a sub-domain for a web page service using a CName, and as well for a email service?
Many DNS providers don't allow this, please create a new zone for the particular subdomain and it should work.

Why isn't the www. for my domain working on Github Pages?

My forwarded domain only works on example.com but doesn't work on www.example.com
I have everything setup like i am supposed to. My repository is named user.github.io. I have a cname file with my url example.com.
I forwarded my domain to the ip like below. I am using Name.com as my domain registar.
Now my domain works when i go to example.com but when i type www.example.com it doesn't work. I thought both were supposed to work.
I have tried my cname file with www.example.com and change my dns forwards to www.example.com but then only www.example.com works and example.com doesn't work.
How do i get both to work?

Make bucket available by domain.com

I have created a bucket available by www.domain.com, but I want make it available by domain.com.
It is impossible to make CNAME record for domain.com pointing to c.storage.googleapis.com so that it is impossible to create bucket with name domain.com.
How could I solve it?
I've found that it is possible by setting preferred domain in Google Webmaster Tools for site www.domain.com to domain.com.
Google documentation