Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DNS (Virtual Domain or Domain Redirection)?

Posted on 2003-11-10
1
Medium Priority
?
247 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 750 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

604 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