Solved

DNS (Virtual Domain or Domain Redirection)?

Posted on 2003-11-10
1
243 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

808 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