[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

djbdns and local network



I'm trying to setup djbdns (from daemontools-installer 0.70-25 and
djbdns-installer 1.05-4) for my small local network [1]. Installing 
the software was not a problem. According to the documentation on
http://cr.yp.to/djbdns.html, I did the following steps:

On the linux-server (IP 10.0.0.1):
1: install daemontools and djbdns

2: Set up DNS server:
  - # tinydns-conf tinydns dnslog /etc/tinydns 10.0.0.1
  - # ln -s /etc/tinydns /service
  - /service/tinydns/root# ./add-ns example.net 10.0.0.1
  - /service/tinydns/root# ./add-ns 0.0.10.in-addr.arpa 10.0.0.1
  - /service/tinydns/root# make
  - add my local host:
    - /service/tinydns/root# ./add-host server.example.net 10.0.0.1
    - /service/tinydns/root# ./add-host winclient1.example.net 10.0.0.2
    - /service/tinydns/root# ./add-host winclient2.example.net 10.0.0.3
    - /service/tinydns/root# make
  - test lookup of local hostnames, e.g.:
    - # dnsipq server.example.net
      # server.example.net 10.0.0.1 
    => seems to work
    => clients can lookup internal hosts, too
    
3: Set up external cache (to lookup external hosts):
  - # dnscache-conf dnscache dnslog /etc/dnscachex 10.0.0.1
  - # ln -s /etc/dnscachex /service
  - # touch /etc/dnscachex/root/ip/10
  - test lookup of external hostnames, e.g.:
    - # dnsipq www.heise.de
      # www.heise.de 193.99.144.71
    => seems to work
    => clients can lookup external hosts, too
    => BUT: local hosts are not looked up correctly anymore:
       - # dnsipq server.example.net
         # server.example.net 11.22.33.44
	 => as "example.net" is an 'existing' domainname,
	 server.example.net is looked up externally and gives me the IP
	 address of "example.net".
  - According to the docs, I created
    /etc/dnscachex/root/servers/example.net with "10.0.0.1" in it. Now I
    get a timeout when I try to lookup hosts in that domain.

Any hints about what I am missing? Thanks in advance!

[1] My network: 10.0.0.0/24, domain example.net
-- 
Haesslichst: http://tammen.net/jt/



Reply to: