Named on LAN problem

Barry Finkel b19141 at achilles.ctd.anl.gov
Mon Jun 26 14:20:16 UTC 2006


S t i n g r a y <fasi_74 at yahoo.com> wrote:

>Well recently i ask for help regarding my first dns server on LAN & now i have installed & configured it , 
>but there is one problem its not workign the way i want it to ...
>for example i want to have a local domain called clickonline.net mapping to the ip address of 10.0.0.4 but its not working .. here are my config files.
>
>named.conf
>
>acl clients {
>       10.0.0.0/16;
>        ::1;
>};
>
>options {
>        listen-on    { any; };
>        allow-recursion { clients; };
>};
>//forwarders {10.0.0.1;};
>zone "." {
>        type hint;
>        file "standard/root.hint";
>};
>
>zone "localhost" {
>        type master;
>        file "standard/localhost";
>        allow-transfer { localhost; };
>};
>
>zone "127.in-addr.arpa" {
>        type master;
>        file "standard/loopback";
>        allow-transfer { localhost; };
>};
>zone "clickonline.net" {
>        type master;
>        file "/var/named/master/db.clickonline.net";
>};
>
>
>my /var/named/master/db.clickonline.net file
>
>$TTL    86400
>@       IN      SOA     ns.clickonline.net. admin at clickonline.net.
>(
>                              1         ; Serial
>                         604800         ; Refresh
>                          86400         ; Retry
>                        2419200         ; Expire
>                          86400 )       ; Negative Cache TTL
>;
>@       IN      NS      ns.clickonline.net.
>
>@       IN      A      10.0.0.4
>mailserver       IN      A      10.0.0.2
>firewall      IN      A      10.0.0.6
>
>
>my /etc/resolve.conf file
>
>domain  clickonline.net
>nameserver 10.0.0.6
>
>the client pc window which is configured to use my named server
>
>C:\Documents and Settings\admin>nslookup clickonline.net
>*** Can't find server name for address 10.0.0.6: Non-existent domain
>*** Default servers are not available
>Server:  UnKnown
>Address:  10.0.0.6
>
>*** UnKnown can't find clickonline.net: Server failed
>
>what should i do now ?
>regards
>Faisal

One mistake you are making is this - you are using nslookup as a 
debugging tool, which it is not.  Look at these lines:

     C:\Documents and Settings\admin>nslookup clickonline.net
     *** Can't find server name for address 10.0.0.6: Non-existent domain
     *** Default servers are not available
     Server:  UnKnown
     Address:  10.0.0.6

     *** UnKnown can't find clickonline.net: Server failed

You have your default server as 10.0.0.6.  The first thing that nslookup
does is to verify that that address is registered in DNS and that the
nodename it finds points back to 10.0.0.6.  In your case, 10.0.0.6
is not registered in DNS (at least nslookup could not find it), so
nslookup (inconveniently) refuses to use 10.0.0.6 as a DNS server, and
nslookup immediately quits.
----------------------------------------------------------------------
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory          Phone:    +1 (630) 252-7277
9700 South Cass Avenue               Facsimile:+1 (630) 252-4601
Building 222, Room D209              Internet: BSFinkel at anl.gov
Argonne, IL   60439-4828             IBMMAIL:  I1004994



More information about the bind-users mailing list