dns - Custom root domain on Heroku -
i have domain, example.com, want use rails-app resides @ example.herokuapp.com , i'm pretty confused how go this.
"zone apex domains (aka "naked", "bare" or "root" domains), e.g., example.com, using conventional dns a-records not supported on heroku." , go on explaining workarounds (using alias or aname).
i have spent hour reading on subject (here on , elsewhere) still don't head around this.
are there alternative ways or explanations on how acomplish "a dummy"?
i'll take stab @ it's frequent question.
ok, assuming have domain example.com , want use www.example.com host site. in traditional hosting you'd have virtual server has been assigned ip address, in case use host record, otherwise known record in dns control panels map www.example.com ip address. in case, since have set www.example.com fixed ip address should ip address ever change need update dns yourself.
also, traditional hosting have example.com set same ip address www.example.com , example.com work naked domains.
ok, what's cname record. cname record rather mapping ip address maps record dns entry. so, www.example cname'd example.herokuapp.com means heroku can , may move example.herokuapp.com pointing @ don't have update you're using cname record , heroku managing example.herokuapp.com pointing (which can , may cname or ip address). problem cname records cannot point ip address, fine www.example.com problem example.com. heroku published ip addresses used naked domains problems ensued when suffered ddos attacks , couldn't replace ips new ones published ip addresses. new eu region, heroku not publishing ip addresses use naked domains.
what several dns providers (dnssimple know one) have done add own alias records dns servers allow use cname's naked domains both www.example.com , example.com work supported heroku. if dns provider not support alias records it's worth moving domain dns provider support it. dnssimple supports redirect records can have www.example.com redirect example.com @ dns provider level , not @ application layer.
Comments
Post a Comment