Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

DNS

This is a painfully obvious question, but one that I can't get my head around. I have set up a VMWare ESXi system in my home. I currently have 2 systems installed: Zimbra (an email server) and Ubuntu (for a LAMP stack).

I would like to have my system set up where mail.12345.com goes to the Zimbra machine (for web-based email), and www.12345.com goes to Ubuntu (for a website hosting).

I have a ZyXel Zywall 2 Plus router for setting up the port forwarding, but in that case, the traffic both comes in on port 80. What can I do that requests to a specific FQDN get pointed to a specific virtual machine? Would I need a separate IP address for my email server or is this something I can leave on a single router/pipeline with proper name resolution?
0
fuzzyaces
Asked:
fuzzyaces
4 Solutions
 
willbaclimonCommented:
Separate IP address is the better way to go
0
 
DavidBCSCommented:
Email is port 25 and web is port 80. If the same web server were answering for each site then you could just use hostnames on the virtual server to create the separation. Otherwise, webmail would need to listen on a different port if only one public IP were available. You could possibly get creative where one box listens for traffic for the other service and then forwards that to the other server. There is nothing you can do in DNS to correct this. DNS does not handle ports and can't make these decisions for you. You will either need another public IP address, use a different port for one of the web services, or have one of the server capture and forward the traffic for the other.
0
 
Darius GhassemCommented:
You would need to have seperate IP addresses if the web and email are running on the same port.
0
 
AlexDemelCommented:
Maybe the easiest way is to use https (TCP 443) for web-based email and continue using port 80 for the website. Therefore you just need a server zertificate (self-signed or official).
another option would be using Microsoft ISA server (or Forefront) to publish both services on the same port and configure DNS names for separation at the ISA server.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now