Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

After experimenting with domains and domain controllers in a virtual environment I realized that having an AD domain named identically to a... well, DNS domain is bad idea (I mean, we have foo.com as our website, so foo.com as a AD domain name is no good). This has only reassured me in my conclusions.

What are your recommendations on naming AD domains?

share|improve this question

4 Answers

up vote 28 down vote accepted

This has been a fun topic of discussion on Server Fault. There appear to be varying "religious views" on the topic.

I agree with Microsoft's recommendation: Use a sub-domain of the company's already-registered Internet domain name.

So, if you own foo.com, use ad.foo.com or some such.

The most vile thing, as I see it, is using the registered Internet domain name, verbatim, for the Active Directory domain name. This causes you to be forced to manually copy records from the Internet DNS (like www) into the Active Directory DNS zone to allow "external" names to resolve. I've seen utterly silly things like IIS installed on every DC in an organization running a web site that does a redirect such that someone entering foo.com into their browser would be redirected to www.foo.com by these IIS installations. Utter silliness!

Using the Internet domain name gains you no advantages, but creates "make work" every time you change the IP addresses that external host names refer to. (Try using geographically load-balanced DNS for the external hosts and integrating that with such a "split DNS" situation, too! Gee-- that would be fun...)

Using such a subdomain has no effect on things like Exchange email delivery or User Principal Name (UPN) suffixes, BTW. (I often see those both cited as excuses for using the Internet domain name as the AD domain name.)

I also see the excuse "lots of big companies do it". Large companies can make boneheaded decisions as easily (if not moreso) than small companies. I don't buy that just because a large company makes a bad decision that somehow causes it to be a good decision.

share|improve this answer
But then NetBIOS name of the domain is not... well, pretty :) corp is not as descriptive as foo. – Anton Gogolev Oct 21 '09 at 13:26
12  
You can assign whatever NetBIOS name you want, though. Many of my Customers have names like "ad.example.com", but the NetBIOS name is "EXAMPLE". DCPROMO will prompt you for what you'd like the NetBIOS name to be during creation of the domain. – Evan Anderson Oct 21 '09 at 13:32
@Evan: That's brilliant! Thank you! – Anton Gogolev Oct 21 '09 at 13:34
2  
if you do this watch out for problems with domains that have wildcards. When you have *.foo.com, host.internal.foo.com will match it in some situations – JamesRyan Oct 21 '09 at 15:12

EDIT (1/29/13): I should preclude the below with "I have learned from my mistakes." I no longer do this and would downvote myself for this answer. As such, I'm editing my post and will simply say for archival purposes that using split-DNS and same external and internal domains should be avoided if possible.

If you use the same domain name internally as I do externally and implement split-DNS it is a piece of cake.

Here's an article (albeit for ISA but it still applies) that explains split DNS:

http://www.isaserver.org/tutorials/You_Need_to_Create_a_Split_DNS.html

Basically, as long as you statically create records internally that point to www or ftp or similar "externally hosted" hosts on your domain then you'll be just fine.

For example, let's say you have "mail.foo.com" as your Exchange server. You can have internal clients on your LAN resolve to mail.foo.com with the internal IP. You can have external clients resolve to it (for SMTP or OWA, etc.) using the external record and then your firewall will redirect the traffic accordingly (after proper setup).

My main reason for doing it this way? I've found it so much simpler to explain to end user's their email addresses, login IDs, sip ID's for Office Communicator, etc. by saying "it's the same as your email address".

share|improve this answer
5  
Utterly vile. Why would you create a maintenance nightmare? – Evan Anderson Oct 21 '09 at 13:19
1  
what nightmare? It's never an issue at all. It didn't require any effort more than a .local setup would. – TheCleaner Oct 21 '09 at 13:21
4  
What these methods listed here say to me is, if I was forced (at gunpoint) to use the same internal and external domain, here is how to get round it, rather than here are some ways to do this, because its the best way to do it. I agree with evan the using your external domain for AD will cause problems, most likely later down the line when you can't change anything – Sam Oct 21 '09 at 13:39
2  
I think "vile" is too strong a word here. We have both schemes in operation here and split brain is not a nightmare ... just another maintenance item. And politically, I am in the same boat as TheCleaner ... it was WAY easier to explain this to exec's. – echobeach2 Oct 21 '09 at 13:40
5  
Here's why I say "vile". IT decisions that create "make work" maintenance is counter-productive. If there's a choice between a solution that has no disadvantages and a solution that creates an ongoing maintenance need (no matter how insignificant) it's silly to choose the one that creates future maintenance need. Sure, sure-- it's just this one little thing... and that little thing... and that little thing... >sigh< IT is already seen as a "cost center". IT should >always< make the choice that provides the optimal TCO. Making work for no reason is exactly what IT shouldn't be doing. – Evan Anderson Oct 22 '09 at 11:43
show 5 more comments

Another option we are using is mycompanyCORP.com so you are not in the mycompany.com space yet not incurring the confusion of a 3-layer name.

share|improve this answer
1  
Any what happens when someone else purchases mycompanyCORP.com? – MDMarra Aug 7 '10 at 21:18
1  
Yes, you have to purchase it first. – echobeach2 Aug 8 '10 at 13:18

I always do mydomain.local.

local is not a valid TLD, so it never competes with an actual public DNS entry.

For example, I like being able to know that web1.mydomain.local will resolve to the internal IP of a web server, while web1.mydomain.com will resolve to the external IP.

share|improve this answer
1  
FWIW, .local queries hammer on the root L-server -- ~800/sec when I looked. – jscott Sep 23 '10 at 20:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.