Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One IP and multiple domains in DMZ 1

Status
Not open for further replies.

blarneyme

MIS
Jun 22, 2009
160
US
I have one static IP address on the external interface of a router which is NAT'd and goes to a firewall, then I have a DMZ setup with a web server, DNS server, and mail server for say example.com on a 10.0.2 network. There is also and internal network.

I have a db.10.0.2 file that contains addresses for mail.example.com, dns.example.com, etc. As well as the db.example.com which has entries for the servers in example.com.

How would I go about adding another domain, say domain.com, inside the DMZ? Would I need to create another db.domain.com file which would mostly be the db.example.com and add entries for domain.com to the db.10.0.2 file? I would also need to add a zone to named.conf for domain.com?

Is this the correct way to go so if someone hits at 1.2.3.4 they go to the right server in the dmz or if they want they will go to 1.2.3.4 and the right server in the dmz?

I plan to have 3 or 4 sites so any help is appreciated on whether this would work or what I need to do.

Thanks.
 
The setup is on Unix servers as additional information.
 
You are right.

The DNS will return the same ip, but the http header inspection will route the request to the right domain.

In apache or IIs it is called "virtual hosting". Specifically, virtual hosting by name.

In this setup, BTW, you can only have one https site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top