Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

DNS Records for Hosting Website on different Hosting Company

Posted on 2014-08-15
1
Medium Priority
?
354 Views
Last Modified: 2014-08-15
Scenerio:
- I own domain example.com on Hosting Company A and my mail (pop3) and other services point to this domain.
- Web Developer is redoing my website but wants it to be hosted from Hosting Company B which is one he likes and uses normally.
- Question, what DNS Records do I need to create at Hosting Company A to facilitate hosting ONLY my website on Hosting company B. So that if someone goes to example.com and www.example.com it will go to the new website.
- I figure I'll use A Records with one being a "A" record for www.  The issue I'm thinking of is how to make example.com work without using a @ or <blank> A Record. I would rather not use this because because if someone types in a random subdomain like random123.example.com I want it to stay at  Hosting Company A and not go to Hosting Company B.
0
Comment
Question by:ozgc
1 Comment
 
LVL 31

Accepted Solution

by:
Frosty555 earned 2000 total points
ID: 40264235
The "@" or "blank" record just defines where the top level domain name will point, e.g. "example.com". Under normal circumstances, attempting to resolve a random subdomain like random123.example.com that is not defined in the DNS should return an "NXDOMAIN" error - no domain name found, and address resolution just fails.

It's up to the hosting provider to decide if they will implement a "catch-all" or "wildcard" A record for you, and if so what that address will be. Sometimes you can configure it, other times you can't... it depends on the hosting provider and the interface they provide. In cPanel WHM, for example, you can create a record called "*", which will be a catch-all DNS record.

So you're pretty much bang on with how you are planning on doing it.

The main snag you might run into is that when you change where the "@" record points for example.com, you must then go into the rest of the DNS records and make sure you fix any records that referenced @ to instead explicitly point to Hosting Company A's server.

Many hosting companies will use the same server for the webserver, mailserver, etc. and instead of explicitly specifying the same IP address over and over for all of the records, they will simply point it to "@". If your DNS records are set up that way, you'll have to make sure to change them so that the various "mail" related records such as the MX records, and the various A records like "mail", "pop", "smtp" etc. explicitly pointing to Hosting Company A's Mailservers, and not just referencing the "@" record.

Aside from that, you can change the "@" and "www" records to point to Hosting Company B's webservers, and you should be good to go.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question