On the topic of AD naming best practices, I very carefully read this Q/A on serverfault.com, this Samba FAQ and various Microsoft's documents. I 100% agree with the general recommendation: use a suitable subdomain of your main domain (ie: ad.example.com
) as your AD name.
However, when using such a setup, I wonder how to correctly manage mobile hosts (for example, laptop and smartphones) which can be both on the internal network and on a remote connection.
For a practical example, let's think about a simple mail client setup with an internal mail server. With a dedicated third-level domain (ad.example.com
), I have two options:
- setup the internal mail clients with
mail.ad.example.com
: while working very well inside the network, it fails apart when the client is on a remote connection. Asking the user to change its mail configuration is absolutely impractical, so let's discard this option entirely; - setup the internal mail clients with the external domain name, so
mail.example.com
: this should work fine for both internal and extenal client but internal traffic flow is sub-optimal, as clients resolve the internal mailserver address with a public IP address and so traffic bounce back and forth on the edge firewall. This cause an increased load on the appliance and it is even worse for UTM firewalls, which deeply inspect (a to-really-be-internal-only) traffic.
How do you cope with the above situation? Do you simply accept and increased load on the edge firewall?
I know this issues can be completely avoided with a split-DNS naming scheme (ie: example.com
on both external and internal DNS); however, this naming scheme has its own drawback and it is (rightfully) not generally recommended.