title: How to add domains to rails app in heroku
body: <p>I deployed my app to heroku and I added my godaddy domain to heroku with:</p>
  
  <pre><code>heroku domains:add www.domain.com
  heroku domains:add domain.com
  </code></pre>
  
  <p>But when I type <code>domain.com</code> sometimes it doesnt work and it redirects me to godaddy. Only  <code>www.domain.com</code> works fine. Is there anything I am missing in configuration?
  This is my DNS records setting</p>
  
  <p>Host</p>
  
  <pre><code>   @    68.178.232.100 
  
     @    75.101.145.87 
     @    75.101.163.44 
  
     @    174.129.212.2   
  </code></pre>
  
  <p>C-NAME(Alias)</p>
  
  <pre><code>     www          proxy.heroku.com 
  </code></pre>