Click to See Complete Forum and Search --> : BIND . ): giving me a hard time


kakuustaad
09-08-2001, 05:13 AM
hii .. me just trying to learn some server administration these days .. decided to setup a dns server on my lan which is connected to the internet on the behalf of the gateway ..

my gateway local lan ip = 192.168.10.10
my computer local lan ip = 192.168.10.21
one of my friend comp ip = 192.168.10.7


now i tried to setup a dns server which could atleast resolve our adress locally providing us some cool host names atleast on our local lan .. i picked up a domain name= BLOCK8.net randomly . mind you i havnt got this registered by internic .. after installing bind , i made these configs files have a look ..


# cat db.127.0.0
------------------------
0.0.127.in-addr.arpa. IN SOA PRIMARY.block8.net. kakuustaad.block8.net. ( 1 ; serial
10800 ; refresh after 3 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum ttl of 1 day

0.0.127.in-addr.arpa. IN NS PRIMARY.block8.net.
;
;
; hosts
;
;
1.0.0.127 IN PTR localhost.block8.net
--------------------


# cat db.192.168.10
--------------------


10.168.192.in-addr.arpa. IN SOA PRIMARY.block8.net. kakuustaad.block8.net. ( 1 ; serial
10800 ; refresh after 3 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum ttl of 1 day

10.168.192.in-addr.arpa. IN NS PRIMARY.block8.net.

;
;
;ADRESSES POINTING TO CACONICAL NAME
;
;
;
21.10.168.192 IN PTR PRIMARY.block8.net.
7.10.168.192 IN PTR rafey.block8.net.
----------------------


#cat db.block8
-----------------


block8.net. IN SOA primary.block8.net. kakuustaad.block8.net. (
1 ; serial
10800 ; refresh after 3 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum ttl of 1 day

block8.net. IN NS PRIMARY.block8.net.

;
;
; HOST ADRESSES
;
;

localhost.block8.net. IN A 127.0.0.1
primary.block8.net. IN A 192.168.10.21
refey.block8.net. IN A 192.168.10.7

;
;aliases
;
;
dns.block8.net. IN A 192.168.10.21

---------------------------


and another file cache.db which i downloaded from ftp.rs.internic.net .... everything seem to be ok .. but still i cannot get those cool hostnames .. this is what i got when i tried to use nslookup

FIRST TRY
-----------------------------------------
[root@jades /]# nslookup - 192.168.10.21
*** Can't find server name for address 192.168.10.21: Non-existent host/domain
*** Default servers are not available
[root@jades /]#
-----------------------------------


MY SECOND TRY

-----------------------------------
[root@jades /]# nslookup
*** Can't find server name for address 192.168.10.21: Non-existent host/domain
Default Server: cache00.ns.uu.net
Address: 198.6.1.1

> server 192.168.10.21
Default Server: [192.168.10.21]
Address: 192.168.10.21

> primary.block8.net
Server: [192.168.10.21]
Address: 192.168.10.21

*** [192.168.10.21] can't find primary.block8.net: Non-existent host/domain
> rafey.block8.net
Server: [192.168.10.21]
Address: 192.168.10.21

*** [192.168.10.21] can't find rafey.block8.net: Non-existent host/domain
> localhost.block8.net
Server: [192.168.10.21]
Address: 192.168.10.21
*** [192.168.10.21] can't find localhost.block8.net: Non-existent host/domain
---------------------


any idea guys ?