Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2003 04:31:49 +0200
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        "Vahric MUHTARYAN" <vahric@doruk.net.tr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: djbdns
Message-ID:  <20031230043149.73c3dddd@it.buh.cameradicommercio.ro>
In-Reply-To: <200312300225.hBU2PQsi030000@smtp.doruk.net.tr>
References:  <20031230034953.36866d74@it.buh.cameradicommercio.ro> <200312300225.hBU2PQsi030000@smtp.doruk.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Dec 2003 04:03:35 +0200
"Vahric MUHTARYAN" <vahric@doruk.net.tr> wrote:

> I'm using FreeBSD 4.9 
> 
> I red this link http://cr.yp.to/djbdns/run-cache-x.html

ok

> I created Gdnscache and Gdnslog users 

ok
 
> dnscache-conf Gdnscache Gdnslog /etc/dnscache 192.168.0.1 
> 
> ( Which mydns is working same with same ip ) 

I don't know if I understand you correctly here; This means that
dnscache will listen on ip 192.168.0.1 port 53 both udp and tcp.
 
> ln -s /etc/dnscache /service

ok ... or not, see below.
 
> touch /etc/dnscache/root/ip/192.168.0

so it will answer to queries from 192.168.0.1/24
 
> nameserver 192.168.0.1

in /etc/resolv.conf
Just checking: 192.168.0.1 is on the machine you are running dnscache,
right ?

> But it's not working ... 
> 
> I cant find /service/dnscache because with tihs configuration no
> dnscahce linked to service directory 

?
Take a look at /usr/local/etc/rc.d/svscan.sh.sample 

1. SVDIR=/var/service/ - so svscan will look at /var/service and not
/service; either do:
a) what is suggested and use /var/services (e.g. ln -s /etc/dnscache
/var/service) or 
b) change SVDIR=/var/service/ to SVDIR=/service/

I would use a); also note that creating the log file in /etc/dnscache is
IMHO a bad idea.


2. 
# cp /usr/local/etc/rc.d/svscan.sh.sample /usr/local/etc/rc.d/svscan.sh
# /usr/local/etc/rc.d/svscan.sh start
# svstatus /var/services/dnscache
# svstatus /var/services/dnscache/log
# dnsip www.freebsd.org

> I tried this configuration with 127.0.0.1 but it's not working .. 

If you put 127.0.0.1 in /etc/resolv.conf with this configuration it
won't work.
 
> I'm using MyDNS but it's not support -Non Auth. Answer .... But I need
> recursive query some times 

Please elaborate, I do not understand.


-- 
IOnut
Unregistered ;) FreeBSD user



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031230043149.73c3dddd>