0

I have a domain purchased from name.com - I am using heroku for hosting a rails app for this domain. Today I tried to setup DNS for this domain. The top level domain works fine but when I try to setup CNAME for "www", I get the following error :

ubuntu:~/rails_projects/socal$ host www.xyz.in
Host www.xyz.in not found: 3(NXDOMAIN)
('xyz' is just for example)

My CNAME settings in name.com looks like :

Record Type     Record Host     Record Answer          TTL  
CNAME           www.xyz.in      proxy.heroku.com       1800     

This is as per the instructions on heroku.com-http://devcenter.heroku.com/articles/custom- domains Not sure what could be wrong with my DNS settings

user70692
  • 3
  • 1
  • 2

2 Answers2

3

I suggest reading this article that explain why it's so important to avoid an A record on Heroku.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
Giacomo
  • 31
  • 2
0

I highly suggest using a A record for www ,as a Cname will cause 2 lookups at the server doubling the load. Cnames were designed fir when you don't control the other domain, An A record is much more suited for this

Jacob
  • 9,204
  • 4
  • 45
  • 56