Solved

DNS (Virtual Domain or Domain Redirection)?

Posted on 2003-11-10
1
244 Views
Last Modified: 2010-03-18
I would like to take a web page I am hosting and register
it in my local DNS to look like a unique domain name.  Can
this be done?

Translation -
How can I alias multiple domains from a single-registered IP address space?  I run my own DNS.  If I register the Domain
Name with another ISP then I would have 2 domains pointing at the same IP address.  That sounds like a bad thing (perhaps).
0
Comment
Question by:krash092097
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 9718092
It is very common to configure CNAME (alias) records in DNS to point multiple hosts or domains to a single server. And Apache supports name based virtual hosts allowing you to have multiple virtual domains hosted on the same web server.

Given a primary zone file like:

$TTL 86400
@ IN SOA       server.my-dom.tld. postmaster.my-dom.tld. (
  2002010200   ; Serial
  10800        ; Refresh
  3600         ; Retry
  604800       ; Expire
  86400)       ; TTL
                                                                               
               IN  NS     server.my-dom.tld.
                                                                               
               IN  MX 10  server.my-dom.tld.
                                                                               
server         IN  A      192.168.0.1
;
; CNAME (aliases) records
;
mail           IN CNAME   server.my-dom.tld.
www          IN CNAME   server.my-dom.tld.

The zone file for a virtual domain might look like:

$TTL 86400
@ IN SOA       server.my-dom.tld. postmaster.my-dom.tld. (
  2002010200   ; Serial
  10800        ; Refresh
  3600         ; Retry
  604800       ; Expire
  86400)       ; TTL
                                                                               
               IN  NS     server.my-dom.tld.
                                                                               
               IN  MX 10  server.my-dom.tld.

mail       IN CNAME   server.my-dom.tld.
www       IN CNAME  server.my-dom.tld.

There's a goo discussion of virtual hosts in Apache at http://httpd.apache.org/docs-2.0/vhosts/
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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