1

I know this is a very basic question but I need some help.

I'm setting up a domain controller on Zentyal with the domain name example.com. But I need the domain users to be able to get to our company website with the same name (http://example.com) that's hosted out there on a third party's server.

I know this has something to do with adding a DNS record, but I don't know what type. I would experiment, but I don't want to break the whole works!

3 Answers3

5

Do not name your Active Directory Domain the same as your existing domain. It will cause all sorts of trouble.

Take an unused subdomain for example ad.example.com .

If the organization has an Internet presence, use names that are relative to the registered Internet DNS domain name. For example, if you have registered the Internet DNS domain name contoso.com, use a DNS domain name such as corp.contoso.com for the intranet domain name. --http://support.microsoft.com/kb/909264

84104
  • 13,181
  • 6
  • 49
  • 80
2

Domain controller hostname should not be equal to web server hostname if they are at different hosts. It's like trying to access two computers using single ip address :) If having different hostnames is not an option for some reason, you may use solutions listed below.

The idea is to setup port forwarding (destination NAT) at domaing controller. You may forward all traffic to port 80 of your domain controller to port 80 of web server.

The same effect may be achieved by using reverse proxy software like NGINX.

Be aware of drawback that without proper handling (e.g. adding proxy-forwarded-for header at nginx) you will not have real client ip addresses at your web server's logs.

0

The most basic solution is to add a www DNS entry with the external IP address, so users on the domain can just type www.example.com to get to the external website.

hyp
  • 505