4

My company has a website with the domain name of acme.com. It also used acme.com as the AD domain name. External DNS is set up properly. Internal DNS has to resolve to the DC, for obvious reasons.

As we know, visitors to acme.com from outside our network get the website and visitors to acme.com from within our network hit the domain controller, for obvious reasons.

I am familiar with the usual answers found here and here that state it goes against best practice to use the same name for DNS and AD domains and to either 1) migrant my AD domain to another name or 2) use http redirection via IIS on each of the DCs in my forest.

Based on what I have read on Wikipedia and Reddit, it seems possible to solve this problem with a SRV record.

So, I created the following SRV record but it does not seem to work:

_http._tcp.acme.com. 86400 IN SRV 0 100 80 www.acme.com.

Is it even possible to "redirect" internal http requests from acme.com to www.acme.com using only a SRV record?

Nimrod
  • 143
  • 1
  • 4
  • I don't know of any browser that can make use of SRV records. 2. What is the problem you're trying to solve? Is it simply getting internal users to the website when they type http://acme.com? If so, then create an A record for www in your internal DNS for the external ip address of the web site and instruct your users to use http://www.acme.com when going to the web site. 3. Alternately you could rename the domain to something more appropriate, like ad.acme.com.
  • – joeqwerty May 01 '14 at 20:52
  • www.acme.com is already set up and works fine. It's just when internal clients use acme.com instead. I had a feeling the web browser would have to specifically request the SRV record, but was hoping that wasn't the case and that the DNS server would "see" the SRV record and return the A record for www.acme.com instead. – Nimrod May 01 '14 at 21:12
  • 2
    DNS doesn't work that way either. Your DNS server doesn't know what protocol you intend to use to talk to the host that you're making the DNS request for (unless your software requests SRV records, which web browsers don't.) – mfinni May 01 '14 at 21:15