From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 18:30:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE49416A4CE for ; Mon, 29 Dec 2003 18:30:40 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6746E43D46 for ; Mon, 29 Dec 2003 18:30:38 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 12904 invoked from network); 30 Dec 2003 02:30:37 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 30 Dec 2003 02:30:37 -0000 Date: Tue, 30 Dec 2003 04:31:49 +0200 From: Ion-Mihai Tetcu To: "Vahric MUHTARYAN" 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> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: djbdns X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 02:30:41 -0000 On Tue, 30 Dec 2003 04:03:35 +0200 "Vahric MUHTARYAN" 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