---
name: pdnsd
version: 1.2.9a
origin: dns/pdnsd
comment: Caching (permanently, writes to disk on exit) DNS proxy-server
arch: freebsd:9:x86:64
www: http://members.home.nl/p.a.rombouts/pdnsd/
maintainer: ashish@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv3]
flatsize: 630907
desc: |
  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 unreachable 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 behavior, 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 behavior.
  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://members.home.nl/p.a.rombouts/pdnsd/
categories: [ipv6, dns]
options: {DOCS: on, IPV6: on}
files:
  /usr/local/etc/pdnsd.conf.sample: 8ec5ecc47e27728ee1c7878ae92b3e98c7f4ffafd525d21d32a6b0af4c640e86
  /usr/local/etc/rc.d/pdnsd: 63d828b73e0f3b32ca341f8e2acf0b6d181cd9dcd6f5c6d6a475cde8a025ba0a
  /usr/local/man/man5/pdnsd.conf.5.gz: d56ca125b66eb4b66d6a68bf2e2becbde0ebc750cc2e244cb162d54d3b36074f
  /usr/local/man/man8/pdnsd-ctl.8.gz: 28e37902714a9721fc9a238776b7121f9296e42ef115b4d9368cfeeeab8ebbf7
  /usr/local/man/man8/pdnsd.8.gz: 6ce86827c22af502ae8e1b3a32f8f29292b2062ee32375088c479001ba44b4ed
  /usr/local/sbin/pdnsd: b54c795f2ba0f85c7b456ab67f53e13046066c1db5446dc01eb57a2b77aa3c96
  /usr/local/sbin/pdnsd-ctl: 20cf6ddc4f547d722aff0a6a26292caeaabbb58c23a1a7f00e18bf6eaa724b3e
  /usr/local/share/doc/pdnsd/dl.html: 0e48873585b317c4c2d14553c936add3ceac926c6fe38d609c4740b6a9d0a338
  /usr/local/share/doc/pdnsd/doc.html: f1b59a609056c7d21f87498f1f1e5a3da433bb9ef45c64f393fea6e560e6f794
  /usr/local/share/doc/pdnsd/faq.html: c097f456501c8f21e262a66e502507aa21206e137bc2d80da4fed5daa00e676a
  /usr/local/share/doc/pdnsd/faq.txt: a8ea0b072681170316d47c67990dd191ee457bc9d6fa1e42c59db8b8ace55d58
  /usr/local/share/doc/pdnsd/index.html: 31e1ccd2057cbaa1c85f68573994f60ca40c1e289c4e4481c848150827234853
  /usr/local/share/doc/pdnsd/intro.txt: 8e6c3693ec3df32bdc0fe9472827f0d1d86bb766685c85a1baa56d7c8a811924
  /usr/local/share/doc/pdnsd/manual.txt: b7aa700e672869ad12016b6ff7e6b8a10646b2ca5c258c47be816ea580f19a78
  /usr/local/share/licenses/pdnsd-1.2.9a/GPLv3: 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903
  /usr/local/share/licenses/pdnsd-1.2.9a/LICENSE: feb018c22cc4001bbeccc04db5569c5aeaec18f1ebbee51a52d56c251418e243
  /usr/local/share/licenses/pdnsd-1.2.9a/catalog.mk: 1063250c674d110a8aae7bf0e8bc56833d9ea3ae5e090fca28a40f7a35c5910c
directories:
  /usr/local/share/licenses/pdnsd-1.2.9a/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/pdnsd/: n
scripts:
  post-install: |
    [ -f /usr/local/etc/pdnsd.conf ] || install -m 644 /usr/local/etc/pdnsd.conf.sample /usr/local/etc/pdnsd.conf
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/pdnsd.conf /usr/local/etc/pdnsd.conf.sample; then rm /usr/local/etc/pdnsd.conf; fi
    rm -rf /var/db/pdnsd 2>&1 >/dev/null || true
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
  install: |
    #!/bin/sh
    PDNSDB=/var/db/pdnsd

    mkdir -p ${PDNSDB}
    chown nobody ${PDNSDB}
    chmod 755 ${PDNSDB}
    truncate -s 4 ${PDNSDB}
    chown nobody ${PDNSDB}/pdnsd.cache
    chmod 640 ${PDNSDB}/pdnsd.cache
message: |2

  You'll need to manually copy ${PREFIX}/etc/pdnsd.conf.sample to
  ${PREFIX}/etc/pdnsd.conf and modify it for your needs.
