Himanshu
Himanshu

Reputation: 33

Configuration at DNS provider end while adding custom domain purchased from hostinger to web application hosted on heroku

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.

  1. Purchased a domain name from hostinger.
  2. On heroku app, i have run following command
$ 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 

  1. 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

Answers (1)

sykez
sykez

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

Related Questions