Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS and website question

Status
Not open for further replies.

iis6newbie

Technical User
Nov 22, 2003
54
US
Hello all

I am new to DNS server. I am using iis6 from windows 2003
I try to setup a web werver, but I don't know how to setup a DNS server.

My nameservers are working fine. I can bring up a default page if I type the ip add of my server or type ns1.mydomain.com.

I want to host a domain for example: mydomain.com. Do I need to edit the hosts file in C:\WINDOWS\system32\drivers\etc directory?

If I put 127.0.0.2 in the hosts file I can bring up the page for mydomain.com. But this way does not work when I try on second machine. What file do I need to put in the DNS zone? I created a zone mydomain.com, and a A record using 127.0.0.2 for the ip. I put the ns1.mydomain.com and the public ip address for my nameserver.

Can you tell me some simple step in order to bring up a page of mydomain.com

Thanks
 
Your second machine needs to point to the 1st amchine with the mydomain.com page. Edit the host file to point the ip of the 1st machine. 127.0.0.2 is a loopback address.

bob

I know what I know and that's all I know. What I don't know I will ask.
 
In order to use the hosts file you will have to edit the host file on each host that you want to be able to connect to the site. You can also copy one to all the hosts. The best way to do this would be through DNS though.

You mentioned that your nameservers are working fine. Are your nameservers inside your network or outside of your network?
 
Thank you for your answers.

Hi Whoheard,
I tried to put the ip add of the second host in the hosts file. It brought me to the default page of the second host when I tried mydomain.com, not the page for mydomain.com

Do I need to do anything with the DNS setup? Can I use the loopback IP addresses for hosting some websites?

Hi WBG34,
I have 5 static IP addresses. I don't known how to use both in one router. If I use one router, I have to setup the LAN and the WAN subnet mask are the same. I don't know that's a safe way to do or not. I am using two routers. Each router forward to each host. Router 1 forward to ns1, router 2 forward to host 2. Two routers are on different network, not on the same LAN.

You said that it is best to do on the DNS, can you tell me little bit more details on how to do it?


Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top