Link to home
Start Free TrialLog in
Avatar of PeterNairn
PeterNairn

asked on

DNS Settings for Website

Hi, I have built a new Windows Server 2016 and the domain name is the same as the companies website i.e. mycomany.com therefore when they try to browse to www.mycompany.com it redirects to their Windows Server instead of going to their external website. I have added an A Record for www.mycompany.com in the DNS pointing to the external website but receive access to my company.com as denied, it also removes the www. I have it working on PCs by changing the hosts file but need it working from the Server for iPhones etc.

Help !
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
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
You can do this + this breaks DNS best practices. Better to do something like this in your mycompany DNS zone file...

$TTL 5m
$ORIGIN mycompany.com.

@               IN  A      xxx.xxx.xxx.xxx
www             IN  CNAME  @

Open in new window


Also, you'll have far less problems if you only use your public DNS zone servers, so no local DNS entries.

Having both public + local DNS entries, almost always ends badly.

Note: There's no real benefit to having local DNS entries, as TCP/UDP routing understands fastest routes/paths between machines + handles this for you.
While I agree with David in most cases, in this case I urge you not to follow the above suggestion.
In an AD environment, the A record of the domain should not be altered as it will cause havoc on the domain when \\addomain.com\ references.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: 'arnold' (https:#a42962560)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer