I'm trying to set up a DNS server which can resolve local hostnames for my network ok? I've installed djbdns and I've set up an internal nameserver as of now.

$: dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1
$: ln -s /etc/dnscache /service
$: /etc/init.d/djbdns restart

When I test it with dig, it works for Google and all but it doesnt work for any of the hosts I have on my LAN. For e.g,

Output of dig netmon.mnit.ac.in:


; <<>> DiG 9.3.4 <<>> netmon.mnit.ac.in
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40768
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;netmon.mnit.ac.in. IN A

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 19 09:08:41 2008
;; MSG SIZE rcvd: 35


What do I do to overcome this? I need to set up the DNS so that it can resolve local hostnames. Please help!!!