How can i set heroku dns target to whogohost - heroku

I have a domain name from whogohost. Iam currently hosting my app on heroku. The url of the website is rhemagist.herokuapp.com. I have tried to set the DNS target from heroku to whogohost. It is however giving me error. So i need some help to fix the error. Thanks in advance.

Login to your client area and Click on Domains >>> Manage DNS.
Click on Add new Zone Input your domain name without www in the field for Zone Name.
Input this IP address (174.129.25.170) in the IP address field.
Click on the Edit Icon. On the row that begins with WWW, replace your domain name with your Heroku DNS target and save.
Scroll up and click on add record. Copy and paste the shorter CNAME in the Name Field. Select CNAME in the dropdown. Then add your Heroku DNS target in the RDATA field
You can refer to this endpoint: https://www.whogohost.com/host/knowledgebase/121/How-do-I-map-my-domain-to-my-Blogspot-account.html
NB: Make sure that on Heroku, when adding your domain name, add it like this: www.domain.com and not just domain.com

Related

How to correctly configure Heroku Custom Domain

When setting up my DNS my.domain.com (provided by GoDaddy) I am not sent to the correct address of my app, and the address in the URL bar is not what I expect either.
I have followed again and again the instructions outlined here: https://devcenter.heroku.com/articles/custom-domains#summary-of-steps
I have tried adding a record of type CNAME with host as www and the target URL as example-26hans7.herokudns.com
Two expectations are not met:
When I navigate to my.domain.com I am not brought to the app which I added a domain to in the Heroku CLI (my-app.herokuapp.com), but instead to an empty app page (example-26hans7.herokudns.com). The result is not the same if I navigate to my-app.herokuapp.com directly, then my app is loaded as expected.
The URL in the address bar I would like to be my.domain.com. At present it seems to be redirecting me and so the URL in the address bar becomes example-26hans7.herokudns.com. This is no good for production.
Any help in this matter greatly appreciated.
So it turns out you need to follow two steps in order for this to work with GoDaddy:
Create the CNAME as defined in the Heroku docs here: https://devcenter.heroku.com/articles/custom-domains
Enable forwarding. This can be found in the bottom right of the DNS management page. I had thought that forwarding was a redirecting option but it seems this needs to be enabled.
OPTIONAL: here you can also setup the subdomain such as example.com for www.example.com

Setting up a GoDaddy domain name with Heroku

