Recommended Posts

I currently have A records on both www.example.com and example.com pointing to the same IP. I just came across a site that CNAMEd the www. address to example.com and only had the A record in example.com itself. It seems like a pretty good idea, I can't think of anything that says you're not supposed to do that, but I just want to double check with you guys to make sure I'm not missing something obvious here. Can you CNAME the www. to the root domain (or is it a good idea)? Thanks!

Link to comment
https://www.neowin.net/forum/topic/1135708-cname-wwwexamplecom-to-examplecom/
Share on other sites

Can't you just do an A Record like this :

* 86400 IN A xxx.xxx.xxx.xxx

to get everything pointing to your IP-Adress ?

I did some further research and it looks like the thing you want to achieve is impossible,

http://serverfault.com/questions/55528/set-root-domain-record-to-be-a-cname/

This one may explain this a little more.

You could workaround this with a 302-redirect, making www.example.com redirect to example.com

Yes, you can use a "www." CNAME record pointing to "example.com" and then have "example.com. IN A my.servers.ip.address". CNAME is just a alias, and can point to any A record in your zone. Ex. you can create CNAME records for "www.", "owa.", "smtp." that all point to the same A record("example.com") if you have all services that host.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      503
    2. 2
      +Edouard
      190
    3. 3
      PsYcHoKiLLa
      126
    4. 4
      Steven P.
      88
    5. 5
      neufuse
      71
  • Tell a friend

    Love Neowin? Tell a friend!