Bug 22963 - NEW PORT: net/pdnsd - cacheing only name server
Summary: NEW PORT: net/pdnsd - cacheing only name server
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-19 22:30 UTC by Roman Shterenzon
Modified: 2000-12-14 03:28 UTC (History)
0 users

See Also:


Attachments
file.shar (3.57 KB, text/plain)
2000-11-19 22:30 UTC, Roman Shterenzon
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Shterenzon 2000-11-19 22:30:01 UTC
(This "beta" version contains all FreeBSD fixes I've sent the author)

pdnsd is a proxy dns server with permanent caching (the cache contents are
written to hard disk on exit) that is designed to cope with unreacheable or
down dns servers (for example in dial-in networking).
pdnsd can be used with applications that do dns lookups, eg on startup, and
can't be configured to change that behaviour, to prevent the often minute-long
hangs (or even crashes) that result from stalled dns queries. Some Netscape
Navigator versions for Unix, for example, expose this behaviour.
pdnsd is configurable via a file and supports run-time configuration using the
program pdnsd-ctl that comes with pdnsd. This allows you to set the status
flags of servers that pdnsd knows (to influence which servers pdnsd will
query), and the addition, deletion and invalidation of DNS records in pdnsd's
cache.
Parallel name server queries are supported. This is a technique that allows
querying several servers at the same time so that very slow or unavailable
servers will not block the answer for one timeout interval.
Since version 1.0.0, pdnsd has full IPv6 support.

WWW: http://home.t-online.de/home/Moestl/
Comment 1 Roman Shterenzon 2000-11-19 22:56:06 UTC
oops :(
As usual, noticed it too late.
The package doesn't create /var/db/pdnsd .. I'll use pkg-install then.

diff -urN pdnsd.orig/Makefile pdnsd/Makefile
--- pdnsd.orig/Makefile	Mon Nov 20 00:53:27 2000
+++ pdnsd/Makefile	Mon Nov 20 00:44:13 2000
@@ -13,7 +13,9 @@
 MAINTAINER=	roman@xpert.com
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-cachedir=/var/db/pdnsd
+CONFIGURE_ARGS=	--with-cachedir=${PDNSDB}
+
+PDNSDB=		/var/db/pdnsd
 
 post-install:
 	@${MKDIR} ${PREFIX}/etc/rc.d
diff -urN pdnsd.orig/pkg-install pdnsd/pkg-install
--- pdnsd.orig/pkg-install	Thu Jan  1 02:00:00 1970
+++ pdnsd/pkg-install	Mon Nov 20 00:52:16 2000
@@ -0,0 +1,9 @@
+#!/bin/sh
+PDNSDB=/var/db/pdnsd
+
+mkdir -p ${PDNSDB}
+chown nobody ${PDNSDB}
+chmod 755 ${PDNSDB}
+dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1
+chown nobody ${PDNSDB}/pdnsd.cache
+chmod 640 ${PDNSDB}/pdnsd.cache


--Roman Shterenzon, UNIX System Administrator and Consultant
[ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ]
Comment 2 jeh freebsd_committer freebsd_triage 2000-12-14 03:27:46 UTC
State Changed
From-To: open->closed

Committed.  Thanks.