Link to home
Start Free TrialLog in
Avatar of Peterson50
Peterson50Flag for United States of America

asked on

Domain name same as external web domain

We recently installed a Windows 2012 server and have a question.

1. We made the server domain as companyname.com which is the same as the external website companyname.com.  The issue is that when they attempt to go to the website it obviously only resolves to the internal domain name as the dns on the server is what is being pointed to.  If there any way by making changes to repoint (perhaps with a cname on the server) which will force it to point to the external website.  They do not have a dedicated ip for the website but it appears to be a shared ip as if we type in the ip address assigned, it pulls up a page showing windows IIS running and does not show the webpage, but if we type in the actual name the website comes up.

If the steps can be provided to accomplish this it would be appreciated if it is possible, at present we have to have the ISP dns server listed first in dns servers and then the internal domain listed second in order for the external website to resolve properly.

Thanks
Paul
ASKER CERTIFIED SOLUTION
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Peterson50

ASKER

You are correct in that normally we do .local but did the install without realizing what we had done until we had it in production.  It is a small company of only 5 users but they connect to their website frequently for information.  How would one add the A record on the Windows Server 2012

Thanks
Also can something be utilized in a local hosts file for this issue?
The only issue is that the ip address that the external domain resolves to apparently is not a dedicated one. If we type in the ip address it gives a IIs 7.5 Detailed error 403.14 forbidden "The web server is not configured  to list the contents of this directory"  

If we can get around this we can just modify their hosts file and they are good, any suggestions

Thanks
That's on the web server end. Not yours. The browser sends what URL was requested and the server matches it and sends the appropriate content. This allows one IP to host many websites. So you can't type an IP address. It won't work. You have to have DNS resolve on the browser's behalf so the browser can send the right string. So we are back to my above statement. You can't change DNS because AD relies on it. And it needs to work because of how web servers support virtual hosts on a single IP. It is a known and old limitation of using a publicly reachable domain name for AD.
With only five users, I'd just plan a rebuild over the weekend and redo the domain.
And no, editing the hosts file introduces the same problem changing DNS would. AD client services would defer to the hosts file, get that IP, and then still fail to connect to a DC at the website's address. So whether you break it by DNS or break it by using a hosts file, changing the IP address that a client gets for the root AD domain will break AD on that client. A hosts file is not a fix here.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How do I add the DNS A record.  I see the Forward Lookup Zone and the domain listed company name.com listed underneath, I go into the domain and then select new Host (A or AAAA) and then what do I enter at this point, what should it look like?  
It gives me the following three fields
name
FQDN
IP Address

Is this correct? Will it mess up anything?

I really don't want to reinstall the server if I can change this one thing but will do so if I have to
Thanks
You only provide
  Name: www
  IP Address: your.public.ip.address
FQDN is built automatically, and should look like    www.company.com    
i.e. exactly what you would use from outside your domain.
Hi! Very interesting informatin! Thanks. I also want to tell a very useful service that I use.
Free  Whois domain lookup  tool for finding domain names ownership information, registration data and much more.
I hope you will find it useful.