Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0

    Post Don't know how to use BIND 9 as a web domain nameserver, time to ask for help!


    Well, I'm 15 and I bought a domain from DynDNS without getting their DNS service and I have Apache HTTP server configured correctly (on Windows 7) such that typing in my IP address in a browser takes me to the generic apache page.

    I tried my best configuring BIND to work with the domain, but internet support was scarce and my dad's DNS and BIND book was a bit too advanced (and outdated) with terminology I didn't understand. I don't want to know what everything in the files means, I just want to have this website (nerdycast.org) display my Apache page without buying the DYNDNS service.

    These are the only 2 files I've created in BIND (the service of which runs on Local System with a PW).

    named.conf:
    http://www.mediafire.com/?yv6owzh0o3ousxl

    zone file (which i really dont understand :\)
    http://www.mediafire.com/?xnitj7sep0uueu1

    Thank you, and I'll try to provide any more info if I can.

    P.S. Do the nameservers in the zones file translate into what one types in to reach the website? for example, unless one of the nameservers is www,example,com a person would not be able to go to that subdomain?

    P.S.S For BIND to work do I have to configure something on Windows or my Router?
    Last edited by hiker; June 14th, 2011 at 09:04 PM. Reason: Formatted URL's
  2. #2
  3. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,105
    Rep Power
    5049
    Here is some info to help you with your zone file:
    A Record --> IP Address of the domain
    NS Record --> Nameservers used for the domain
    CNAME --> Alias used to point to a domain. (Used for subdomains mainly)
    MX Record --> Mail Exchange Record

    Now, there are other records, but these are some of the main ones.

    General formatting for a zone file below
    $TTL 6h
    @ IN SOA ns1.nerdycast.org. www.nerdycast.org. (
    2011061201
    10800
    3600
    604800
    86400 )

    @ NS ns1.nerdycast.org.
    would be something like this:

    domain.com. IN A xxx.xxx.xxx.xxx
    www.domain.com. IN A xxx.xxx.xxx.xxx
    mail.domain.com. IN A xxx.xxx.xxx.xxx
    ns1.domain.com. IN A xxx.xxx.xxx.xxx
    ns2.domain.com. IN A xxx.xxx.xxx.xxx
    domain.com. IN NS ns1.domain.com.
    domain.com. IN NS ns2.domain.com.
    domain.com. IN MX mail.domain.com.
    Now, I generally use absolute domains. However, you would be fine with using relative. By this, I mean that in the above zone file I created, I have added domain.com. (with the ending period) to all the entries. Using relative entries, domain.com is added to the entries, so if you just used www or ns1 instead, that would be fine.

    Once you create nameservers, you need to make sure that you list your nameservers (and the associated IP if required) at the domain registrar.

    In regards to your router (and/or firewall), you need to forward (and/or open) the following ports, for whichever services you want to use:
    21 - FTP
    25 - SMTP
    53 - DNS
    80 - HTTP
    110 - POP
    143 - IMAP
    443 - HTTPS
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0
    Thanks for responding, I'll look this over tomorrow, looks good sir!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0
    argh, I'm so close, I can see that my computer now is a working DNS server, but it still isn't linkign with the domain name I need it to.

    I've forwarded 80 for apache and 53 and 953 for BIND to my computer.

    I've put the nameservers as www,nerdycast,org and extra,nerdycast,org (both linked to my IP addresss) in the registrar website.

    Is it just TTL I'm waiting on?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Location
    Florida
    Posts
    248
    Rep Power
    4
    Your server isn't responding on port 53. Make sure BIND is running and the zone files loaded. Also double check your firewall/router rules. I can connect to port 80, but not 53.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0
    Originally Posted by CaptPikel
    Your server isn't responding on port 53. Make sure BIND is running and the zone files loaded. Also double check your firewall/router rules. I can connect to port 80, but not 53.
    Ok, thanks for telling this to me, ill check and it should be correct in about 5 minutes. from 12:50 central daylight time
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0
    the website still doesn't work, but you should be able to use port 53 now.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0
    also, how come when I run BIND it changes the zone file into something like this "db-000652" with no file extension? Do i have to redo named.conf with the new name evey time i want to start BIND?
  16. #9
  17. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,105
    Rep Power
    5049
    Can you post your zone file here. Seems to be problems with how your nameservers are layed out.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Location
    Florida
    Posts
    248
    Rep Power
    4
    I'm not a user of BIND in a Windows environment so I'm not sure about the zone names. I've only used UNIX. I can tell you that's not a normal thing for BIND to do though.

    However I see you're running BIND 9.8 now and I can connect to port 53. I get SERVFAIL responses for your domain for all the queries I tried so chances are the zone never loaded to named. This could be caused by typos in the configuration of named.conf or the zone file. But I'm leaning towards a possible problem with the zone file having that odd name you mentioned. Maybe someone here that has used Windows and BIND has heard of that. I agree you should probably post your configs so they can be inspected for syntax.
  20. #11
  21. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0

    Post


    I concur, my named.conf file is here:
    NAMED.CONF

    and my zones file is here, however this is the weird renamed one, just open it with a text editor.
    ZONE FILE

    I also have something called named.local, if you need.

    EDIT: Where have I seen your avatar before Hiker?
  22. #12
  23. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,105
    Rep Power
    5049
    Your problem is that all of your zone records point to your localhost (127.0.0.1). You need to change all of those to your external IP address that you want used (70.123.160.177 I'm assuming).

    Generally speaking, for nameservers, people use more appropriate naming conventions.. for example, ns1.nerdycast.org and ns2.nerdycast.org.

    Try something like this:
    nerdycast.org. IN SOA ns1.nerdycast.org. info@nerdycast.org. (
    2011061501
    10800
    3600
    604800
    38400 )

    nerdycast.org. IN A 70.123.160.177
    www.nerdycast.org. IN A 70.123.160.177
    pop3.nerdycast.org. IN A 70.123.160.177
    smtp.nerdycast.org. IN A 70.123.160.177
    ns1.nerdycast.org. IN A 70.123.160.177
    ns2.nerdycast.org. IN A 70.123.160.177
    mail.nerdycast.org. IN A 70.123.160.177
    nerdycast.org. IN NS ns1.nerdycast.org.
    nerdycast.org. IN NS ns2.nerdycast.org.
    nerdycast.org. IN MX 10 mail.nerdycast.org.
    (Not sure where you've seen my avatar.)
    Last edited by hiker; June 15th, 2011 at 08:13 PM.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Location
    Florida
    Posts
    248
    Rep Power
    4
    And the named.conf, something like this:

    Code:
    options {
         directory "c:\windows\sysWOW64\dns\zones";
         allow-transfer { 127.0.0.1; };
         recursion yes;
    };
    
    
    
    zone "0.0.127.in-addr.arpa" {
         type master;
         file "named.local";
    };
    
    
    zone "nerdycast.org" {
         type master;
         file "db-00006432";
    };
    I'm still not sure about the goofy file name, but the SOA information you were missing in the zone file would surely cause a problem when trying to load the zone data.
  26. #14
  27. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    29
    Rep Power
    0
    Ok, ill try those now.

    Another question, Does it matter if theres a return at the end of these files? like one more line down, but without any characters?
  28. #15
  29. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,105
    Rep Power
    5049
    Originally Posted by pyraetos
    Ok, ill try those now.

    Another question, Does it matter if theres a return at the end of these files? like one more line down, but without any characters?
    No.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo