TurnKey Linux Virtual Appliance Library

HubDNS but not on a sub domain

 

I was wondering if there was a way to set up HubDNS for my main domain instead of a subdomain. 

 

so instead of having it update "www.mydomain.com" I want it to update "mydomain.com"

 

I would like to do this because i want my webserver to be accessable with and without the www. If there is another way i should be doing this please let me know! :) 

 

And the icing on the cake would be if i could have my web server update both the mydoman.com and www.mydomain.com. but no point getting greedy here ;) 

 

Thanks!

Josh

Alon Swartz's picture

HubDNS doesn't support naked domains

HubDNS doesn't support naken domains, so you won't be able to do what you want with dynamic IP's. But if you get an elastic/static IP, and manually configure the records then you can get what you are after.

So, once you get a static IP, create an A record for www.mydomain.com for your server. Then create another A record for the naken domain (mydomain.com - don't specify a hostname) pointing to the same IP. Once thats done everything should work.

Bonus: From an SEO standpoint, you shouldn't serve the same website from 2 different domains, so I'd recommend you decide which domain (www or naked) as you primary, and configure the webserver to redirect requests for the secondary to the primary.

Hope the above helps.

Jeremy's picture

Nice bonus tip Alon

That's news to me! :)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)