Find the answer to your Linux question:
Results 1 to 6 of 6
Will someone please help me? I was previously using a free dns service and now i've decided to host my own DNS since the "free dns service" i was using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    3

    BIND 9 on Windows XP using APACHE SERVER


    Will someone please help me? I was previously using a free dns service and now i've decided to host my own DNS since the "free dns service" i was using was allowing other people to use subdomains of my domain without my permission. Currently I am using a different FREE DNS SERVICE PROVIDER. However, when I was trying to get BIND to work, I had my domain name http://getwhatuwant.com pointing to the following name servers:

    ns1.getwhatuwant.com
    ns2.getwhatuwant.com

    I am running http://getwhatuwant.com through port 65254 and i don't know how to configure bind to serve my website through that port.

    Below you will find the contents of all of my BIND 9 configuration files. BIND 9 is installed in the following directory: C:\WINDOWS\system32\dns\bin

    Here are the locations of all of the BIND 9 configureation files:

    C:\WINDOWS\system32\dns\etc\named.conf
    C:\WINDOWS\system32\dns\etc\resolv.conf
    C:\WINDOWS\system32\dns\etc\rndc.key

    C:\WINDOWS\system32\dns\etc\cache.db

    C:\WINDOWS\system32\dns\etc\named\zones\24.187.119 .190.db
    C:\WINDOWS\system32\dns\etc\named\zones\127.0.0.db
    C:\WINDOWS\system32\dns\etc\named\zones\getwhatuwa nt.com.db

    C:\WINDOWS\system32\dns\etc\named\run\named.pid
    C:\WINDOWS\system32\dns\etc\named\log\named.log

    Please help me if you can. I'm sure there are some of you out there who can figure this out in less than 5 minutes. Your knowledge will be very greatly appreciated. THANKS
    ---------------------------------------------------------\
    CONTENTS OF NAMED.CONF:

    // BIND configuration file
    options {
    directory "c:\windows\system32\dns\etc\named";
    // Place additional options here.
    listen-on port 65254{ 24.187.119.190; };
    };
    zone "getwhatuwant.com" in {
    type master;
    file "c:\windows\system32\dns\etc\named\zones\getwhatuw ant.com.db";
    };
    zone "24.187.119.190.in-addr.arpa" in {
    type master;
    file "c:\windows\system32\dns\etc\named\zones\24.187.11 9.190.db";
    };
    zone "0.0.127.in-addr.arpa" in {
    type master;
    file "c:\windows\system32\dns\etc\named\zones\127.0.0.d b";
    };
    zone "." in {
    type hint;
    file "c:\windows\system32\dns\etc\named\cache.db";
    };

    ----------------------------------------------------
    CONTENTS OF RESOLV.CONF:

    domain getwhatuwant.com

    -----------------------------------------------------
    CONTENTS OF CACHE.DB:

    ; This file holds the information on root name servers needed to
    ; initialize cache of Internet domain name servers
    ; (e.g. reference this file in the "cache . "
    ; configuration file of BIND domain name servers).
    ;
    ; This file is made available by InterNIC
    ; under anonymous FTP as
    ; file /domain/named.root
    ; on server FTP.INTERNIC.NET
    ; -OR- RS.INTERNIC.NET
    ;
    ; last update: Jan 29, 2004
    ; related version of root zone: 2004012900
    ;
    ;
    ; formerly NS.INTERNIC.NET
    ;
    . 3600000 IN NS A.ROOT-SERVERS.NET.
    A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
    ;
    ; formerly NS1.ISI.EDU
    ;
    . 3600000 NS B.ROOT-SERVERS.NET.
    B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
    ;
    ; formerly C.PSI.NET
    ;
    . 3600000 NS C.ROOT-SERVERS.NET.
    C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
    ;
    ; formerly TERP.UMD.EDU
    ;
    . 3600000 NS D.ROOT-SERVERS.NET.
    D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
    ;
    ; formerly NS.NASA.GOV
    ;
    . 3600000 NS E.ROOT-SERVERS.NET.
    E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
    ;
    ; formerly NS.ISC.ORG
    ;
    . 3600000 NS F.ROOT-SERVERS.NET.
    F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
    ;
    ; formerly NS.NIC.DDN.MIL
    ;
    . 3600000 NS G.ROOT-SERVERS.NET.
    G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
    ;
    ; formerly AOS.ARL.ARMY.MIL
    ;
    . 3600000 NS H.ROOT-SERVERS.NET.
    H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
    ;
    ; formerly NIC.NORDU.NET
    ;
    . 3600000 NS I.ROOT-SERVERS.NET.
    I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
    ;
    ; operated by VeriSign, Inc.
    ;
    . 3600000 NS J.ROOT-SERVERS.NET.
    J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
    ;
    ; operated by RIPE NCC
    ;
    . 3600000 NS K.ROOT-SERVERS.NET.
    K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
    ;
    ; operated by ICANN
    ;
    . 3600000 NS L.ROOT-SERVERS.NET.
    L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
    ;
    ; operated by WIDE
    ;
    . 3600000 NS M.ROOT-SERVERS.NET.
    M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
    ; End of File

    -------------------------------------------------------
    CONTENTS OF 24.187.119.190.DB:

    $TTL 3h

    24.187.119.190.in-addr.arpa. IN SOA ns1.getwhatuwant.com. ns2.getwhatuwant.com.(
    1 ; Serial
    3h ; Refresh after 3 hours
    1h ; Retry after 1 hour
    1w ; Expire after 1 week
    1h ) ; Negative caching TTL of 1 hour
    ;
    ;Name servers
    ;
    24.187.119.190.in-addr.arpa. IN NS ns1.getwhatuwant.com.
    24.187.119.190.in-addr.arpa. IN NS ns2.getwhatuwant.com.
    ;
    ;Addresses point to canonical name
    ;
    1.24.187.119.190.in-addr.arpa. IN PTR ns1.getwhatuwant.com.
    2.24.187.119.190.in-addr.arpa. IN PTR ns2.getwhatuwant.com.

    -------------------------------------------------------
    CONTENTS OF 127.0.0.DB:

    $TTL 3h
    0.0.127.in-addr.arpa. IN SOA ns1.getwhatuwant.com. ns2.getwhatuwant.com. (
    1 ; Serial
    3h ; Refresh after 3 hours
    1h ; Retry after 1 hour
    1w ; Expire after 1 week
    1h ) ; Negative caching TTL of 1 hour


    0.0.127.in-addr.arpa. IN NS ns1.getwhatuwant.com.
    0.0.127.in-addr.arpa. IN NS ns2.getwhatuwant.com.

    1.0.0.127.in-addr.arpa. IN PTR localhost.

    --------------------------------------------------------
    CONTENTS OF GETWHATUWANT.COM.DB:

    $TTL 3h
    getwhatuwant.com. IN SOA ns1.getwhatuwant.com. ns2.getwhatuwant.com. (
    1 ; Serial
    3h ; Refresh after 3 hours
    1h ; Retry after 1 hour
    1w ; Expire after 1 week
    1h ) ; Negative caching TTL of 1 hour
    ;
    ;Name servers
    ;
    getwhatuwant.com. IN NS ns1.getwhatuwant.com.
    getwhatUwant.com. IN NS ns2.getwhatUwant.com.
    ;
    ;
    Addresses for the canonical names
    ;
    localhost.getwhatuwant.com. IN A 127.0.0.1
    ns1.getwhatuwant.com. IN A 24.187.119.190
    ns2.getwhatuwant.com. IN A 24.187.119.190
    ;
    ;
    Aliases
    ;
    ;bigt.getwhatuwant.com. IN CNAME ns1.getwhatuwant.com.
    ;dh.getwhatuwant.com. IN CNAME ns2.getwhatuwant.com.
    ;wh.getwhatuwant.com. IN CNAME ns1.getwhatuwant.com.
    ;
    ;
    Interface specific names
    ;
    ;wh249.movie.edu. IN A 192.249.249.1
    ;wh253.movie.edu. IN A 192.253.253.1

  2. #2
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    heh, you're probably talking about afraid's freedns. I consider them the second best free dns hosting provider. I consider my own free dns service to be the best since there aren't any limitations. Pretty much anything you can do with BIND, you can do with my service.

    Anywho, what port you connect to isn't decided by the domain name system. BIND just makes a domain point to a given IP. It doesn't point a domain to a port too. At least, not in this situation. What you need is a URL redirect. This is done by webservers like apache. Unfortunately, if your ISP blocks port 80, then you can't do this yourself. You need to setup the URL redirect on somebody else's server, then their server will redirect people to your server's non-standard port.

    I could setup a URL redirect for you on my server if you want.

  3. #3
    Just Joined!
    Join Date
    May 2005
    Posts
    3
    That was a fast response. Thank you very much. As far as you can tell, is there anything wrong with my configuration files? i did an nslookup and it didn't work. I really know nothing about running a webserver. It was easy when someone else was providing the DNS service cause all i had to do was set up apache. However, i really would prefer not to rely any services I can provide for myself. So i want to learn bind. Can you please let me know if anything looks wrong in my BIND configuration files. I'm sure you could probably get it up and running in minutes if you wanted to. I would like it if you could set up a redirection for me; let me know how to proceed from here. Thanks a lot

  4. #4
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    Alright, the URL redirect is all setup. Add these records to your getwhatuwant.com.db zone file.

    @ A 216.117.186.93
    www A 216.117.186.93
    site A 24.187.119.190

    The above records mean this. When somebody goes to http://getwhatuwant.com or http://www.getwhatuwant.com, then they will go to my webserver at IP 216.117.186.93. My webserver will then redirect them to http://site.getwhatuwant.com:65254, which is your webserver at IP 24.187.119.190 port 65254. If you don't like the hostname 'site' then I can change it to whatever else you think looks good.

    Now as for your config... I could stare at your configuration files all day and still miss something obvious. So show me the command and the response for the nslookup you say failed. We'll take it from there.

  5. #5
    Just Joined!
    Join Date
    May 2005
    Posts
    3
    Can you just redirect requests for getwhatuwant.com and www.getwhatuwant.com to http://www.getwhatuwant.com:65254 ? My previous DNS provider was able to direct requests using CNAME whereby www.getwhatuwant.com or getwhatuwant.com was directed to www2.getwhatuwant.com:65254.....and they used cloaking so that only www.getwhatuwant.com would show up in the address bar. If possible, I would like to emulate that.

    How can i make it so that if they type www.getwhatuwant.com or getwhatuwant.com in the address bar, they will get to my website?

    also, how can I have it so that users do not see the :65254 in the address bar?

    What should I put down for my domain name servers at my domain name registrar? currently, they are set to ns1.getwhatuwant.com and ns2.getwhatuwant.com. Conceptually, this seems right but what do you say?

    If I wanted to add subdomain names of my domain name to my website, how would i do that? What lines would i have to add to my BIND configuration files?

    I'm sorry for assuming that you can just read Source Code as if you were reading a novel; believe it or not, I did my undergrad with quite a few people who actually were able to do that. I'll post the NSLOOKUP ERRORS as soon as i update my nameservers to ns1.getwhatuwant.com and ns2.getwhatuwant.com (please let me know if those are the nameservers I should use). Thank you SO much.

  6. #6
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    No, that wouldn't work cause the domain is pointed to my server, not yours. I would be redirecting to a strange port on my own server. It IS possible to do URL masking where my server will stick your website within frames. That way the visitor will see www.getwhatuwant.com in the address bar. The downside is that when they click on links, they won't see the page URL in the address bar. It will be stuck on www.getwhatuwant.com.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •