DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 3rd, 2003, 11:53 PM
Loehmann Loehmann is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Loehmann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question setting up DNS

I have read several of the posts related to setting up a DNS server on Windows XP already. Even after spending several hours reading this and other resources, I am having a hard time figuring out what I'm doing.

What I am trying to do is to set up a DNS server using BIND9 on this Windows XP system to work with a domain name I registered and the web site I am hosting with Apache 2.0 from my home computer through a DSL connection shared through a Linksys router using DHCP.

The name of the domain I registered is randomravings.net
The static IP I use is 63.196.254.92
The computer I am trying to set up the DNS server on is on the subnet at 196.168.1.100. Even though I'm using DHCP, I only ever use this computer so the subnet IP remains the same.

I have successfully set up my Apache server so that anyone on the net can view my site by typing in 63.196.254.92 if my computer is on.
I have set the router to forward port 80 TCP/UDP to 196.168.1.100.
I have also set the router to forward port 53 TCP/UDP to 196.168.1.100.

By following the examples in previous posts I have installed BIND9 into windows/system32/dns/bin.
I generated a rndc.key into windows/system32/dns/etc based on the instructions in the readme1st.txt.

So now, in the windows/system32/dns/etc folder I have the following files:
1.0.0.127.IN-ADDR.ARPA.zone
named.conf
named.pid
randomravings.net.zone
rndc.key
root.hint

I copied these files directly without modification from URL
root.hint

These files I modifed based on what I thought the values should be to work for the DNS server settings I want. I'm not sure if this is correct though since I really have no idea what these commands are actually doing.

-----------------------------------------------------------------------------------
randomravings.net.zone
-----------------------------------------------------------------------------------
$TTL 3600
$ORIGIN randomravings.net.

@ IN SOA ns1 randomravings.net. (
10 ; Serial
10800 ; Refresh after 3 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; Minimum TTL of one day

IN A 63.196.254.92
IN NS ns1
IN NS ns2
IN MX 10 mail

localhost IN A 127.0.01
ns1 IN A 63.196.254.92
ns2 IN A 63.196.254.92

server1 IN CNAME @
mail IN CNAME @
www IN CNAME @
ftp IN CNAME @
ssh IN CNAME @


-----------------------------------------------------------------------------------
named.conf
-----------------------------------------------------------------------------------
options {
# Set the working directory from which all relative paths are based

directory "/windows/system32/DNS/etc";

# Change default to 'no' cause I don't have other server

notify no;
};

# I'm a log fan
logging {
channel query_logging {
file "/windows/system32/DNS/log/dns.log"
versions 3 size 100M;
print-time yes; // timestamp log entries
};
category queries {
query_logging;
};
category lame-servers { null; };
};

# Specify the root name servers
zone "." IN {
type hint;
file "root.hint";
};

# example zone used for testing of DNS software I develop
zone "randomravings.net" {
type master;
file "randomravings.net.zone";
};

# and of course the reverse lookup for the zone
zone "1.0.0.127.in-addr.arpa" {
type master;
file "1.0.0.127.IN-ADDR.ARPA.zone";
};
-----------------------------------------------------------------------------------
1.0.0.127.IN-ADDR.ARPA.zone
-----------------------------------------------------------------------------------
@ SOA ns.randomravings.net. (
1 ; Serial
21600 ; Refresh
1800 ; Retry
604800 ; Expire
900 ) ; Cache TTL

NS ns.randomravings.net.

PTR randomravings.net.
-----------------------------------------------------------------------------------

Okay, so those are what the modifications I made look like. Once I was finished doing that I went to admin tools, services, and manually started ISC BIND. Previous to my modifications I had tried to start this service and it terminated in a similiar manner to someone elses post. This time, the service started and didn't crash, so it seems to be working fine.

Unfortunately even though it's working fine, I don't know if the way I have it configured makes sense. ><

Following directions I have read previously, I went to the site where I registered my domain and I set up randomravings.net to point to two nameservers that I made up arbitrarily. These are as follows

ns1.randomravings.net
ns2.randomravings.net

Both of these are attached to the IP 63.196.254.92

So based on all of this, I am hoping that the domain will finally point to my IP. But when I look up URL on URL it shows that it is still at park7.secureserver.net which is the parking spot of the registration company. I'm not sure if it just hasn't switched over yet, or if everything I have done to configure the DNS on the server and with the domain name is garbage.

Any advice on what to do, or some pointers to resources geared towards someone with less technical experience can be found, would be really appreciated.

Thanks

Reply With Quote
  #2  
Old August 4th, 2003, 11:29 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
There is communication problems with the server.

UDP
http://serialcoders.sytes.net/cgi-b...ype=A&submit=DS

TCP
http://serialcoders.sytes.net/cgi-b...ype=A&submit=DS

I'm willing to bet that BIND isn't even running cause there was an error. Make sure the config files is located in the following folder:

C:\Program Files\DNS\etc

Either that or modify the directory directive in named.conf. My named.conf says this:

directory "/Program Files/DNS/etc";

Change yours to reflect the relative location of all filenames specified in named.conf.

If you had already done this, then start bind at the commandline:

C:\Program Files\DNS\bin\>named -f

You should get a readout of all the errors that occured.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old August 4th, 2003, 04:11 PM
Loehmann Loehmann is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Loehmann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Oh, I forgot to mention that I don't have this computer on all the time ><. So when you checked this you got a communication error cause the computer was off. My bad.

I just check it and it works!!! I guess I followed all the examples correctly. =) Thanks for all those awesome posts SilentRage.

Last edited by Loehmann : August 4th, 2003 at 04:17 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Question setting up DNS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway