Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DNS records on local LAN

Posted on 2004-04-14
10
Medium Priority
?
199 Views
Last Modified: 2010-03-18
I'm running SBS 2000 as a domain controller, and have created a domain, mydomain.com.  I have this domain name registered and have my ISP hosting a website with the URL www.mydomain.com.  

When I try to go to the website www.mydomain.com from a workstation on my network that uses the domain controller as its DNS server, I cannot view the website.  Basically the DNS on my domain controller does not point www.mydomain.com to the right location.  If I use my ISP's name server from a workstation I can view the website fine.

My question is how do I configure my DNS to forward requests for this website to the correct location?

The virtual server address of this website is users.ispname.net/~mydomain

Thanks,

Brian
0
Comment
Question by:Brian1
10 Comments
 
LVL 11

Expert Comment

by:infotrader
ID: 10826693
That is a problem with both External DNS domain and Internal DDNS domain name being the same.

You can either go to your DNS mmc and add a host record for www that points to the External IP address of www.mydomain.com, or just modify the c:\windows\system32\drivers\etc\hosts file and add www.mydomain.com to the entry.

- Info
0
 
LVL 11

Expert Comment

by:infotrader
ID: 10826707
P.S.  The hosts file would only work on the ONE computer that you've modified the entry for.  So if you edit the hosts file on computer1, then only computer1 would resolve it correctly.  If you need to apply the changes to a bunch of computers, you're better off modify the mydomain.com dns entry on your DNS server.

- Info
0
 
LVL 31

Expert Comment

by:Gareth Gudger
ID: 10832498
Info is right.... or you can just add the "www" record pointing to the true IP of your website in DNS as info stated.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Brian1
ID: 10838015
I can't just add a host record for www that points to the Website's IP because it has a dynamic IP that changes.  The virtual path for the site is user.ispname.com/~mycompanyname.  But a host record asks for an IP address...
0
 
LVL 11

Accepted Solution

by:
infotrader earned 672 total points
ID: 10839381
If your ISP is hosting your website as www.mycompany.com, then it is their duty to make sure that http://www.mycompany.com points to the correct "Virtual Server'.  If it is not pointing to an IP address, then there is something wrong with THEIR setup.  I do not know any ISP that hosts a website on a dynamic IP address.  Besides, even if the address is dynamic, the chance for that IP to change are usually pretty slim.  I host my own website through a dynamic cable modem, and the IP address only changes 3 times in the last 7 years... each with a new ISP taking over the ownership of the cable company.

Basically, if they are hosting multiple websites on a single IP address, then they are responsible for the http header resolution.  There is no reason why http://www.mydomain.com would resolve externally to one IP address but not internally to the same IP address.

Simply put, if 12.12.12.12 points to www.mydomain.com, then if you put www.mydomain.com 12.12.12.12 in your host file, it will resolve.

If 12.12.12.12 does not resolve externally to the website, then it is something you'd need to discuss with your ISP.  You need to let them know that they need to be able to distinguish different websites through http headers.

Finally, if for some reason that's not a good enough answer, then you can also create a website called www.mydomain.com internally.  and under the "Home Directory", select "Redirection to a URL" and type http://user.ispname.com/~mycompanyname...  That way, when your user goes to http://www.mycompany.com, it will go to your internal IIS server first, then redirected to the path.

- Info
0
 
LVL 4

Assisted Solution

by:eedlee
eedlee earned 664 total points
ID: 10839620
If you really have a variable DNS website (not unusual if its running on someone's server in their house, but still unusual in and of itself) then you are short on options, other than the hosts file. Users outside your domain are querying a dynamic host provider who is relaying cname information and redirecting to the domain/folder. Since local clients need local DNS, this can't currently be resolved through a local server DNS parameter to my knowledge. If you could give more info on the host provider for the intenet www record it would be helpful.
0
 
LVL 31

Assisted Solution

by:Gareth Gudger
Gareth Gudger earned 664 total points
ID: 10846095
>> IP address only changes 3 times in the last 7 years

I've seen peoples change every other month. :)

>> The virtual path for the site is user.ispname.com/~mycompanyname.

Sounds like to me you are redirecting a domain name to a virtual home folder out of someones free webspace they got with their DSL or cable connection.

In that case map the "www" entry on your DNS to whomever is doing the external DNS translation (from "www.yourdomain.com" to "user.ispname.com/~mycompanyname") IP address of their DNS server.
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question