Question

Locked

Two DNS names--1 domain

By powlboyjr ·
Two names...one domain...
Can anyone provide me with any advice or references?
We have our domain (domain.local, for example) and host our own web page and email. However, our external name for our website is http://www.domain.com. As you can see, the domains do not match. Also, when trying to resolve this www.domain.com internally, we receive a DNS error. Is there an easy way to fix this? Here are some of the options I thought about, but I am having a hard time convincing some people to understand:
1. Is there a way to forward just the DNS request for www.domain.com to an external server?
2. Can this be resolved internally even though it is a different domain name?
3. Would it be feasible to create the domain.com domain from scratch and create a trust between the domains?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Re: DNS

by christianshiflet In reply to Two DNS names--1 domain

Do you have a forward lookup zone record for "www" on your internal DNS server? It should point to the local/internal IP of your web server. You can do the same thing for "mail" and point it to your email server. But the .local vs .com shouldn't cause a DNS error (...I have been told).

Collapse -

Re: DNS

by powlboyjr In reply to Re: DNS

Yes, both entries are in the forward DNS lookup (and reverse for that matter). When someone tries to access www.mydomain.com internally, they are given a Page Not Found error. Would this .local domain have anything to do on that part? To me it seems like the .com requests are not being sent to the external side and then back in. Is there anyway to specify mydomain.com in our current mydomain.local domain?

Collapse -

Re: DNS

by christianshiflet In reply to Re: DNS

What are the DNS servers DHCP is giving out? Do they match what the PC you are using has? Is there a local server as the 1st listed DNS server from the PCs? What happens if you try to ping your internal and external IP address and domain names? What about tracert for the same addresses and domain names (inside and out)?

Collapse -

HOSTS

by oldbaritone In reply to Two DNS names--1 domain

To resolve it internally, a quick-and-dirty fix to handle the local resolution is to add the variants into the HOSTS file, usually
C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS
<table>
<tr><td>domain.com</td><td>x.x.x.x</td></tr>
<tr><td>www.domain.com</td><td>x.x.x.x</td></tr>
<tr><td>domain.local</td><td>x.x.x.x</td></tr>
<tr><td>and so on</td></tr>
</table>
It's crude, but I use it all the time in-house to connect directly to the server instead of routing the requests out to the internet and right back in. If I want to test from the outside, I point my own computer's DNS at the internet DNS instead of the DNS server in our office.

Collapse -

Helpful but...

by powlboyjr In reply to HOSTS

THanks for the reply. I do know about the hosts file, but that is not quite what I'm looking for in this solution. I wouldn't want to go around to every machine and make a manual entry to point to the web server. Again, thank you.

Collapse -

well your DNS server should forward the non resolved query

by CG IT In reply to Two DNS names--1 domain

to root hint servers. Those root hint servers then query authoritative name servers for domain names. What ever authoritative name server for your FQDN should resolved the query to your public IP address.

So you should not have any problem with users viewing your public web page.

unless your authoritative name server for your FQDN does not resolved to your public IP address or your web server doesn't get the Internnet request for a web page.

Back to Networks Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums