ruk·si

☁️ AWS
DNS & Heroku

Updated at 2015-09-07 02:38

How to setup Heroku app ecosystem routing using Route 53.

Find out your main app's load balancer hostname. Apex (the root domain) must be configured using A (ALIAS) definition and AWS doesn't support them pointing to non-AWS endpoints.

dig test-1234.herokussl.com

Configuration:

Name                 Type   Value                               TTL
example.com.            A   ALIAS elb.region.elb.amazon         -
example.com.           MX   email settings                      300
example.com.           NS   aws dns ns records                  172800
example.com.          SOA   hostmaster and some random stuff    900
example.com.          TXT   sdomain validation for services     300
example.com.          SPF   same as TXT                         300

sub1.example.com.   CNAME   hero-1234.herokussl.com             300
sub2.example.com.   CNAME   vile-2341.herokussl.com             300
sub3.example.com.   CNAME   dire-3412.herokuapp.com             300
blog.example.com.   CNAME   example.wpengine.com                60
assets.example.com. CNAME   some.region.elb.amazonaws.com       300

forums.example.com.     A   ALIAS elb-id.elb.amazoaws.com       300
raw.example.com.        A   234.23.11.343                       300

service.example.com.  TXT   domain validation for a service     30