Solved

DNS (Virtual Domain or Domain Redirection)?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

930 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

11 Experts available now in Live!

Get 1:1 Help Now