1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Rep Power

    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
    The computer I am trying to set up the DNS server on is on the subnet at 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 if my computer is on.
    I have set the router to forward port 80 TCP/UDP to
    I have also set the router to forward port 53 TCP/UDP to

    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:

    I copied these files directly without modification from http://serialcoders.sytes.net/BIND/

    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.

    $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
    IN NS ns1
    IN NS ns2
    IN MX 10 mail

    localhost IN A 127.0.01
    ns1 IN A
    ns2 IN A

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

    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 {
    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 "" {
    type master;
    file "";
    @ 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


    Both of these are attached to the IP

    So based on all of this, I am hoping that the domain will finally point to my IP. But when I look up www.randomravings.net on http://serialcoders.sytes.net/cgi-bin/DNS/index.pl?lr=3 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.

  2. #2
  3. DNS/BIND Guru
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2003
    OH, USA
    Rep Power
    There is communication problems with the server.



    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Rep Power
    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.

IMN logo majestic logo threadwatch logo seochat tools logo