Results 1 to 6 of 6

Thread: Split DNS? Internal Email, External Website

  1. #1
    westendRIOT is offline New Member
    Join Date
    Nov 2011
    Location
    Los Angeles
    Posts
    4
    Rep Power
    3

    Default Split DNS? Internal Email, External Website

    I'm putting together a Network Edition server at my work. We have a website hosted externally by a third party. Up until now, we were also using that same third party to host our email.

    The website and the emails use the same domain name.

    How can I set up a custom DNS that will resolve mail queries (IMAP, Outlook Connector, web interface) to the internal IP, but still allow the regular domain name web request to reach the existing external website?

    Is it as simple as using mail.domain.com for the Zimbra server, while domain.com will go external? Does anyone have a link to a guide for setting up a DNS server?

    I have gone through a crash course in BIND9 while setting up this copy of Network Edition, with Ubuntu 10.04 on VMware ESXi 5.0. Does the DNS server need to run separately in its own VM? I figure it's poor practice to specify the Zimbra server as the DNS server for all of the workstations.

    Any help would be appreciated!

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,473
    Rep Power
    56

    Default

    Quote Originally Posted by westendRIOT View Post
    I'm putting together a Network Edition server at my work. We have a website hosted externally by a third party. Up until now, we were also using that same third party to host our email.

    The website and the emails use the same domain name.
    Why does that matter?

    Quote Originally Posted by westendRIOT View Post
    How can I set up a custom DNS that will resolve mail queries (IMAP, Outlook Connector, web interface) to the internal IP, but still allow the regular domain name web request to reach the existing external website?
    Look at the Split DNS article, that example for DNS records also applies to your external DNS records for your domain (obviously using the valid public IPs).

    Quote Originally Posted by westendRIOT View Post
    Is it as simple as using mail.domain.com for the Zimbra server, while domain.com will go external?
    I don't quite understand what you mean by that statement.

    Quote Originally Posted by westendRIOT View Post
    Does anyone have a link to a guide for setting up a DNS server?
    The details for a Split DNS are all over the forums and in the wiki plus the link above.

    Quote Originally Posted by westendRIOT View Post
    Does the DNS server need to run separately in its own VM?
    No but you can run the DNS server wherever you like.

    Quote Originally Posted by westendRIOT View Post
    I figure it's poor practice to specify the Zimbra server as the DNS server for all of the workstations.
    Why, don't you have multiple DNS server on your LAN? Whoever said that's what the DNS server on Zimbra was authoritative for your LAN?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    westendRIOT is offline New Member
    Join Date
    Nov 2011
    Location
    Los Angeles
    Posts
    4
    Rep Power
    3

    Default

    The website and email using the same domain name is giving me problems with DNS. Outlook (or Zimbra Desktop, or whatever) is configured with mydomain.com as the email server. My local DNS points mydomain.com to the local IP for my Zimbra. Then, when one of my workstations tries to go to mydomain.com using their web browser (to reach the externally hosted website), the DNS server catches it and sends them to Zimbra's internal IP.

    I tried setting the Zimbra server as mail.mydomain.com, so that Outlook, etc. uses the FQDN as the email server. This would allow web browser requests for mydomain.com hit the forwarders as described in the article you linked to, and use an external DNS entry to reach the externally hosted web server.

    But when I set up mail.mydomain.com as the Zimbra server, then the emails appear to come from user@mail.mydomain.com instead of user@mydomain.com.

    Is it possible to configure finer granularity with the DNS forwarding? Like to send certain protocol or port requests to one IP vs another?
    Last edited by westendRIOT; 11-18-2011 at 10:32 AM.

  4. #4
    axslingr is offline Intermediate Member
    Join Date
    Nov 2011
    Location
    Arkansas
    Posts
    17
    Rep Power
    3

    Default

    What you need to do is configure a local DNS server with your domain name as a master zone, populate it with the proper records(A, MX, NS, etc) using the private ip addresses of your servers, and point all your servers and workstations to it for DNS lookups. You'll also need to point the forwarder to your ISP's DNS server to handle everything else. For your website, just enter an A record that points to the external ip address of your hosting provider. That's all there is to it.

    Lance

  5. #5
    dipeshmehta is offline Special Member
    Join Date
    Jun 2010
    Location
    Rajkot, India
    Posts
    160
    Rep Power
    5

    Default

    Have you gone through SplitDNS article, as phoenix suggested? If you study that one, you would get all answers to your queries

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,473
    Rep Power
    56

    Default

    Quote Originally Posted by westendRIOT View Post
    The website and email using the same domain name is giving me problems with DNS. Outlook (or Zimbra Desktop, or whatever) is configured with mydomain.com as the email server.
    It is incorrect to use the domain name for your mail server records. As I've already said - follow the instructions in the Split DNS article.


    My local DNS points mydomain.com to the local IP for my Zimbra. Then, when one of my workstations tries to go to mydomain.com using their web browser (to reach the externally hosted website), the DNS server catches it and sends them to Zimbra's internal IP.

    I tried setting the Zimbra server as mail.mydomain.com, so that Outlook, etc. uses the FQDN as the email server. This would allow web browser requests for mydomain.com hit the forwarders as described in the article you linked to, and use an external DNS entry to reach the externally hosted web server.

    Quote Originally Posted by westendRIOT View Post
    But when I set up mail.mydomain.com as the Zimbra server, then the emails appear to come from user@mail.mydomain.com instead of user@mydomain.com.
    That's because you didn't follow the instructions when you initially installed Zimbra, you would have been asked if you wanted to change the domain name and at that point you should have said "yes" and set the correct domain name for the server.

    Quote Originally Posted by westendRIOT View Post
    Is it possible to configure finer granularity with the DNS forwarding? Like to send certain protocol or port requests to one IP vs another?
    It isn't needed, you just need to configure your DNS & server correctly and according to the wiki article. Your internal records should resolve the FQDN of the server to your LAN IP and your web site records should not resolve via your LAN DNS server and be forwarded to an external DNS resolver (and therefore get to your web server).
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Different internal / external email addresses
    By henrythacker in forum Administrators
    Replies: 0
    Last Post: 07-31-2007, 06:04 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 AM
  4. Another DNS Thread - Internal and External IP
    By Mo_Hong in forum Administrators
    Replies: 4
    Last Post: 08-31-2006, 09:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •