Solved

DNS records on local LAN

Posted on 2004-04-14
10
193 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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 168 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 166 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 166 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
An article on effective troubleshooting
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now