I'm new to using Heroku so I'm a bit confused because I initially had my website hosted on GoDaddy, but when I added node to my web app I switched to Heroku.
So what is happening is when I visit my website using www. it goes to the correct, updated site, however, when I try the naked route it takes it to the older version of the website. I figured since it's still showing the older site with the naked route that there was a problem on GoDaddy, therefore, I updated one page on GoDaddy and sure enough, the page is updated via the naked route now.
That leads to my first question. If my website is now on Heroku, does it still need to be hosted on GoDaddy as well? Additionally, if the first question is yes, then how do I set up the naked route to point to the same site as the www. route?
I've already have the host as www with the 'points to' pointing to the Heroku domain name but still getting the problem above. This is why I believe the problem lies with the hosting on GoDaddy.
You don't need to host a copy of your site at Goddady.
In Godaddy, you must have a CNAME www pointing to heroku:
your_application_name.herokuapp.com
or
www.your_application_name.com.herokudns.com.
To use heroku for your naked domain, you can define a redirection for the naked domain to your www:
Go to My domains (https://dcc.godaddy.com/manage/)
Click on Manage connection
Set forwarding option (choose www.your_application_name.com, forward type permanent)
This is what helped me as of 2019. First, get to the list of your domain(s) on GoDaddy's interface. You'll see something like this:
GoDaddy's all domains page
Choose your domain. Once you're on your domain's settings, scroll to the bottom and click on 'Manage DNS'. You should see some records created, if there are any.
ACTUAL CONFIGURATION
FIRST STEP:
Create a CNAME record(there should be an 'add' button somewhere). The record should have the following parameters - Type - CNAME, Host - www, Points to - enter the link heroku created for your app.
creating a CNAME record on GoDaddy's
Sometimes when there are other old CNAME records, it'll throw an error. Erase old CNAME records and try again.
SECOND step:
Go to your terminal and enter the command 'host www.yourdomain.com'. If the CNAME record was successful, you should see the heroku domain you enter earlier. IMPORTANT - You should also see a bunch IP addresses which we will need.
THIRD step:
Create 'A' records for all the IP addresses provided on the 'host www.yourdomain.com' terminal command. They should have the following parameters: Type - A, Host - #, Points to - IP address, choose TTL custom and type 600 seconds.
This should do it

How to authenticate MailChimp on DKIM in 1and1

I've searched everywhere about this issue and found nothing.
I want to authenticate my domain in MailChimp. My website is hosted in 1and1.
These are the instructions from MailChimp:
Create a CNAME record for k1._domainkey.YOURDOMAIN.com with this value:
dkim.mcsv.net
The problem is that 1and1 only allows CNAME records on subdomains, so I created a subdomain named mail.MYDOMAIN.com and set up a CNAME record for it with the alias dkim.mcsv.net. Waited for 24 hours and it doesn't work.
Does anyone know what's wrong and the correct way to do this?
No need to setup a subdomain. 1and1 previously didn't allow CNAME records on the main domain, but they now do. 4 months ago, I ran into the same problem you did, but I've just now verified my domain on 1and1 with mailchimp using CNAME. Just follow mailchimp's directives as they are.
1and1 do things deferently. Even though Mailchimp says - to create subdomain k1._domainkey.YOURDOMAIN.com or k1._domainkey.MYDOMAIN.com it does not work.
Also the interface accepts the values differently by separating them.
Here is what I have on "my working set up", to register your Domain authentication with Mailchimp using 1and1, please follow.
Log in and go to your Control Panel
Click Manage Domains
Click the three dots next to Actions, Select Advanced Settings.
Scroll down to DNS Settings, click edit.
For DKIM: Create a CNAME record for k1._domainkey.yourname.com with this value:
Scroll down to TXT, CNAME and SRV Records.
Click button Add record
Select CNAME from the drop down menu
In the Prefix box put "k1._domainkey" no quotes.
In the Value box put "dkim.mcsv.net" no quotes.
click Add.
To create a SPF: Create a TXT record for your domain.com
Click Add record for the last time.
Select TXT from the drop down menu.
In the Value box put "v=spf1 include:servers.mcsv.net ?all" no quotes.
click Add.
Now click Save!
All done... Wait 28/48 hours and go back to MailChimp and verify
the only correct way is to do exactly as MailChimp says - to create subdomain k1._domainkey.YOURDOMAIN.com or k1._domainkey.MYDOMAIN.com (not mail.MYDOMAIN.com) and set it value to dkim.mcsv.net.
When receiving part gets email it will found then that it refers in DKIM signature to lookup key in senders k1._domainkey subdomain.

Need help in pointing application in the default website to have a domain name

How to add an IP address to the virtual directory in IIS, for example i have pointed the domain name to the default website and it is pointing correctly, the issue i would to have a domain for the defaulvirtualdirectory/application(ex:www.xyz.com/abc) to have a domain name http://abc.def.com.
I tried all the possibilities like HTTP redirect but the problem is it is pointing to the default website instead of application.
If you want to have website URL like http://abc.def.com to load web-contents of sub-directory e.g WWWROOT/application, you should add another subdomain website http://abc.def.com with documentroot as WWWROOT/application. The primary website(http://def.com) will load web-contents of WWWROOT and subdomain website(http://abc.def.com) will load webcontents of WWWROOT/application directory. You can also point subdomain website to different IP address if you want.

Customize URL with Heroku and OVH

I push my app I create with Ruby on rails on heroku and I have by default myapp.herokuapp.com
I buy my domain name on OVH I do heroku domains:add www.myapp.co to redirect to myapp.herokuapp.com.
I want to have only www.myapp.co this target and keep this went I am on the app. Could you guide to configure it on OVH.
I read this https://devcenter.heroku.com/articles/custom-domains and do what they say i don't understand check my url synestasia.co
Thank your for your help. really don't understand.
Steps needed to point (redirect) your OVH root domain (eg. yourdomain.com) to your heroku application.
Go to domain section in OVH and select your domain. Then click DNS ZONE
Remove entries (you can omit this step but OVH will tell you the same when you try to add an entry): Domain: www.yourdomain.com with types of: CNAME yourdomain.com, TXT 3|welcome, TXT l|pl (but this may depend on the
language as I'm using PL language).
Add CNAME record with www subdomain and target to your heroku CNAME domain you have from heroku website eg. my-application-fcmnqo274218034.herokudns.com. Confirm clicking next and confirm next step too.
Go to the Redirection tab and click Add a redirection. Leave both fields blank (one with domain address where you need to fill subdomain and Also redirect www.yourdomain.com checkbox unchecked. Click Next.
In the next page you should see What type of target do you want to redirect yourdomain.com to? question. Select to a web address and click Next
Next page says What type of redirection do you want to use to redirect yourdomain.com ?. Select with a visible redirection. and click Next.
In the next window select Permanent (301) redirection and then you will be asked to provide your full address as in the placeholder eg. https://www.yourdomain.com, then click next and validate the redirect rule.
Domain propagation might take a while (up to ~24h but mine was ready in few minutes). To not cache domain pointing to the DNS in your browser (as this might be fooling your with your website not found but it might work for others) you might want to use some tool to check if domain points to new servers (eg. https://dnschecker.org - that's not spam, I have nothing common with them)
Thanks to this user for posting that solution: http://community.ovh.com/t/redirection-vers-app-heroku/6392/16
To serve your domain name from Heroku, you need to tell the DNS service you use where your server is hosted.
Typically, this is done by declaring an A record DNS entry: A records expect a static IP address and so you just fill in your server's IP.
The challenge with Heroku is that it uses dynamic IP addresses, so A records are not an option.
So the other option is to declare a CNAME record: a CNAME points a name to another CNAME or an A record.
Problem is: CNAMEs are NOT supposed to be used for root domains (AKA base domain or apex domain.) They will only work with subdomains.
So you could easily declare www.example.com to point to your Heroku app (on ANY DNS service, including OVH), but not example.com.
To help with this problem, some DNS services came up with their own solutions that basically let you point a root domain to another domain.
The Add a custom root domain section of the Heroku docs mentions a bunch of these providers:
ALIAS at DNSimple
ANAME at DNS Made Easy
ANAME at easyDNS
ALIAS at PointDNS
CNAME at CloudFlare -- a bit of a misnomer
OVH offers no such option (maybe unsurprisingly given most of their business comes from hosting servers.)
Bottom-line: if your domain name is provided by OVH, either use a subdomain (e.g.: www.mysite.com) or change your NS records to use a different DNS service, one that supports CNAME-like functionality at the apex.
I'm no sysadmin. I spent a lot of time on this issue too and hope this helps.
Heroku panel -> Your APP -> Settings -> Domains and certificates -> Add Domain.
Copy DNS Target
Log in OVH
WEB -> DOMAINS -> Your domain
DNS ZONE
Field: www.yourdomain.com | Type : CNAME | Target: yourdomain.com
Click " ... " -> Change Entry -> Delete Target -> Paste Heroku DNS Target + " . (dot)"
Sometimes you have to wait 24 hours.

Resources