Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Does the Mail server need local DNS turned on?

I use an external DNS that includes MX and mail entries and A records that point to a static IP provided by my ISP, stored in my router, that in turn accesses services on my lion server via port forwarding. The DNS service on my lion server was turned on but I turned it off and I'm not sure I've noticed any difference - I've got issues either way. Do I need it for any mail server related reason?

Mac mini, Mac OS X (10.7.3)

Posted on Apr 16, 2012 7:10 PM

Reply
5 replies

Apr 16, 2012 9:18 PM in response to Iggy Pelman

Your mail server needs to be able to resolve hostnames both for clients that connect to it (e.g. clients on your LAN and remote servers sending mail to your domain), and to be able to find the mail servers for domains that you're sending mail to.


That DNS server does not have to be on the mail server itself. It can be any other DNS server that will respond to lookups.

Typically, though, you will need an internal LAN DNS server since neither your ISP nor any other upstream DNS server is going to know anything about your LAN addresses.

Apr 17, 2012 5:29 AM in response to Iggy Pelman

Hi


Where on your router can you configure DNS Records your private LAN is going to need?


Simply for stability and robustness reasons (before you consider anything else) any Mac Server (going back to at least 10.5) is going to need something it can resolve its assigned hostname to. Unless you have a really expensive Router it's doubtful your Router can fulfill this role properly for your private LAN?


HTH?


Tony

Apr 17, 2012 10:09 AM in response to Iggy Pelman

Does that role not fall upon my router through DHCP? And, if I do need the DNS should I open the DNS port on the router itself?

There are two parts to your question, so I want to clarify a couple of points.


There is no relationship between DHCP and DNS - just because your router is running DHCP for your network, that doesn't mean it's also doing DNS. It will tell the clients which DNS server to use, but that doesn't have to be the router.


Even if your router has the ability to run as a DNS server that is usually limited to being a caching/proxy server for some other DNS server - in other words, your network clients query your router, your router then querieswhatever DNS server it is configured with (your ISP, Google DNS, OpenDNS, etc.) and passes back the result, usually caching that result so the next lookup for the same host happens quicker.

This is very different from running as an actual DNS server for your LAN. This caching server knows nothing about your private LAN addresses (192.168.x.x, 10.x.x.x, etc.), nor does it know anything about hosts in your LAN (your servers, clients, printers, etc.) and will not be able to answer queries for these addresses/hosts. All it will do is proxy the connection to your upstream (who know nothing about your LAN).


For that reason you should have your own DNS server in your LAN - a server that knows about your hosts and IP addresses in your network. Whether this server's address is the one handed out by DHCP, or whether the router continues to act as a DNS proxy pointing to your internal server doesn't really matter - the point is that hosts on the local network (including your server) can resolve hostnames and IP addresses on your LAN.

Does the Mail server need local DNS turned on?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.