Solved

DNS (Virtual Domain or Domain Redirection)?

Posted on 2003-11-10
1
240 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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

7 Experts available now in Live!

Get 1:1 Help Now