Reputation: 33
I want my custom domain to point to my webapplication hosted on heroku. I need help about how to do configuration on hostinger side. Steps that i have already performed.
$ heroku domains:add samplecustomdomain.com
$ heroku domains:add www.samplecustomdomain.com
$ heroku domains
This command gives output something like -
Domain Name DNS Record Type DNS Target
samplecustomdomain.com ALIAS or ANAME xyz1.herokudns.com
www.samplecustomdomain.com CNAME xyz2.herokudns.com
On Hostinger side, after clicking on manage samplecustomdomain.com , i get two tabs for setting.
a) Domain management - It has options like update nameservers, create child nameservers
b) DNS Zone - It has options to add like A (Host) , CNAME(alias), MX (Mail Exchanger) , TXT (Text) , AAAA (IPv6 Address Record) , NS (Nameserver) , SRV , CAA*
I think i have to modify CNAME(alias) to register my application. Under CNAME(alias), i have to supply values of following fields
Host -
Points to -
TTL -
Kindly help what values need to be supplied for above field.
Upvotes: 1
Views: 1816
Reputation: 2158
On your DNS Zone, add a ALIAS/ANAME/CNAME record (if Hostinger has ALIAS or AName, use that, if not you can use CNAME instead):
Host samplecustomdomain.com
Points to xyz1.herokudns.com
TTL 3600 (or use the default if there's any)
Then add a CNAME record:
Host www.samplecustomdomain.com
Points to xyz2.herokudns.com
TTL 3600 (or use the default if there's any)
If you already have records for the above records, you'll need to delete or edit the existing records to reflect as above.
Upvotes: 1