I've know this has been covered before, but I'm still having trouble
setting up djbdns after reading a couple guides and all the relevant
posts here.
Here's what I want to do:
I want the server to run dns for my domain name, say mydomain.ca
server (192.168.1.2) ->
(a.mydomain.ca)
desktop(192.168.1.3) -> router (192.168.1.1) -> broadband (24.x.y.z)
(b.mydomain.ca) internet
laptop (192.168.1.4) ->
(c.mydomain.ca)
>From what I've read I should setup:
dnscache - to serve as a cache for my internal network (192.168.1)
dnscachex - to serve as a cache for my domain name to the outside world
tinydns - to serve as a name server for my internal network and the
outside world
I think my main problem is using the wrong address in different parts,
and right know I have multiple services listening on one port:
# netstat -nlp | grep udp | grep 53
udp 0 0 192.168.1.2:53
0.0.0.0:* 20012/dnscache
udp 0 0 127.0.0.1:53
0.0.0.0:* 20010/dnscache
udp 0 0 192.168.1.2:53
0.0.0.0:* 20008/tinydns
=============
dnscache setup:
# cat /etc/dnscache/env/IP
127.0.0.1
# ls -l /etc/dnscache/root/ip/
total 0
-rw------- 1 root root 0 Dec 18 02:07 127.0.0.1
-rw-r--r-- 1 root root 0 Dec 19 12:52 192.168.1
# ls -l /etc/dnscache/root/servers/
total 12
-rw-r--r-- 1 root root 164 Dec 18 02:07 @
-rw-r--r-- 1 root root 12 Dec 19 02:05
1.168.192.in-addr.arpa
-rw-r--r-- 1 root root 12 Dec 19 02:06 mydomain.ca
# cat /etc/dnscache/root/servers/mydomain.ca
127.0.0.1
# cat /etc/dnscache/root/servers/1.168.192.in-addr.arpa
127.0.0.1
=============
dnscachex setup:
# cat /etc/dnscachex/env/IP
192.168.1.2
# ls -l /etc/dnscachex/root/ip/
total 0
-rw------- 1 root root 0 Dec 19 13:08 @
-rw------- 1 root root 0 Dec 18 02:20 127.0.0.1
# ls -l /etc/dnscachex/root/servers/
total 8
-rw-r--r-- 2 root root 10 Dec 18 12:26
1.168.192.in-addr.arpa
-rw-r--r-- 2 root root 10 Dec 18 12:26 mydomain.ca
# cat /etc/dnscachex/root/servers/mydomain.ca
127.0.0.1
# cat /etc/dnscachex/root/servers/1.168.192.in-addr.arpa
127.0.0.1
=============
tinydns setup:
# cat /etc/tinydns/env/IP
192.168.1.2
# cat /etc/tinydns/root/data
# Network regions
%IN:192.168.1
%EX
# Computers
=a.mydomain.ca:192.168.1.2:86400::IN
=a.mydomain.ca:24.43.56.163:86400::EX
# Nameservers
+ns1.mydomain.ca:192.168.1.2:86400::IN
+ns1.mydomain.ca:24.43.56.163:86400::EX
# Reverse DNS lookup
.1.168.192.in-addr.arpa::ns1.mydomain.ca
.56.43.24.in-addr.arpa::ns1.mydomain.ca::IN
.56.43.24.in-addr.arpa::ns1.mydomain.ca::EX
# Hosts
.mydomain.ca::ns1.mydomain.ca:86400
+www.mydomain.ca:192.168.1.2:86400::IN
+www.mydomain.ca:24.43.56.163:86500::EX
=========
# cat /etc/resolv.conf
domain mydomain.ca
nameserver 127.0.0.1
nameserver 192.168.1.2
Tom
--
[EMAIL PROTECTED] mailing list