title: How do I set up DNS for an apex domain (no www) pointing to a Heroku app?
body: <p>I already added a custom domain to my Heroku app and it works with <code>www.domain.com</code>.</p>
  
  <p>I need to know how to set up the domain without <code>www</code> to resolve to the app, too.</p>
  
  <p>Here are my current DNS settings:</p>
  
  <pre><code>$TTL 86400
  @   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
      2013041500   ; serial
      14400        ; refresh
      1800         ; retry
      604800       ; expire
      86400 )      ; minimum
  
  @                        IN NS      robotns3.second-ns.com.
  @                        IN NS      robotns2.second-ns.de.
  @                        IN NS      ns1.first-ns.de.
  
  @                        IN A       88.198.38.XXX
  localhost                IN A       127.0.0.1
  mail                     IN A       88.198.38.XXX
  ftp                      IN CNAME   www
  imap                     IN CNAME   www
  loopback                 IN CNAME   localhost
  pop                      IN CNAME   www
  relay                    IN CNAME   www
  smtp                     IN CNAME   www
  www                      IN CNAME   appname.herokuapp.com.
  @                        IN MX 10   mail
  </code></pre>
  
  <p>What are the correct settings to use so that both <code>example.com</code> and <code>www.example.com</code> would point correctly to my Heroku app?</p>