DNS domain records domain A redirect to domain B

Posted on 2010-01-05
Last Modified: 2012-05-08
Hey guys,

Quick DNS question

I have DomainA
I have DomainB

DomainB is resolving to the webpage I want.

DomainA is not - I would like DomainA to resolve to DomainB.

What record do I need ?
Question by:dirkdigs
    LVL 10

    Expert Comment

    Make an A record for DomainA that points to the DomainB IP address.

    Expert Comment

    Create a new A record for domain B with the same IP address as domain A
    LVL 15

    Expert Comment

    If you're working in IIS, you'll also need to make sure the host header for your website is either blank, or contains a host header for both domains.
    LVL 26

    Accepted Solution

    Ask your ISP / admin to delete the DNS 'A'  record from Domain A and replace it with a 'CANME'pointing to Domain B's IP.


    Alternitively you could add a ReWrite rule in Domain 'A's apache virtual host definition, to re-direct all traffic to domain 'B'.

    RewriteEngine On
    RewriteRule  .*  [R=301,L]

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    730 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

    15 Experts available now in Live!

    Get 1:1 Help Now