DNS Records for Hosting Website on different Hosting Company

Posted on 2014-08-15
Last Modified: 2014-08-15
- I own domain 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 and 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 work without using a @ or <blank> A Record. I would rather not use this because because if someone types in a random subdomain like I want it to stay at  Hosting Company A and not go to Hosting Company B.
Question by:ozgc
    1 Comment
    LVL 31

    Accepted Solution

    The "@" or "blank" record just defines where the top level domain name will point, e.g. "". Under normal circumstances, attempting to resolve a random subdomain like 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, 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.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
    This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
    In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
    In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now