debian/0000775000000000000000000000000012520456350007172 5ustar debian/pdns-backend-pgsql.install0000664000000000000000000000071012271304440014230 0ustar debian/tmp/usr/lib/powerdns/libgpgsqlbackend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libgpgsqlbackend.a usr/lib/powerdns/ debian/sql/pgsql/pgsql usr/share/dbconfig-common/data/pdns-backend-pgsql/install/ debian/sql/pgsql/3.0-1 usr/share/dbconfig-common/data/pdns-backend-pgsql/upgrade/pgsql/ debian/sql/pgsql/3.3-1 usr/share/dbconfig-common/data/pdns-backend-pgsql/upgrade/pgsql/ debian/config/pdns.local.gpgsql.conf usr/share/pdns-backend-pgsql debian/pdns-backend-sqlite3.prerm0000664000000000000000000000060112271304440014144 0ustar #!/bin/sh # # Pre removal set -e # Execute dbconfig-common . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.sqlite3 dbc_go pdns-backend-sqlite3 $@ # Stop pdns. if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/config/0000775000000000000000000000000012271307277010445 5ustar debian/config/pdns.local.gsqlite3.conf0000664000000000000000000000023112271307277015077 0ustar # Configuration for gsqlite # # Launch gsqlite3 launch=gsqlite3 # Database location gsqlite3-database=/var/lib/powerdns/pdns.sqlite3 gsqlite3-dnssec=on debian/config/pdns.simplebind.conf0000664000000000000000000000006712271304440014375 0ustar launch=bind bind-config=/etc/powerdns/bindbackend.conf debian/config/pdns.local.ldap.conf0000664000000000000000000000014012271304440014250 0ustar # LDAP Configuration # # ldap-host= # ldap-method= # ldap-basedn= # ldap-binddn= # ldap-secret= debian/config/pdns.local.pipe.conf0000664000000000000000000000012212271304440014265 0ustar # Configuration for pipe backend # # pipe-command= # pipe-timeout= # pipe-regex= debian/config/pdns.local.lua.conf0000664000000000000000000000111012271304440014107 0ustar # Configuration for the lua backend #lua-filename = powerdns-luabackend.lua #lua-logging-query = no # You can also override all the default functionsnames for the luafunctions if you # want. The prefix is lua-f_=mynewfunction. For example: #lua-f_lookup = mynewfunction # # will call the function 'mynewfunction' for the lookup-routine. # # If you want your own configuration parameters you can have that too. # Just call the function getarg("my_parameter") and it will return the value # of 'lua-my_parameter'. For boolean you use the function mustdo("my_parameter"). debian/config/pdns.local.geo.conf0000664000000000000000000000030612271304440014106 0ustar # geo Configuration # # See for more information /usr/share/doc/pdns-backend-geo/README # # geo-zone= # geo-soa-values= # geo-ns-records= # geo-ttl= # geo-ns-ttl= # geo-ip-map-zonefile= # geo-maps= debian/config/pdns.local.gpgsql.conf0000664000000000000000000000035712271307277014652 0ustar # PostgreSQL Configuration # # Launch gpgsql backend launch=gpgsql # gpgsql parameters gpgsql-host=_DBC_DBSERVER_ gpgsql-port=_DBC_DBPORT_ gpgsql-dbname=_DBC_DBNAME_ gpgsql-user=_DBC_DBUSER_ gpgsql-password=_DBC_DBPASS_ gpgsql-dnssec=yes debian/config/pdns.conf0000664000000000000000000001617012271304440012252 0ustar # Autogenerated configuration file template ################################# # allow-axfr-ips If enabled, restrict zonetransfers to originate from these # IP addresses # # allow-axfr-ips= ################################# # allow-recursion List of netmasks that are allowed to recurse # # allow-recursion= ################################# # allow-recursion-override Local data even about hosts that don't exist will # override the internet. (on/off) # # allow-recursion-override= ################################# # cache-ttl Seconds to store packets in the PacketCache # # cache-ttl=20 ################################# # chroot If set, chroot to this directory for more security # # chroot=/var/spool/powerdns ################################# # config-dir Location of configuration directory (pdns.conf) # config-dir=/etc/powerdns ################################# # config-name Name of this virtual configuration - will rename the binary image # # config-name= ################################# # control-console Debugging switch - don't use # # control-console=no ################################# # daemon Operate as a daemon # daemon=yes ################################# # default-soa-name name to insert in the SOA record if none set in the backend # # default-soa-name=a.misconfigured.powerdns.server ################################# # disable-axfr Disable zonetransfers but do allow TCP queries # disable-axfr=yes ################################# # disable-tcp Do not listen to TCP queries # # disable-tcp=no ################################# # distributor-threads Default number of Distributor (backend) threads to start # # distributor-threads=3 ################################# # fancy-records Process URL and MBOXFW records # # fancy-records=no ################################# # guardian Run within a guardian process # guardian=yes ################################# # launch Which backends to launch and order to query them in # # launch= ################################# # load-modules Load this module - supply absolute or relative path # # load-modules= ################################# # local-address Local IP address to which we bind # local-address=0.0.0.0 ################################# # local-ipv6 Local IP address to which we bind # # local-ipv6= ################################# # local-port The port on which we listen # local-port=53 ################################# # log-dns-details If PDNS should log failed update requests # # log-dns-details= ################################# # log-failed-updates If PDNS should log failed update requests # # log-failed-updates= ################################# # logfile Logfile to use # # logfile=/var/log/pdns.log ################################# # logging-facility Log under a specific facility # # logging-facility= ################################# # loglevel Amount of logging. Higher is more. Do not set below 3 # # loglevel=4 ################################# # master Act as a master # # master=no ################################# # max-queue-length Maximum queuelength before considering situation lost # # max-queue-length=5000 ################################# # max-tcp-connections Maximum number of TCP connections # # max-tcp-connections=10 ################################# # module-dir Default directory for modules # module-dir=/usr/lib/powerdns ################################# # negquery-cache-ttl Seconds to store packets in the PacketCache # # negquery-cache-ttl=60 ################################# # out-of-zone-additional-processing Do out of zone additional processing # # out-of-zone-additional-processing=no ################################# # query-cache-ttl Seconds to store packets in the PacketCache # # query-cache-ttl=20 ################################# # query-logging Hint backends that queries should be logged # # query-logging=no ################################# # queue-limit Maximum number of milliseconds to queue a query # # queue-limit=1500 ################################# # query-local-address The IP address to use as a source address for sending # queries. # query-local-address= ################################# # receiver-threads Number of receiver threads to launch # # receiver-threads=1 ################################# # recursive-cache-ttl Seconds to store packets in the PacketCache # # recursive-cache-ttl=10 ################################# # recursor If recursion is desired, IP address of a recursing nameserver # # recursor= ################################# # setgid If set, change group id to this gid for more security # setgid=pdns ################################# # setuid If set, change user id to this uid for more security # setuid=pdns ################################# # skip-cname Do not perform CNAME indirection for each query # # skip-cname=no ################################# # slave Act as a slave # # slave=no ################################# # slave-cycle-interval Reschedule failed SOA serial checks once every .. seconds # # slave-cycle-interval=60 ################################# # smtpredirector Our smtpredir MX host # # smtpredirector=a.misconfigured.powerdns.smtp.server ################################# # soa-minimum-ttl Default SOA mininum ttl # # soa-minimum-ttl=3600 ################################# # soa-refresh-default Default SOA refresh # # soa-refresh-default=10800 ################################# # soa-retry-default Default SOA retry # # soa-retry-default=3600 ################################# # soa-expire-default Default SOA expire # # soa-expire-default=604800 ################################# # soa-serial-offset Make sure that no SOA serial is less than this number # # soa-serial-offset=0 ################################# # socket-dir Where the controlsocket will live # socket-dir=/var/run ################################# # strict-rfc-axfrs Perform strictly rfc compliant axfrs (very slow) # # strict-rfc-axfrs=no ################################# # urlredirector Where we send hosts to that need to be url redirected # # urlredirector=127.0.0.1 ################################# # use-logfile Use a log file # # use-logfile=yes ################################# # webserver Start a webserver for monitoring # # webserver=no ################################# # webserver-address IP Address of webserver to listen on # # webserver-address=127.0.0.1 ################################# # webserver-password Password required for accessing the webserver # # webserver-password= ################################# # webserver-port Port of webserver to listen on # # webserver-port=8081 ################################# # webserver-print-arguments If the webserver should print arguments # # webserver-print-arguments=no ################################# # wildcard-url Process URL and MBOXFW records # # wildcard-url=no ################################# # wildcards Honor wildcards in the database # # wildcards= ################################# # version-string What should PowerDNS return for version # allowed methods are anonymous / powerdns / full / custom version-string=powerdns include-dir=/etc/powerdns/pdns.d debian/config/pdns.local.gmysql.conf0000664000000000000000000000037312271307277014667 0ustar # MySQL Configuration # # Launch gmysql backend launch=gmysql # gmysql parameters gmysql-host=_DBC_DBSERVER_ gmysql-port=_DBC_DBPORT_ gmysql-dbname=_DBC_DBNAME_ gmysql-user=_DBC_DBUSER_ gmysql-password=_DBC_DBPASS_ gmysql-dnssec=yes # gmysql-socket= debian/config/pdns.local.conf0000664000000000000000000000015012271304440013332 0ustar # Here come the local changes the user made, like configuration of # the several backends that exist. debian/config/pdns0000664000000000000000000000041512271304440011321 0ustar # Variables for PowerDNS # If you have resolvconf installed, you can enable the following to have # resolvconf update an recursor line in the pdns config, as determined by # resolvconf. RESOLVCONF_UPDATE_FORWARDERS=no # Arguments to the started daemon DAEMON_ARGS="" debian/config/pdns.local.bind.conf0000664000000000000000000000056512271304440014257 0ustar # Bind backend configuration # Location of the Bind configuration file to parse. # bind-config=/etc/bind/named.conf.local # How often to check for zone changes. See 'Operation' section. # bind-check-interval= # Uncomment to enable Huffman compression on zone data. # Currently saves around 20% of memory actually used, but slows down operation. # bind-enable-huffman debian/config/dnsdomain2.schema0000664000000000000000000001476012271304440013662 0ustar # A schema for storing DNS zones in LDAP # # ORDERING is not necessary, and some servers don't support # integerOrderingMatch. Omit or change if you like attributetype ( 1.3.6.1.4.1.2428.20.0.0 NAME 'dNSTTL' DESC 'An integer denoting time to live' EQUALITY integerMatch ORDERING integerOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 ) attributetype ( 1.3.6.1.4.1.2428.20.0.1 NAME 'dNSClass' DESC 'The class of a resource record' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.11 NAME 'wKSRecord' DESC 'a well known service description, RFC 1035' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.12 NAME 'pTRRecord' DESC 'domain name pointer, RFC 1035' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.13 NAME 'hInfoRecord' DESC 'host information, RFC 1035' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.14 NAME 'mInfoRecord' DESC 'mailbox or mail list information, RFC 1035' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.16 NAME 'tXTRecord' DESC 'text string, RFC 1035' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.17 NAME 'rPRecord' DESC 'for Responsible Person, RFC 1183' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.18 NAME 'aFSDBRecord' DESC 'for AFS Data Base location, RFC 1183' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.24 NAME 'SigRecord' DESC 'Signature, RFC 2535' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.25 NAME 'KeyRecord' DESC 'Key, RFC 2535' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.27 NAME 'gPosRecord' DESC 'Geographical Position, RFC 1712' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.28 NAME 'aAAARecord' DESC 'IPv6 address, RFC 1886' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.29 NAME 'LocRecord' DESC 'Location, RFC 1876' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.30 NAME 'nXTRecord' DESC 'non-existant, RFC 2535' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.33 NAME 'sRVRecord' DESC 'service location, RFC 2782' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.35 NAME 'nAPTRRecord' DESC 'Naming Authority Pointer, RFC 2915' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.36 NAME 'kXRecord' DESC 'Key Exchange Delegation, RFC 2230' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.37 NAME 'certRecord' DESC 'certificate, RFC 2538' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.38 NAME 'a6Record' DESC 'A6 Record Type, RFC 2874' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.39 NAME 'dNameRecord' DESC 'Non-Terminal DNS Name Redirection, RFC 2672' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.42 NAME 'aPLRecord' DESC 'Lists of Address Prefixes, RFC 3123' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.43 NAME 'dSRecord' DESC 'Delegation Signer, RFC 3658' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.44 NAME 'sSHFPRecord' DESC 'SSH Key Fingerprint, RFC 4255' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.45 NAME 'iPSecKeyRecord' DESC 'SSH Key Fingerprint, RFC 4025' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.46 NAME 'rRSIGRecord' DESC 'RRSIG, RFC 3755' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.47 NAME 'nSECRecord' DESC 'NSEC, RFC 3755' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.48 NAME 'dNSKeyRecord' DESC 'DNSKEY, RFC 3755' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.49 NAME 'dHCIDRecord' DESC 'DHCID, RFC 4701' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) attributetype ( 1.3.6.1.4.1.2428.20.1.99 NAME 'sPFRecord' DESC 'Sender Policy Framework, RFC 4408' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) objectclass ( 1.3.6.1.4.1.2428.20.2 NAME 'dNSDomain2' SUP 'dNSDomain' STRUCTURAL MAY ( DNSTTL $ DNSClass $ WKSRecord $ PTRRecord $ HINFORecord $ MINFORecord $ TXTRecord $ RPRecord $ AFSDBRecord $ SIGRecord $ KEYRecord $ GPOSRecord $ AAAARecord $ LOCRecord $ NXTRecord $ SRVRecord $ NAPTRRecord $ KXRecord $ CERTRecord $ A6Record $ DNAMERecord $ APLRecord $ DSRecord $ SSHFPRecord $ IPSECKEYRecord $ RRSIGRecord $ NSECRecord $ DNSKEYRecord $ DHCIDRecord $ SPFRecord ) ) debian/pdns-backend-geo.examples0000664000000000000000000000004212271304440014022 0ustar debian/config/pdns.local.geo.conf debian/control0000664000000000000000000001410012520456215010571 0ustar Source: pdns Section: net Priority: extra Standards-Version: 3.9.5 Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian PowerDNS Maintainers Uploaders: Matthijs Möhlmann , Marc Haber , Christian Hofstaedtler Build-Depends: debhelper (>= 9~), dh-autoreconf, po-debconf, libtool, flex, bison, libmysqlclient-dev, libpq-dev, libssl-dev, libpolarssl-dev, libgdbm-dev, libldap2-dev, libsqlite3-dev, dpkg-dev (>= 1.10.17), libboost-dev, libboost-serialization-dev, libboost-program-options-dev, libboost-test-dev, autotools-dev, automake, autoconf, liblua5.1-0-dev, pkg-config, libcrypto++-dev, ragel, libpolarssl-dev, libgmp-dev, libbotan1.10-dev Vcs-Git: git://git.debian.org/pkg-pdns/pdns.git Vcs-Browser: http://git.debian.org/?p=pkg-pdns/pdns.git Homepage: http://www.powerdns.com/ Package: pdns-server Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ucf (>= 0.28), adduser, lsb-base (>= 3.2-14) Replaces: pdns Suggests: pdns-backend, pdns-recursor Description: extremely powerful and versatile nameserver PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This is the authoritative nameserver that answers questions about domains that it knows about. It also includes the bind backend that allows PowerDNS to retrieve domain info from zone files as used by the "bind" software. Package: pdns-server-dbg Section: debug Architecture: any Priority: extra Depends: pdns-server (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains debugging symbols for PowerDNS to assist in debugging, such as gdb. It is not required for normal operation. Package: pdns-backend-pipe Architecture: any Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Provides: pdns-backend Description: pipe/coprocess backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains the pipe backend for the PowerDNS nameserver. This allows PowerDNS to retrieve domain info from a process that accepts questions on stdin and returns answers on stdout. Package: pdns-backend-ldap Architecture: any Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Provides: pdns-backend Description: LDAP backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains an LDAP backend for the PowerDNS nameserver. Package: pdns-backend-geo Architecture: any Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Provides: pdns-backend Description: geo backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains a geobackend for the PowerDNS nameserver. This backend balances the load throughout the world so that people access the geographically nearest available server. Package: pdns-backend-mysql Architecture: any Depends: pdns-server (>= ${source:Version}), ucf (>= 0.28), ${shlibs:Depends}, ${misc:Depends}, dbconfig-common Recommends: mysql-client Suggests: mysql-server Provides: pdns-backend Description: generic MySQL backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains a generic MySQL backend for the PowerDNS nameserver. It has configurable SQL statements. Package: pdns-backend-pgsql Architecture: any Depends: pdns-server (>= ${source:Version}), ucf (>= 0.28), ${shlibs:Depends}, ${misc:Depends}, dbconfig-common Recommends: postgresql-client Suggests: postgresql Provides: pdns-backend Description: generic PostgreSQL backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains a generic PostgreSQL backend for the PowerDNS nameserver. It has configurable SQL statements. Package: pdns-backend-sqlite3 Architecture: any Depends: pdns-server (>= ${source:Version}), ucf (>= 0.28), ${shlibs:Depends}, ${misc:Depends}, sqlite3, dbconfig-common Provides: pdns-backend Description: sqlite 3 backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains a generic SQLite 3 backend for PowerDNS. Package: pdns-backend-lua Architecture: any Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} Provides: pdns-backend Description: lua backend for PowerDNS PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. PowerDNS tries to emphasize speed and security. . This package contains a lua backend for PowerDNS. debian/pdns-backend-mysql.install0000664000000000000000000000056012271304440014252 0ustar debian/tmp/usr/lib/powerdns/libgmysqlbackend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libgmysqlbackend.a usr/lib/powerdns/ debian/sql/mysql/mysql usr/share/dbconfig-common/data/pdns-backend-mysql/install/ debian/sql/mysql/3.0-1 usr/share/dbconfig-common/data/pdns-backend-mysql/upgrade/mysql/ debian/config/pdns.local.gmysql.conf usr/share/pdns-backend-mysql debian/README.source0000664000000000000000000000004712271304440011345 0ustar See /usr/share/doc/quilt/README.source debian/pdns-backend-pgsql.README.Debian0000664000000000000000000000206512271304440014705 0ustar Instructions on setting up PostgreSQL as a backend for PowerDNS --------------------------------------------------------------- PowerDNS uses dbconfig-common. The database backends offer you to automatically create and maintain the databases for you. If you choose yes, you're fine, no more action needed. Should you decide to create your databases yourself, for example, if you decide to use a non-standard schema, please find the database schema recommended by Upstream for PostgreSQL in /usr/share/dbconfig-common/data/pdns-backend-pgsql/install/pgsql Just create a database using 'createdb' (for example named pdns) and then feed these SQL commands to PostgreSQL to get some defaults to start with: psql -h -U -f /usr/share/dbconfig-common/data/pdns-backend-pgsql/install/pgsql Then add your data to the database. *** SSL WARNING *** Please note that SSL connections to a PostgreSQL database currently do not work when PowerDNS is run chrooted because PowerDNS cannot access the libssl library from within the chroot. *** SSL WARNING *** debian/pdns-backend-pipe.prerm0000664000000000000000000000024412271304440013520 0ustar #!/bin/sh # # Add call to init script to actually stop pdns. set -e if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi #DEBHELPER# exit 0 debian/pdns-backend-pipe.install0000664000000000000000000000020012271304440014031 0ustar debian/tmp/usr/lib/powerdns/libpipebackend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libpipebackend.a usr/lib/powerdns/ debian/pdns-backend-pgsql.postinst0000664000000000000000000000411312271304440014446 0ustar #!/bin/sh # # postinst script for pdns-backend-pgsql set -e # Execute dbconfig-common . /usr/share/debconf/confmodule if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-backend-pgsql" # rename ucf-conffile. This was mostly stolen from cacti.postinst after # a short discussion on debian-mentors, see # http://lists.debian.org/debian-mentors/2013/07/msg00027.html # and the following thread. Thanks to Paul Gevers renameconffile() { oldname="$1" newname="$2" sourcefile="$3" if [ -f $oldname ] ; then if [ ! -e $newname ] ; then mv $oldname $newname # else: Don't do anything, leave old file in place fi ucf --purge $oldname ucfr --purge $PKGNAME $oldname elif [ ! -e $newname ] ; then # The file was removed, we should respect that. Unfortunately, we don't # have a proper way to tell ucf that for the new location, so we need # to hack it a bit. # We only need to do this if the target does not already exist. If the # target already exists, we can later call ucf straight as there # is already a version of the file available, althought never # provided by this package, but we can just propose the new file anyway. ucf --debconf-ok $sourcefile $newname ucfr $PKGNAME $newname rm -f $newname fi } if [ "$1" = "configure" ]; then if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then renameconffile /etc/powerdns/pdns.d/pdns.local.gpgsql /etc/powerdns/pdns.d/pdns.local.gpgsql.conf /dev/null fi fi . /usr/share/dbconfig-common/dpkg/postinst.pgsql dbc_first_version="3.0-1" dbc_pgsql_createdb_encoding="UTF8" dbc_generate_include_args="-o template_infile=/usr/share/pdns-backend-pgsql/pdns.local.gpgsql.conf" dbc_generate_include=template:/etc/powerdns/pdns.d/pdns.local.gpgsql.conf dbc_generate_include_owner=pdns dbc_generate_include_perms=0640 dbc_go pdns-backend-pgsql $@ # Activate trigger dpkg-trigger pdns-server ucfr $PKGNAME /etc/powerdns/pdns.d/pdns.local.gpgsql.conf # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/po/0000775000000000000000000000000012271304440007603 5ustar debian/po/nl.po0000664000000000000000000000517012271304440010557 0ustar # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: pdns 2.9.18-2\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2006-05-11 21:38+0200\n" "Last-Translator: Matthijs Mohlmann \n" "Language-Team: Debian l10n Dutch \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP-adres waar PowerDNS op moet luisteren:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Als u meerdere IP-adressen heeft, dan is het standaard gedrag om op alle " "adressen te luisteren. Dat kan als gevolg kan hebben dat het OS het " "verkeerde IP-adres kiest voor uitgaande pakketten. Daarom is het aan te " "raden om PowerDNS op een specifiek IP-adres te laten luisteren." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Subnetten vanwaar recursieve query's worden uitgevoerd:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Voer hier, gescheiden door komma's, de subnetten in die recursieve query's " "mogen uitvoeren. Toegestane waarden zijn 127.0.0.1 voor een IP-adres en " "192.168.0.0/24 voor een subnet." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Wilt u PowerDNS automatisch laten starten?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Als u bevestigend antwoordt op deze dialoog, dan zal er een opstartscript " #~ "gebruikt worden om PowerDNS automatisch te starten." debian/po/pt_BR.po0000664000000000000000000000461412271304440011156 0ustar # Debconf translations for pdns. # Copyright (C) 2011 THE pdns'S COPYRIGHT HOLDER # This file is distributed under the same license as the pdns package. # Adriano Rafael Gomes , 2011, 2013. # msgid "" msgstr "" "Project-Id-Version: pdns 3.1-4\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2013-07-20 18:21-0300\n" "Last-Translator: Adriano Rafael Gomes \n" "Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "Endereço IP onde o PowerDNS deverá escutar:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Se você tiver múltiplos IPs, o comportamento padrão de escutar em todos os " "endereços pode fazer com que o SO selecione o IP errado para a saída dos " "pacotes, assim, é recomendado que o PowerDNS escute em um IP específico aqui." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Lista de sub-redes às quais é permitido usar recursão:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Informe aqui, separadas por vírgulas, as sub-redes às quais é permitido usar " "recursão. Valores permitidos são, por exemplo, 127.0.0.1 para um endereço IP " "e 192.168.0.0/24 para uma sub-rede." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Você quer iniciar o servidor PowerDNS automaticamente?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Se você aceitar aqui, um script de inicialização será usado para iniciar " #~ "automaticamente o servidor de nomes autoritativo PowerDNS." debian/po/es.po0000664000000000000000000000621312271304440010554 0ustar # pdns po-debconf translation to Spanish # Copyright (C) 2008 Software in the Public Interest # This file is distributed under the same license as the pdns package. # # Changes: # - Initial translation # Alba Ferri Fitó , 2008 # - Updates # Alba Ferri Fitó , 2008 # # Traductores, si no conoce el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor, lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # # msgid "" msgstr "" "Project-Id-Version: pdns_2.9.21.1.0-1\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2008-26-11 04:36+0200\n" "Last-Translator: Alba Ferri \n" "Language-Team: Spanish \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "Dirección IP en la que debe escuchar PowerDNS:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Si posee múltiples IP, el comportamiento por omisión de vincular todas las " "direcciones puede causar que el Sistema Operativo seleccione la IP " "incorrecta para los paquetes salientes, por tanto se recomienda vincular " "PowerDNS a una IP específica." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Lista de subredes permitidas a las que se puede acceder:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Introduzca aquí, separadas por comas, las subredes permitidas a las que se " "puede acceder. Los valores permitidos son 127.0.0.1 para una dirección ip y " "192.168.0.0/24 para una subred." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "¿Desea iniciar el servidor PowerDNS automáticamente?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Si acepta, un script de inicio se usará para iniciar automáticamente el " #~ "servidor de nombres autoritario de PowerDNS." debian/po/ru.po0000664000000000000000000000564212271304440010600 0ustar # translation of ru.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Yuri Kozlov , 2009. msgid "" msgstr "" "Project-Id-Version: pdns 2.9.22-1\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2009-07-19 09:17+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP-адрес, на котором PowerDNS должен принимать запросы:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Если у вас несколько IP, то поведение по умолчанию, когда запросы " "принимаются со всех адресов, может привести к тому, что ОС выберет неверный " "IP для исходящих пакетов, поэтому рекомендуется привязать PowerDNS к какому-" "то определённому IP." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Список подсетей, для которых разрешены рекурсивные запросы:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Введите через запятую список подсетей, для которых разрешены рекурсивные " "запросы. Можно указывать отдельные адреса в виде 127.0.0.1 и целые подсети в " "виде 192.168.0.0/24." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Запускать сервер PowerDNS автоматически?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "При включении машины можно автоматически запускать авторитетный сервер " #~ "имён PowerDNS." debian/po/fr.po0000664000000000000000000000516712271304440010563 0ustar # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # # msgid "" msgstr "" "Project-Id-Version: pdns\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2006-05-14 14:55+0200\n" "Last-Translator: Jean-Luc Coulon (f5ibh) \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "Adresse IP o PowerDNS doit tre l'coute:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Si vous utilisez plusieurs adresses IP, le comportement par dfaut est " "d'couter sur chacune d'entre-elles, ce qui peut conduire le systme " "d'exploitation choisir la mauvaise adresse IP pour les paquets sortants. " "Il est donc recommand d'associer PowerDNS une adresse IP spcifique." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Liste des sous-rseaux pouvant tre interrogs:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Veuillez indiquer la liste des sous-rseaux, spars par des virgules, qu'il " "est autoris de parcourir. Des valeurs autorises sont 127.0.0.1 pour une " "adresse IP et 192.168.0.0/24 pour un sous-rseau entier." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "PowerDNS doit-il tre dmarr automatiquement?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Si vous choisissez cette option, PowerDNS sera lanc automatiquement au " #~ "dmarrage du systme." debian/po/da.po0000664000000000000000000000436712271304440010541 0ustar # Danish translation pdns. # Copyright (C) 2010 pdns & nedenstående oversættere. # This file is distributed under the same license as the pdns package. # Joe Hansen , 2010. # msgid "" msgstr "" "Project-Id-Version: pdns\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2010-06-11 17:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP-adresse hvorpå PowerDNS skal lytte:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Hvis du har flere IP'er, kan standardopførelsen for tildeling til alle " "adresser medføre at operativsystemet vælger den forkerte IP til udgående " "pakker, så det anbefales at tildele PowerDNS en specifik IP her." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Liste af undernet som har tilladelse til rekursiv:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Indtast her, kommaadskilt, de undernet som har tilladelse til rekursiv. " "Tilladte værdier er 127.0.0.1 for en ip-adresse og 192.168.0.0/24 for et " "undernet." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Ønsker du automatisk at starte PowerDNS-serveren?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Hvis du accepterer her, vil et opstartsskript blive brugt til automatisk " #~ "at starte den autoritære PowerDNS-navneserver." debian/po/it.po0000664000000000000000000000453612271304440010567 0ustar # Italian translation of pdns. # COPYRIGHT (C) 2009 THE pdns'S COPYRIGHT HOLDER # This file is distributed under the same license as the pdns package. # Luca Monducci , 2009. # msgid "" msgstr "" "Project-Id-Version: pdns 2.9.22 italian debconf templates\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2009-10-17 15:01+0200\n" "Last-Translator: Luca Monducci \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "Indirizzo IP su cui PowerDNS deve stare in ascolto:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "In caso di più IP, il comportamento predefinito di collegarsi su tutti gli " "indirizzi potrebbe comportare la scelta da parte del SO dell'IP sbagliato " "per i pacchetti in uscita, per questo si raccomanda di collegare PowerDNS a " "un IP specifico." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Elenco delle sottoreti a cui è concesso di l'uso del server:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Inserire l'elenco delle sottoreti, separate da una virgola, a cui è permesso " "l'uso del server. I valori ammessi sono 127.0.0.1 per un indirizzo IP e " "192.168.0.0/24 per una sottorete." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Avviare il server PowerDNS automaticamente?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Accettando, verrà usato uno initscript che avvierà automaticamente il " #~ "nameserver autoritativo PowerDNS." debian/po/pt.po0000664000000000000000000000451112271304440010567 0ustar # translation of pdns debconf to Portuguese # 2005-11-03 - Luís de Matos - Initial translation # # Luís de Matos , 2005. # Américo Monteiro , 2007. # msgid "" msgstr "" "Project-Id-Version: pdns 2.9.21-2\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2007-09-26 22:42+0100\n" "Last-Translator: Américo Monteiro \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "O endereço IP onde o PowerDNS deverá escutar:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Se tem vários IPs, o comportamento por omissão de ligar a todos os endereços " "pode levar o SO a seleccionar um IP errado para os pacotes de saída, " "portanto é recomendado ligar aqui o PowerDNS a um IP específico." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Lista de subredes que são autorizadas a aceder:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Insira aqui, separadas por vírgulas, as subredes que são autorizadas a " "aceder. Os valores autorizados são 127.0.0.1 para um endereço ip e " "192.168.0.0/24 para uma subrede." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Deseja iniciar automaticamente o servidor PowerDNS?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Se aceitar aqui, será utilizado um script de inicialização para iniciar " #~ "automaticamente o servidor de nomes autoritário PowerDNS." debian/po/cs.po0000664000000000000000000000502612271304440010553 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: pdns\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2007-01-27 22:44+0100\n" "Last-Translator: Jan Outrata \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP adresa, na které má PowerDNS naslouchat:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Pokud máte více IP adres, může výchozí napojení na všechny adresy způsobit, " "že OS vybere pro odchozí pakety špatnou IP, takže je doporučeno PowerDNS " "napojit na specifickou IP adresu." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Seznam podsítí, které je povoleno začlenit:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Zde zadejte, oddělené čárkami, podsítě, které je povoleno začlenit. Možné " "hodnoty jsou 127.0.0.1 pro IP adresu a 192.168.0.0/24 pro podsíť." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Chcete spustit server PowerDNS automaticky?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Pokud zde odpovíte kladně, bude inicializační skript automaticky " #~ "startovat autoritativní jmenný server PowerDNS." debian/po/gl.po0000664000000000000000000000443712271304440010555 0ustar # Galician translation of pdns's debconf templates # This file is distributed under the same license as the pdns package. # Jacobo Tarrio , 2007. # msgid "" msgstr "" "Project-Id-Version: pdns\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2007-03-07 00:36+0100\n" "Last-Translator: Jacobo Tarrio \n" "Language-Team: Galician \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "Enderezo IP no que PowerDNS debería escoitar:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Se ten varios enderezos IP, o comportamento por defecto de se ligar a " "tódolos enderezos pode facer que o sistema operativo escolla o IP incorrecto " "para os paquetes saíntes, polo que se recomenda ligar PowerDNS a un enderezo " "IP determinado." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Lista de subredes ás que se lle permite facer recursión:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Introduza aquí, separadas por comas, as subredes ás que se lle permite facer " "recursión. Admítense os valores 127.0.0.1 para un enderezo IP e " "192.168.0.0/24 para unha subrede." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "¿Quere iniciar o servidor PowerDNS automaticamente?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Se acepta esta opción, hase empregar un script de inicio para iniciar " #~ "automaticamente o servidor de nomes con autoridade PowerDNS." debian/po/POTFILES.in0000664000000000000000000000006012271304440011354 0ustar [type: gettext/rfc822deb] pdns-server.templates debian/po/eu.po0000664000000000000000000000447212271304440010563 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Piarres Beobide , 2009. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2009-10-29 09:31+0200\n" "Last-Translator: Piarres Beobide \n" "Language-Team: Euskara , 2009. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2009-11-01 20:50+0200\n" "Last-Translator: Esko Arajärvi \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP-osoite, jota PowerDNS:n tulisi kuunnella:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Oletuksena PowerDNS kuuntelee kaikkia osoitteita. Jos järjestelmällä on " "useampia IP-osoitteita, käyttöjärjestelmä saattaa valita väärän IP-osoitteen " "lähteville paketeille. Tästä syystä on suositeltavaa määritellä tässä tietty " "IP-osoite." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Aliverkot, jotka saavat tehdä rekursiivisia kyselyitä:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Anna pilkuin eroteltuina luettelo aliverkoista, jotka saavat tehdä " "rekursiivisia kyselyitä. Sallitut muodot ovat 127.0.0.1 IP-osoitteille ja " "192.168.0.0/24 aliverkoille." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Tulisiko the PowerDNS-palvelin käynnistää automaattisesti?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Jos valitset tämän vaihtoehdon, PowerDNS käynnistetään automaattisesti " #~ "määräävänä nimipalvelimena käyttäen käynnistyskomentosarjaa." debian/po/templates.pot0000664000000000000000000000254712271304440012335 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: pdns\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" debian/po/vi.po0000664000000000000000000000500612271304440010562 0ustar # Vietnamese translation for pdns. # Copyright © 2007 Free Software Foundation, Inc. # Clytie Siddall , 2005-2007. # msgid "" msgstr "" "Project-Id-Version: pdns 2.9.20-8\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2007-05-30 22:46+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.6.3b1\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "Địa chỉ IP nơi PowerDNS nên lắng nghe:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Nếu bạn có nhiều địa chỉ IP khác nhau, hành vi mặc định là đóng kết đến mọi " "địa chỉ thì có thể gây ra hệ điều hành chọn địa chỉ IP không đúng cho gói " "tin gởi ra. Vì thế khuyên bạn đóng kết trình PowerDNS đến một địa chỉ IP " "riêng." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Danh sách mạng phụ được phép đệ qui:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Hãy nhập vào đây, định giới bằng dấu chấm phẩy, những mạng phụ được phép đệ " "qui. Giá trị có thể là 127.0.0.1 cho địa chỉ IP và 192.168.0.0/24 cho mạng " "phụ." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Bạn có muốn tự động khởi chạy trình phục vụ PowerDNS không?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Chấp nhận ở đây thì một tập lệnh khởi chạy (initscript) được dùng để tự " #~ "động khởi chạy trình phục vụ tên có uy quyền PowerDNS." debian/po/ja.po0000664000000000000000000000503112271304440010534 0ustar # Copyright (C) 2008 Debian PowerDNS Maintainers # This file is distributed under the same license as pdns package. # Hideki Yamane (Debian-JP) , 2008. # msgid "" msgstr "" "Project-Id-Version: pdns 2.9.21.2-1\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2008-12-28 22:26+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "PowerDNS が listen する IP アドレス:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "複数の IP アドレスがある場合、デフォルトの全てのアドレスをバインドするという" "挙動は、OS が外部へのパケットに対して誤った IP を返すようにしてしまいます。こ" "こで PowerDNS が特定の IP にバインドするように設定するのをお勧めします。" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "再起検索を許可するサブネットのリスト:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "再起検索を許可するサブネットをカンマで区切ってここで入力してください。許可す" "る値としては、127.0.0.1 は 1 つの IP アドレスで、192.168.0.0/24 はサブネット" "になります。" #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "自動的に PowerDNS サーバが起動するようにしますか?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "これを有効にすると、初期化スクリプトは PowerDNS の authoritative ネーム" #~ "サーバを自動的に起動するようになります。" debian/po/de.po0000664000000000000000000000530112271304440010532 0ustar # translation of de.po to German # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # Christoph Haas , 2005. # msgid "" msgstr "" "Project-Id-Version: de\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2006-05-11 21:59+0200\n" "Last-Translator: Christoph Haas \n" "Language-Team: \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP-Adresse, an der PowerDNS Anfragen entgegen nimmt." #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Falls sie mehrere IP-Adressen haben, bindet sich PowerDNS standardmäßig an " "alle Adressen. Möglicherweise wählt das Betriebssystem dadurch aber die " "falsche Adresse für ausgehende Datenpakete aus. Es wird empfohlen, die IP-" "Adresse hier explizit anzugeben." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Liste der Subnetze, die rekursive Anfragen stellen dürfen:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Geben Sie hier - durch Kommas getrennt - die Subnetze an, die rekursive " "Anfragen stellen dürfen. Erlaubte Werte sind z.B. 127.0.0.1 für eine IP-" "Adresse oder 192.168.0.0/24 für ein Subnetz." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Soll der PowerDNS-Server automatisch gestartet werden?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Wenn Sie hier \"OK\" auswählen, wird im Init-Skript der autoritative " #~ "Nameserver automatisch mit gestartet." debian/po/sv.po0000664000000000000000000000515312271304440010577 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: pdns 2.9.18-3\n" "Report-Msgid-Bugs-To: pdns@packages.debian.org\n" "POT-Creation-Date: 2012-06-17 13:40+0000\n" "PO-Revision-Date: 2006-05-11 21:44+0100\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: swed\n" "X-Poedit-Country: swed\n" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "IP address where PowerDNS should listen on:" msgstr "IP-adress som PowerDNS ska lyssna p:" #. Type: string #. Description #: ../pdns-server.templates:1001 msgid "" "If you have multiple IPs, the default behaviour of binding to all addresses " "can cause the OS to select the wrong IP for outgoing packets, so it is " "recommended to bind PowerDNS to a specific IP here." msgstr "" "Om du har flera IP-adresser kan standardbeteendet, som r att binda till " "alla adresser, leda till att operativsystemet vljer fel IP-adress fr " "utgende paket s det rekommenderas att binda PowerDNS till en specifik IP-" "adress hr." #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "List of subnets that are allowed to recurse:" msgstr "Lista p subnt som tillts stlla rekursiva frgor:" #. Type: string #. Description #: ../pdns-server.templates:2001 msgid "" "Enter here, comma separated, the subnets that are allowed to recurse. " "Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a " "subnet." msgstr "" "Ange de subnt (kommaseparerade) som ska tilltas stlla rekursiva frgor. " "Tilltna vrden r 127.0.0.1 fr en IP-adress och 192.168.0.0/24 fr ett " "subnt." #~ msgid "Do you want to start the PowerDNS server automatically?" #~ msgstr "Vill du starta PowerDNS-servern automatiskt?" #~ msgid "" #~ "If you accept here, an initscript will be used to automatically start the " #~ "PowerDNS authoritative nameserver." #~ msgstr "" #~ "Om du accepterar hr kommer ett init-skript att anvndas fr att " #~ "automatiskt starta PowerDNS auktoritativa namnserver." debian/pdns-backend-geo.prerm0000664000000000000000000000024412271304440013335 0ustar #!/bin/sh # # Add call to init script to actually stop pdns. set -e if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi #DEBHELPER# exit 0 debian/pdns-backend-ldap.postinst0000664000000000000000000000046112271304440014242 0ustar #!/bin/sh # # postinst script for pdns-backend-ldap set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi # Activating trigger dpkg-trigger pdns-server # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-backend-geo.docs0000664000000000000000000000003212271304440013133 0ustar modules/geobackend/README debian/changelog0000664000000000000000000010343712520456143011054 0ustar pdns (3.3-2ubuntu0.1) trusty-security; urgency=medium * SECURITY UPDATE: label decompression bug (LP: #1450037) - debian/patches/CVE-2015-1868: apply upstream fix - CVE-2015-1868 -- Felix Geyer Wed, 29 Apr 2015 15:27:51 +0200 pdns (3.3-2) unstable; urgency=medium * Fix 3.3-1 SQL upgrade script for PostgreSQL. Thanks to Peter van Dijk for the patch. (Closes: #726945) * Fix FTBFS on s390x. Thanks to Peter van Dijk for the upstream patches. (Closes: #726863) * Add myself to Uploaders * Bump Standards-Version to 3.9.5 (no changes) * Run make with V=1. Needed to get compiler flags into the build log. * Revert "disable dnssec in default configuration to not break updates" Reverting to not break upgrades from wheezy. -- Christian Hofstaedtler Sun, 26 Jan 2014 23:41:14 +0100 pdns (3.3-1) unstable; urgency=low * The "Habbie saves the World" release [ Matthijs Möhlmann ] * Standards-Version: 3.9.4 (no changes needed) * Move files used by dbconfig-common to /usr/share/PACKAGE (Closes: #710360) * Upstream fixes self notification (Closes: #374779) * Added Brazilian Portuguese translation, thanks to Adriano Rafael Gomes (Closes: #718713) * All other nameservers are optional in insserv, so make that happen for pdns too. (Closes: #714145) * Update the default schema for the PostgreSQL backend (Closes: #698911) * Reworked README fixes also #717356 (Closes: #717356) * Add a SQL script for updating the database scheme in PostgreSQL, this will be applied automatically by dbconfig-common if chosen to do so (Closes: #685808, #707761) [ Marc Haber ] * be more robust with chmod in pdns-server.postinst. Thanks to Peter van Dijk (Closes: #716859) * fix exit code of init script to be more LSB compliant. (Closes: #708861) * remove unnecessary MySQL dependency (Upstream #1032). Adapt patches. (Closes: #725073) * remove double code from postinst. Thanks to Peter van Dijk (Closes: #725195) -- Matthijs Möhlmann Sat, 13 Jul 2013 14:30:30 +0000 pdns (3.3-1~exp1) experimental; urgency=low * New Upstream Release * Fix for Upstream #555 (patch 2720) to build with botan. This might address #675410, thanks to Florian Obser and Marcus 'darix' Rueckert. * fix ECDSA (upstream patch 3036). (Closes: #697904) * sqlite backend removed upstream. Suggest migration to sqlite3 * remove --disable-recursor, it's a no-op anyway * build with --enable-tools and --enable-unit-tests * remove local manpages that have been incorporated upstream * remove lazy-recursion from default config * refresh patches, remove obsolete patches * disable dnssec in default configuration to not break updates * upstream now has include-dir * Use it instead of include * remove our patch for include * rename config files to .conf * remove --with autotools-dev (see dh-autoreconf(7)) * zap dnslabeltext.cc in clean (see Upstream #554) * ship dnsreplay, dnswasher and dnsscope * add PDNSDEBUG environment variable to all postinst scripts * properly handle pdns.simplebind.conf on installation and purge * re-work conffile handling in postinst and postrm scripts * document changes in configuration syntax/semantics for updaters * depend on lsb-base (>= 3.2-14) * do not call in /lib/init/vars.sh any more (lintian) -- Marc Haber Fri, 12 Jul 2013 20:11:25 +0000 pdns (3.1-4) unstable; urgency=low * put /etc/default/pdns back under ucf control. Thanks to Andreas Beckmann (Closes: 678930) * remove bindbackend.conf in postrm from correct path. Thanks to Andreas Beckmann (Closes: 678929) * make defaults file readable -- Marc Haber Sun, 24 Jun 2012 20:40:27 +0200 pdns (3.1-3) unstable; urgency=low * Upload with correct .orig.tar.gz -- Marc Haber Sat, 23 Jun 2012 23:33:50 +0200 pdns (3.1-2) unstable; urgency=low * move development to Alioth (Maint address, Vcs-Foo) * remove bind-example-zones. Thanks to Andreas Olsson (Closes: 676823) * init script: * adapt logic changes from upstream * LSBize init script from debian's skeleton * use automatic init script installation * add upstream changesets (recommended by upstream): 2608, 2609+2612, 2611, 2622 * add DEP-3 headers to patches * disable mongodb patch, we're not building mongodb anyway * remove autostart debconf question, templates and code * relax privileges on pdns.d directory * add a simple bind backend config so that we can run immediately * remove hurd-ftbfs-patch, it was already applied upstream (r2307) -- Marc Haber Mon, 14 May 2012 21:14:38 +0200 pdns (3.1-1) unstable; urgency=low [ Marc Haber ] * Imported Upstream version 3.1 * reduce column size for 'algorithm' to 50. Closes: #662935 * handle smallcaps RRs. Closes: #656788 * refresh patches * remove unused patches * add patch to turn off the traceback handler at run time * add patch for changeset 2575 (race condition with supermasters) * fix mysql multiarch build failure, set cflags etc to hardening defaults * do not run bootstrap a build time, using autotools_dev * use dh-autoreconf, remove autofoo created files from patches/fix-mongodb-backend-patch * fix dh invocation * create MySQL databases with engine=innodb instead of type * set debian/compat to 9 * Standards-Version: 3.9.3 (no changes needed) * add myself to uploaders, change Vcs-Header to my git. Closes: #672550 [ Evgeni Golov ] * use system libpolarssl if present, local copy otherwise. Closes: #671856, #656861 -- Marc Haber Fri, 11 May 2012 23:51:27 +0200 pdns (3.0-1.2) unstable; urgency=high * Non maintainer upload. * Fix build failure with GCC 4.7. Closes: #667321. * Fix build failure with mysql multiarch location. Closes: #650058. * Build with hardening defaults. Closes: #656861. -- Matthias Klose Wed, 09 May 2012 23:14:47 +0000 pdns (3.0-1.1) unstable; urgency=high * Non-maintainer upload. * Don't respond to responses fixes CVE-2012-0206 * Make build dependency on mongodb-dev arch specific (Closes: #654568). -- Luk Claes Sun, 15 Jan 2012 19:13:17 +0100 pdns (3.0-1) unstable; urgency=low * New upstream version (Closes: #624330, #626909, #617476, #498918, #500572) (Closes: #645539, #623036, #521791, #583161, #590285, #499396) * Update Standards-Version to 3.9.2 * Add lua backend. * Use new style dh instead of individual dh_* commands. * Add Homepage to debian/control (Closes: #634947) * Add pdnssec and dnsreplay utility. * Use dbconfig-common to populate / upgrade databases. * Update patch addconfigdir, do not parse ucf-dist files. * Update manpage pdns_control and include a list of options (Closes: #621724) * Add manpage for pdnssec. * Add prerm scripts to the backends, stop the pdns server. * Add patch from upstream to properly parse priority. (Closes: #533023) -- Matthijs Möhlmann Sat, 19 Nov 2011 11:58:10 +0100 pdns (2.9.22-9) unstable; urgency=low * My name is now spelled correctly with the ö instead of o. * Reupload to fix a unresolved symbol (Closes: #623036) * Add debug package for pdns-server (Closes: #594242) * Fix the lintian overrides. -- Matthijs Möhlmann Sun, 17 Apr 2011 13:02:43 +0200 pdns (2.9.22-8) unstable; urgency=high * Update init.d scripts and remove mysql and postgresql from the dependencies. The loop between mysql and pdns causes apt to fail hence the urgency high. (Closes: #595018) -- Matthijs Mohlmann Fri, 24 Sep 2010 16:24:04 +0200 pdns (2.9.22-7) unstable; urgency=low * Provide the file now in the correct location. (Closes: #585966) * Update Standards-Version to 3.9.1 * Add new dnsdomain2.schema for LDAP (Closes: #589606) -- Matthijs Mohlmann Tue, 03 Aug 2010 18:25:28 +0200 pdns (2.9.22-6) unstable; urgency=high * Provide the virtual facility $named. (Closes: #585966) * Added danish translation thanks to Joe Dalton (Closes: #585572) * For now add a 2 second delay before continue with the boot process to ensure pdns is listening on a socket. * Update Standards-Version to 3.9.0 -- Matthijs Mohlmann Sun, 18 Jul 2010 14:48:27 +0200 pdns (2.9.22-5) unstable; urgency=low * Fix FTBFS on hurd * Should-Start / Should-Stop added for slapd, mysql and postgresql Thanks to Petter Reinholdtsen (Closes: #580819) -- Matthijs Mohlmann Sun, 23 May 2010 13:18:25 +0200 pdns (2.9.22-4) unstable; urgency=low * Add db_stop to fix an upgrade (Closes: #555311) * Fix error in postinst of sqlite and sqlite3 (Closes: #565516) * Updated Standards-Version to 3.8.4 * Make lintian happy * Complete the pdns_control manpage (Closes: #556473) * Switch to dpkg-source 3.0 (quilt) format * Removing Christoph Haas from uploaders, thank you for the great work. -- Matthijs Mohlmann Fri, 09 Apr 2010 17:23:24 +0200 pdns (2.9.22-3) unstable; urgency=low * Fix a syntax error in postinst. * Removed old upgrade code for splitting the config. -- Matthijs Mohlmann Sun, 08 Nov 2009 14:48:57 +0100 pdns (2.9.22-2) unstable; urgency=low [ Christoph Haas ] * Fixed init.d script (Closes: #518294) * Moved resolvconf temp file to /var/run/powerdns (Closes: #333726) [ Matthijs Mohlmann ] * Updated Standards-Version to 3.8.3 * Added russian translation (Closes: #539465) * Added spanish translation (Closes: #508987) * Added SQLite3 database schema to examples * Added PostgreSQL database schema to examples * Change libmysqlclient15-dev to libmysqlclient-dev. * Moved from dpatch to quilt patch system. * Fix FTBFS with gcc 4.4 (Closes: #510674) * Added italian translation (Closes: #552219, #548695) * Added basque translation (Closes: #553150) * Fixed init.d script including correct dependencies and runlevels (Closes: #548293) * Added finnish translation (Closes: #553648) * Implemented triggers to prevent multiple restarts (Closes: #502981) -- Matthijs Mohlmann Mon, 02 Nov 2009 12:49:43 +0100 pdns (2.9.22-1) unstable; urgency=low * New upstream version (closes: #513409). -- Christoph Haas Wed, 25 Feb 2009 23:25:51 +0100 pdns (2.9.21.2-2) unstable; urgency=low * Added japanese PO file (closes: #510705) -- Christoph Haas Mon, 05 Jan 2009 23:38:05 +0100 pdns (2.9.21.2-1) unstable; urgency=low * New Upstream Version * Included typo fixes from Thijs Kinkhorst (closes: #502982) * Removed the splitconfig call from debian/pdns-server.postinst as it broke configurations with multiline definitions. It should not be needed anymore anyway after an update from Sarge to Etch. (closes: #475141) * Added patch for LDAP requests spanning subdomains due to incorrect LDAP search query (closes: #500137). -- Christoph Haas Tue, 25 Nov 2008 20:11:46 +0100 pdns (2.9.21.1.0-1) unstable; urgency=low * Fixed glitch in upstream tarball for 2.9.2.21.1. Actually this is the same upstream version as 2.9.21.1 but due to a merging glitch when using git-buildpackage two files were changed. So the orig.tar.gz for 2.9.21.1 in Debian is not entirely correct (although it doesn't hurt either). To replace the wrong orig.tar.gz it needs a higher version number. 2.9.21.1.0-1 it newer than 2.9.21.1-1. -- Christoph Haas Fri, 08 Aug 2008 15:38:55 +0200 pdns (2.9.21.1-1) unstable; urgency=high * New Upstream Version (fixes CVE-2008-3337) -- Christoph Haas Thu, 07 Aug 2008 00:25:01 +0200 pdns (2.9.21-6) unstable; urgency=low * Use upstream patch for the ldapbackend. (See #462966) * Fix pdns-server hang in postinst (Closes: #468160) * Fix typo in the Description of pdns-backend-mysql to make lintian happy. -- Matthijs Mohlmann Sun, 02 Mar 2008 22:50:11 +0100 pdns (2.9.21-5) unstable; urgency=low * Fix ignoring buid errors. (Closes: #462858) * Patch from Steve to fix build with OpenLDAP 2.4. (Closes: #462966) - Changed patch a bit to convert host, port and tls option to a ldapuri. * Update Standards-Version to 3.7.3. * Added gcc 4.3 fixes (Closes: #456073) -- Matthijs Mohlmann Sun, 03 Feb 2008 20:57:51 +0100 pdns (2.9.21-4) unstable; urgency=low * New portuguese translation included (closes: #444219). Thanks, Américo Monteiro. -- Christoph Haas Wed, 03 Oct 2007 19:38:15 +0200 pdns (2.9.21-3) unstable; urgency=low * Added missing dependency on docbook, missing dtd files. (Closes: #441592) * Make package binNMUable. * Fixed lintian error on in the clean target. * Clean target was incomplete, twice in a row build didn't reproduce the same result (Policy 4.9) (Closes: #441592) * Win2k3 SP2 adds out of zone data to zonetransfers, ignore them instead of rejecting the zone. (Closes: #433892) -- Matthijs Mohlmann Sat, 15 Sep 2007 09:24:06 +0200 pdns (2.9.21-2) unstable; urgency=low * Fix an unconditional replace in the resolvconf script. (Closes: #425441) * Do not include the 127.0.0.1 in the recursor list. (Closes: #425442) * Updated vietnamese translation -- Matthijs Mohlmann Sat, 02 Jun 2007 00:13:47 +0200 pdns (2.9.21-1) unstable; urgency=low [ Matthijs Mohlmann ] * New upstream release. (Closes: #420294) * Remove meta pdns package. * Added new sqlite3 backend package. * Months and minutes where mixed up. (Closes: #406462) * Case sensitivity in bind backend caused PowerDNS to not serve a certain zone. (Closes: #406461) * Bind backend forgot about zones on a notify. (Closes: #398213) [ Christoph Haas ] * Documented incorporated backend bind. (Closes: #415471) -- Matthijs Mohlmann Sun, 15 Apr 2007 23:23:39 +0200 pdns (2.9.20-8) unstable; urgency=high [ Christoph Haas ] * Updated czech translation (Closes: #408726) * New galician translation (Closes: #413756) * Added patch for potential buffer overflow, high urgency (Closes: #406465) * Added example for the bind backend. Documented that the bind gbackend is contained in the pdns-server package (Closes: #415471) [ Matthijs Mohlmann ] * LDAP backend changes - Supports SOA autocalculation - Handles dc=* correctly -- Matthijs Mohlmann Sat, 10 Mar 2007 01:20:58 +0100 pdns (2.9.20-7) unstable; urgency=low [ Matthijs Mohlmann ] * Updated configuration parameter allow-axfr-ips. (Closes: #316789) * Fix memory corruption after performing a zone reload (Closes: #394682) * Fix wrong ttl for SOA records during AXFR. * Added patch from upstream to fix ipv6 processing. (Closes: #395885, #396250) * Added patch to fix alignment on ARM. (Closes: #397031) -- Matthijs Mohlmann Mon, 30 Oct 2006 00:46:22 +0100 pdns (2.9.20-6) unstable; urgency=low * Don't try to remove the user on purge. * Typo in package description of pdns-backend-sqlite. (Closes: #384387) * Create LSB init script. * Added check to see if ucf exist. The postrm can't rely on ucf to be available on purge. It is a non-essential package. (Closes: #389979) * Added patch to fix wildcard lookups in the ldap backend. (Closes: #383726) -- Debian PowerDNS Maintainers Sun, 1 Oct 2006 15:29:45 +0200 pdns (2.9.20-5) unstable; urgency=low * Update geobackend. (Closes: #382538) -- Matthijs Mohlmann Sun, 13 Aug 2006 23:17:25 +0200 pdns (2.9.20-4) unstable; urgency=low * Updated German translation. * Remove patch for the recursor, the pdns-recursor is not shipped with this package anymore * Updated Dutch translation. * Updated Swedish translation. * Updated French translation. (Closes: #367217) * Fix wrong permissions on /var/lib/powerdns in sqlite backend. (Closes: #373627) * Default pdns.conf overhaul, taken configuration parameters from the website http://rtfm.powerdns.com/ (Closes: #369306) * Removed --remove-home from deluser, it requires an extra dependency. (Closes: #340124) * Added a note regarding pgsql and chroot (Closes: #382017) Actual solutions for running pdns in a chroot when trying to connect to a pgsql server via SSL are welcome. -- Debian PowerDNS Maintainers Wed, 12 Jul 2006 00:29:14 +0200 pdns (2.9.20-3) unstable; urgency=low * Disable the recursor, this is in a separate package now. -- Debian PowerDNS Maintainers Sat, 6 May 2006 10:40:44 +0200 pdns (2.9.20-2) unstable; urgency=low * Fix bug which causes pdns not resolving the root nameservers anymore (Closes: #364449) -- Debian PowerDNS Maintainers Tue, 25 Apr 2006 21:27:26 +0200 pdns (2.9.20-1) unstable; urgency=low * New upstream release. -- Debian PowerDNS Maintainers Thu, 16 Mar 2006 21:09:38 +0100 pdns (2.9.19-4) unstable; urgency=low * Fix pdns maintainer scripts to restart in postinst (instead of stopping in prerm and starting in postinst) (Closes: #346426) * Rewrote patch addconfigdir to C++ and to fix some memleaks. -- Debian PowerDNS Maintainers Wed, 18 Jan 2006 22:59:52 +0100 pdns (2.9.19-3) unstable; urgency=low * Added a patch to fix NS delegation (Closes: #345778) -- Debian PowerDNS Maintainers Tue, 3 Jan 2006 23:18:17 +0100 pdns (2.9.19-2) unstable; urgency=high * Added portuguese translation (Closes: #337832) * Added a patch to fix a slight security bug * Added a patch to allow '/' in domain names (Closes: #343737) * Updated patch addconfigdir to be able to move launch= to include files. (Patch is now more generic) * Updated builddependency to libmysqlclient15-dev (Closes: #343789) -- Debian PowerDNS Maintainers Sun, 18 Dec 2005 11:39:41 +0100 pdns (2.9.19-1) unstable; urgency=low * New upstream release (Closes: #327846) * Now really fix the AXFR transfers from bind / djbdns to pdns. (Closes: #330184) * New bind backend (Closes: #318897) * Update translation for Czech (Closes: #335355) * Add translation for Swedish (Closes: #335261) * Added patch to fix a memory hole in the pdns-recursor * Added patch to proper catch an exception in the pdns-recursor * Added patch to fix an exception that could escape -- Debian PowerDNS Maintainers Tue, 1 Nov 2005 15:22:39 +0100 pdns (2.9.18-4) unstable; urgency=low * Fix AXFR transfers from bind to pdns. (Closes: #330184) * Added resolvconf calls to pdns-recursor init script. (Closes: #308677) * Added pdns update script in order to automate the creation of the recursors list. (Closes: #304528) * Leave permissions on upgrades (Closes: #328833) -- Debian PowerDNS Maintainers Sat, 1 Oct 2005 15:11:33 +0200 pdns (2.9.18-3) unstable; urgency=high * High urgency as it fixes RC bugs. * Add patch to support uri's in the ldapbackend. * Add fix for crashes in the pdns-recursor with g++ 4.0.1 * Revert postinst scripts for geo, ldap, mysql, pgsql and pipe backend and don't introduce bug #321974 * Add patch to fix CNAME wildcards. It returned the CNAME wildcard while an A record exists for the query. Taken from svn. * Fix pdns-server.config with exit status 20, bug in the parsing code of the configuration file /etc/powerdns/pdns.conf (Closes: #311903) * Fix the addconfigdir dpatch to be able to include files instead of only directories (Closes: #327172) * Remove postrm scripts as it can cause trouble when the include is set to nothing. (Closes: #326260) -- Debian PowerDNS Maintainers Thu, 15 Sep 2005 09:21:28 +0200 pdns (2.9.18-2) unstable; urgency=low * Added cs translation. (Closes: #321737) * comma separated instead of semicolon separated in pdns-server.templates (Closes: #318845) * Updated po debconf files. * Removed code that mess up the pdns.conf. (Closes: #321974) * pdns should be an arch independent package. It comes from the split to pdns-server and pdns-recursor. * Tidied up the dh_install parts of the debian/rules script. -- Debian PowerDNS Maintainers Mon, 15 Aug 2005 12:01:41 +0200 pdns (2.9.18-1) unstable; urgency=high * New upstream release (Closes: #318798) * Drop patches: 64bit-compile-fix.dpatch, addfeatures-ldapbackend.dpatch, amd64-compilefix.dpatch, blankout-domain-fix.dpatch, consistent-sql.dpatch, dosfix-ldapbackend.dpatch, fix-exit-status.dpatch, gpgsql-compilefix.dpatch, gsqlite-compilefix.dpatch, gsqlite-slave.dpatch, recursor-slowdown.patch.dpatch, typoinitscript.dpatch, zone2ldap.dpatch They are applied upstream. * The ldapbackend did not properly escape all queries, allowing it to fail and not answer questions. (CAN-2005-2301) * Questions from clients denied recursion could blank out answers to clients who are allowed recursion services, temporarily. (CAN-2005-2302) -- Debian PowerDNS Maintainers Fri, 29 Jul 2005 20:24:33 +0200 pdns (2.9.17-15) unstable; urgency=high * New revision because last upload has accidentally been a native package. A higher revision number should fix the wrong upload. -- Debian PowerDNS Maintainers Sat, 16 Jul 2005 13:04:14 +0200 pdns (2.9.17-14) unstable; urgency=high * Changed Build-Depends from postgresql-dev to libpq-dev * Build-Depends was missing the non-essential automake1.6 * Added libssl-dev to Build-Depends * configure arguments updated to point to postgresql includes * Patch added for: Denial of Service in the ldapbackend. When you do a query with a '\' or a '*' the ldap instance will crash. * Patch added for: Recursor became slow after 60 seconds. * Added translation vi.po (Closes: #316704) * Fixed typo in german debconf file de.po (Closes: #313930) * Updated Standards-Version to 3.6.2 -- Debian PowerDNS Maintainers Fri, 15 Jul 2005 00:16:17 +0200 pdns (2.9.17-13) unstable; urgency=high * Fixed serious policy violation. (Closes: #310782, #310742) * Updated dutch debconf translation. -- Debian PowerDNS Maintainers Thu, 26 May 2005 23:10:54 +0200 pdns (2.9.17-12) unstable; urgency=low * Removed resolvconf from pdns initscript. * Updated french debconf translation. (Closes: #305869) * Updated pdns-recursor so it doesn't fail on restart. * Patch to fix exit status. (Closes: #305527) * Fixes a typo in pdns-backend-mysql.postrm which causes a failure when removing the package. (Closes: #308410) * Added a Pre-Depends on adduser (Closes: #308409) * Fixed a failure when installing pdns-server on a fresh system. * Fixed a failure when removing pdns-server when perl-modules isn't installed. * Added dutch translation. -- Debian PowerDNS Maintainers Tue, 10 May 2005 16:15:59 +0200 pdns (2.9.17-11) unstable; urgency=low * Fixed the empty /usr/share/pdns/doc directory. (Closes: #304939) * Removed superfluous upstream documentation from the doc directory. * Rewritten pdns-recursor initscript. (Closes: #304937, #303602, #303602) -- Debian PowerDNS Maintainers Thu, 21 Apr 2005 22:38:47 +0200 pdns (2.9.17-10) unstable; urgency=low * Maintainer changed to Debian PowerDNS Maintainers. * Christoph Haas : + changelog.html is no longer compressed to keep hypertext links in the pdns-doc package working + fixed a typo in the debconf templates (netmasks -> subnets) * Matthijs Mohlmann : + Fixed the ldap backend patch (Closes: #303910) + Fixed the patch for adding a directory with config files (Closes: #303669) - Now you can add multiple files. - Can add files with dots. + Added dnsdomain2.schema to pdns-backend-ldap. (Closes: #303685) + Updates resolv.conf when needed. (Closes: #303602) -- Debian PowerDNS Maintainers Thu, 14 Apr 2005 21:42:16 +0200 pdns (2.9.17-9) unstable; urgency=low * Moved html docs to pdns-doc instead of pdns (Closes: #303227) * Added french translation (Closes: #302681) * Improved description for pdns-backend-geo (Closes: #302128) -- Matthijs Mohlmann Tue, 5 Apr 2005 21:32:14 +0200 pdns (2.9.17-8) unstable; urgency=low * Minor naming stupidity in example files resolved. * Thanks to Christoph Haas for checking and uploading. -- Matthijs Mohlmann Fri, 1 Apr 2005 22:02:56 +0200 pdns (2.9.17-7) unstable; urgency=low * Removed more questions on several backends. * Use one pdns.local file instead of using more files. * Updated postinst and postrm to reflect these changes. -- Matthijs Mohlmann Fri, 1 Apr 2005 17:05:29 +0200 pdns (2.9.17-6) unstable; urgency=low * Raised Standards-Version to 3.6.1.1 * Fixed a FTBFS on 64bit platforms (Closes: #301642) Thanks to Kurt Roeckx for testing the patch. -- Matthijs Mohlmann Thu, 31 Mar 2005 10:00:37 +0200 pdns (2.9.17-5) unstable; urgency=low * Removed stupid questions * Updated templates * Added README.Debian to pdns-server * Fixed a typo (Closes: #300053) -- Matthijs Mohlmann Mon, 28 Mar 2005 10:47:40 +0200 pdns (2.9.17-4) unstable; urgency=low * Make gmysql and gpgsql backend more consistent by adding port parameter to gpgsql backend. -- Matthijs Mohlmann Sun, 27 Feb 2005 23:10:36 +0100 pdns (2.9.17-3) unstable; urgency=low * Removed manpage xdb-fill * Removed package pdns-backend-xdb (obsolete) * Cleaned up debian/ directory * Written an initscript for pdns-recursor (Closes: #296628) -- Matthijs Mohlmann Mon, 14 Feb 2005 20:17:24 +0100 pdns (2.9.17-2) unstable; urgency=low * Written manpage for xdb-fill * Rewritten debian/rules for better understanding -- Matthijs Mohlmann Mon, 14 Feb 2005 11:23:11 +0100 pdns (2.9.17-1) unstable; urgency=low * Update Standards-Version to 3.6.1 * Change to debhelper programs * Added geobackend (Closes: #243958) * Added recursor.conf (Closes: #252286) * Start the recursor before slapd (Closes: #281330) * Fix a typo in init script (Closes: #267672) * The pdns recursor is now in a seperate package * Added zone2ldap patch to be LDAPv3 compliant * Added query logging * support for AXFR in non-hierarchical trees * reenabled AXFR for normal zones in strict mode * fix for wildcard lookups in tree mode * fix for thrown exception if multiple associatedDomain are available * changed wrong default method (simple or tree) * fix in PowerLDAP if dn is necessary * Took the tarball from the powerdns website and added seperate patches * Added postinstall scripts to configure packages * Added postremove scripts * Make it lintian clean * Manpages written for binaries * Added patch letting work pdns as slave and superslave with sqlite backend (Closes: #280359) * Added schema as text file in pdns-backend-{mysql,pgsql} (Closes: #248315) * starttls is added by upstream (Closes: #193474) -- Matthijs Mohlmann Thu, 3 Feb 2005 15:49:40 +0000 pdns (2.9.16-6) unstable; urgency=high * Backport DoS fix from 2.9.17 release, CVSTrac ticket #21 http://ds9a.nl/cgi-bin/cvstrac/pdns/tktview?tn=21,4 (CAN-2005-0428 DoS in PowerDNS) * FTBFS: F_OK undeclared fixed (Closes: #286675) * FTBFS on amd64/gcc-4.0 fixed (Closes: #287913) -- Matthijs Mohlmann Thu, 20 Jan 2005 14:13:58 +0100 pdns (2.9.16-5) unstable; urgency=low * New maintainer upload (Closes: #282200) * pdns installs uncompressed manpages (Closes: #264221) -- Matthijs Mohlmann Sun, 21 Nov 2004 14:24:35 +0100 pdns (2.9.16-4) unstable; urgency=high * Apply patches from current CVS: - checkin 267: make another FD non-blocking. Should really fix Debian bug 241321 & ticket 13 (pdns_recursor hangs). -- Wichert Akkerman Sun, 07 Nov 2004 13:49:06 +0100 pdns (2.9.16-3) unstable; urgency=high * Apply patches from current CVS: - properly dup2 fd 0, 1 and 2. Closes: Bug#241321 - make recursor sockets non-blocking, should fix hanging pdns_recursor * Include pdns_recursor init script -- Wichert Akkerman Mon, 01 Nov 2004 12:03:40 +0100 pdns (2.9.16-2) unstable; urgency=medium * Remove stray libpq++ linkage for gpgsqlbackend. Closes: Bug#236941 -- Wichert Akkerman Fri, 14 May 2004 14:04:34 +0200 pdns (2.9.16-1) unstable; urgency=low * New upstream version -- Wichert Akkerman Sun, 07 Mar 2004 22:22:03 +0100 pdns (2.9.15-2) unstable; urgency=medium * Update missing file with current version from libtool * Remove hardcoded libpq++ link in postrges backend * Remove libpq++ mentions in sgml documentation -- Wichert Akkerman Sun, 18 Jan 2004 14:06:29 +0100 pdns (2.9.15-1) unstable; urgency=medium * New upstream version -- Wichert Akkerman Sun, 18 Jan 2004 11:28:39 +0100 pdns (2.9.14-1) unstable; urgency=medium * New upstream version. Postgres support rewritten to use the C interface instead of the deprectaed libpqpp -- Wichert Akkerman Fri, 16 Jan 2004 23:23:33 +0100 pdns (2.9.13-3) unstable; urgency=medium * Fix pdns postinst so pdns is properly restart on upgrade -- Wichert Akkerman Sat, 10 Jan 2004 17:21:18 +0100 pdns (2.9.13-2) unstable; urgency=critical * Fix a bug in calculation of early timestamps: 1<<31-1 is not the same as (1<<31)-1. This made all pdns servers consume all possible CPU when UNIX time went through 2^30 two hours ago. -- Wichert Akkerman Sat, 10 Jan 2004 16:53:09 +0100 pdns (2.9.13-1) unstable; urgency=low * New upstream release * Stop using my debian.org email address * Change init scripts to conform to Debian policy -- Wichert Akkerman Thu, 25 Dec 2003 13:33:40 +0100 pdns (2.9.12-1) unstable; urgency=low * New upstream release * Fix dependency generation. Closes: Bug#210256 * Check if pdns is installed in init script. Closes: Bug#217402 * Create a SQLite backend package * Add versioned dpkg-dev Build-Depends so ${dpkg:Version} works properly -- Wichert Akkerman Mon, 27 Oct 2003 18:52:53 +0100 pdns (2.9.11-2) unstable; urgency=low * Remove automake build-depends and bootstrap rule from debian/rules. This makes pdns a bit more portable across Debian releases. Closes: Bug#205990 * Try to remove the /etc/powerdns directory on purge. Closes: Bug#209051 * Use libmysqlclient-dev instead of libmysqlclient10-dev -- Wichert Akkerman Tue, 9 Sep 2003 14:59:46 +0200 pdns (2.9.11-1) unstable; urgency=low * New upstream release * Do not include zone2ldap in pdns package. Closes: Bug#198613 * The gdbm-dev seems to have changed its name, update Build-Depends accordingly. Closes: Bug#199595 -- Wichert Akkerman Mon, 14 Jul 2003 13:52:47 +0200 pdns (2.9.8-1) unstable; urgency=low * New upstream release. Closes: Bug#187781 -- Wichert Akkerman Mon, 5 May 2003 13:43:16 +0200 pdns (2.9.7-1) unstable; urgency=low * New upstream release. Closes: Bug#185730 -- Wichert Akkerman Fri, 21 Mar 2003 12:53:00 +0100 pdns (2.9.6-2) unstable; urgency=low * Enable the recursing nameserver * Change order of things in clean target so debian/files is properly removed. Closes: Bug#181994 -- Wichert Akkerman Sun, 23 Feb 2003 12:34:57 +0100 pdns (2.9.6-1) unstable; urgency=low * New upstream release, adding a new LDAP backend -- Wichert Akkerman Sun, 16 Feb 2003 14:49:08 +0100 pdns (2.9.5-1) unstable; urgency=low * fill in the blanks -- Wichert Akkerman Mon, 3 Feb 2003 20:16:16 +0100 pdns (2.9.4-1) unstable; urgency=low * fill in the blanks -- Wichert Akkerman Sat, 21 Dec 2002 20:16:16 +0100 pdns (2.9.3a-1) unstable; urgency=low * New upstream release; fixes a problem in zone2sql -- Wichert Akkerman Sat, 21 Dec 2002 20:16:16 +0100 pdns (2.9.3-1) unstable; urgency=low * New upstream release. Yes, the packaging changes yet again to reflect changes made upstream. The packaging of SQL backends should be more sane now and we don't expect to change them again. -- Wichert Akkerman Sat, 21 Dec 2002 18:18:40 +0100 pdns (2.9.2-3) unstable; urgency=low * Compile pgmysql and xdb backend with -fPIC. Real fix is to swithc to using libtool for all backends, which will happen in the next upstream release. -- Wichert Akkerman Mon, 16 Dec 2002 13:43:52 +0100 pdns (2.9.2-2) unstable; urgency=low * Add Build-Depends on libgdbmg1-dev, which is needed by the pipe backend -- Wichert Akkerman Mon, 16 Dec 2002 11:18:11 +0100 pdns (2.9.2-1) unstable; urgency=low * New upstream release * bind backend fully merged in the main pdns package now * Add new pipe, pgmysql and xdb backends -- Wichert Akkerman Fri, 13 Dec 2002 16:39:29 +0100 pdns (2.9-1) unstable; urgency=low * Initial packaging -- Wichert Akkerman Sun, 1 Dec 2002 15:04:52 +0100 debian/pdns-server.install0000664000000000000000000000106112271304440013023 0ustar debian/tmp/usr/bin/pdns_control usr/bin/ debian/tmp/usr/bin/zone2sql usr/bin/ debian/tmp/usr/bin/pdnssec usr/bin/ debian/tmp/usr/bin/dnswasher usr/bin/ debian/tmp/usr/bin/dnsreplay usr/bin/ debian/tmp/usr/bin/dnsscope usr/bin/ debian/tmp/usr/sbin/pdns_server usr/sbin/ debian/config/pdns.conf usr/share/pdns-server/ debian/config/pdns.local.conf usr/share/pdns-server/ debian/config/pdns usr/share/pdns-server/ debian/config/pdns.simplebind.conf usr/share/pdns-server/ debian/resolvconf/pdns etc/resolvconf/update.d/ debian/insserv.d/pdns-server etc/insserv.d/ debian/pdns-server.templates0000664000000000000000000000111712271304440013355 0ustar Template: pdns-server/localaddress Type: string _Description: IP address where PowerDNS should listen on: If you have multiple IPs, the default behaviour of binding to all addresses can cause the OS to select the wrong IP for outgoing packets, so it is recommended to bind PowerDNS to a specific IP here. Template: pdns-server/allowrecursion Type: string Default: 127.0.0.1 _Description: List of subnets that are allowed to recurse: Enter here, comma separated, the subnets that are allowed to recurse. Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a subnet. debian/pdns-backend-ldap.dirs0000664000000000000000000000011112271304440013310 0ustar etc/ldap/schema usr/lib/powerdns usr/bin usr/share/doc/pdns-backend-ldap debian/pdns-backend-ldap.manpages0000664000000000000000000000005212271304440014146 0ustar debian/tmp/usr/share/man/man8/zone2ldap.8 debian/pdns-backend-mongodb.prerm0000664000000000000000000000024412271304440014210 0ustar #!/bin/sh # # Add call to init script to actually stop pdns. set -e if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi #DEBHELPER# exit 0 debian/pdns-backend-pgsql.lintian-overrides0000664000000000000000000000015712271304440016225 0ustar # Using dbconfig-common, no need for a templates file in our package. pdns-backend-pgsql: no-debconf-templates debian/pdns-backend-sqlite3.config0000664000000000000000000000056412271304440014274 0ustar #!/bin/sh # # Install / upgrade database. set -e # Execute dbconfig-common . /usr/share/debconf/confmodule if [ -f /usr/share/dbconfig-common/dpkg/config.sqlite3 ]; then . /usr/share/dbconfig-common/dpkg/config.sqlite3 # Default values dbc_basepath=/var/lib/powerdns dbc_dbname="pdns.sqlite3" dbc_first_version="3.0-1" dbc_go pdns-backend-sqlite3 $@ fi exit 0 debian/pdns-backend-pgsql.config0000664000000000000000000000053112271304440014030 0ustar #!/bin/sh # # Install / upgrade database. set -e # Execute dbconfig-common . /usr/share/debconf/confmodule if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then . /usr/share/dbconfig-common/dpkg/config.pgsql # Default values dbc_dbuser="pdns" dbc_dbname="pdns" dbc_first_version="3.0-1" dbc_go pdns-backend-pgsql $@ fi exit 0 debian/pdns-backend-lua.install0000664000000000000000000000017612271304440013671 0ustar debian/tmp/usr/lib/powerdns/libluabackend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libluabackend.a usr/lib/powerdns/ debian/pdns-backend-geo.postinst0000664000000000000000000000045612271304440014100 0ustar #!/bin/sh # # postinst script for pdns-backend-geo set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi # Activate trigger dpkg-trigger pdns-server # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-backend-pgsql.prerm0000664000000000000000000000057512271304440013720 0ustar #!/bin/sh # # Pre removal set -e # Execute dbconfig-common . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.pgsql dbc_go pdns-backend-pgsql $@ # Stop pdns. if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-server.pdns.init0000664000000000000000000001150112271304440013263 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: pdns # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Should-Start: slapd # Should-Stop: slapd # Short-Description: PDNS is a versatile high performance authoritative nameser ### END INIT INFO PATH=/bin:/sbin:/usr/bin:/usr/sbin BINARYPATH=/usr/bin SBINARYPATH=/usr/sbin SOCKETPATH=/var/run ODESC="PowerDNS Authoritative Name Server" DESC="$ODESC" NAME=pdns DAEMON=/usr/sbin/pdns_server DAEMON_ARGS="" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME [ -x "$DAEMON" ] || exit 0 [ -r /etc/default/pdns ] && . /etc/default/pdns # Make sure that /var/run exists mkdir -p $SOCKETPATH cd $SOCKETPATH # Handle instance scripts suffix=$(basename $0 | cut -d- -f2- -s) if [ $suffix ]; then SUFFIX="--config-name=$suffix" DAEMON_ARGS="$DAEMON_ARGS $SUFFIX" NAME="$NAME-$suffix" DESC="$DESC (config name $suffix)" PIDFILE="/var/run/$NAME-$suffix.pid" fi # Define LSB log_* functions. . /lib/lsb/init-functions # function to invoke properly parametrized pdns_control doPC() { pdns_control $SUFFIX $1 $2 2> /dev/null return $? } isrunning() { doPC ping > /dev/null return $? } # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started if isrunning; then return 1 fi start-stop-daemon --start --quiet \ --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS --daemon --guardian=yes \ || return 2 } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred doPC quit >/dev/null RETVAL="2" for sec in $(seq 1 5); do if ! isrunning; then RETVAL="0" break fi sleep 1 done [ "$RETVAL" = 2 ] && return 2 rm -f $PIDFILE } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 exit 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 exit 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg exit 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 exit 1 ;; esac ;; status) if isrunning; then log_success_msg "$NAME is running: $(doPC status)" exit 0 else log_failure_msg "$NAME is not running" exit 3 fi ;; force-stop) [ "$VERBOSE" != no ] && log_daemon_msg "Killing $ODESC (all instances)" "$NAME" kill -9 $(pidof pdns_server) case "$?" in 0) [ "$VERBOSE" != no ] && log_end_msg 0 exit 0 ;; 1) [ "$VERBOSE" != no ] && log_end_msg 1 exit 1 ;; esac ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 exit 0 ;; 1) log_end_msg 1 # Old process is still running exit 1 ;; *) log_end_msg 1 # Failed to start exit 1 ;; esac ;; *) # Failed to stop log_end_msg 1 exit 1 ;; esac ;; reload|force-reload) log_daemon_msg "Reloading $DESC" "$NAME" if isrunning; then doPC cycle >/dev/null case "$?" in 0) [ "$VERBOSE" != no ] && log_end_msg 0 exit 0 ;; 1) [ "$VERBOSE" != no ] && log_end_msg 1 exit 1 ;; esac else log_end_msg 0 exit 7 fi ;; monitor) if isrunning; then echo "already running" exit 1 else pdns_server $DAEMON_ARGS --daemon=no --guardian=no --control-console --loglevel=9 exit 0 fi ;; dump) if isrunning; then doPC list exit 0 else echo "not running" exit 7 fi ;; show) if isrunning; then if [ $# -lt 2 ]; then echo "Insufficient parameters" exit 2 fi echo -n "$2=" doPC show $2 exit 0 else echo "not running" exit 7 fi ;; mrtg) if isrunning; then if [ $# -lt 2 ]; then echo "Insufficient parameters" exit 2 fi doPC show $2 if [ "$3x" != "x" ]; then doPC show $3 else echo 0 fi doPC uptime echo "$DESC" exit 0 else echo "not running" exit 7 fi ;; cricket) if isrunning; then if [ $# -lt 2 ]; then echo "Insufficient parameters" exit 1 fi doPC show $2 exit 0 else echo "not running" exit 7 fi ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|force-stop|restart|reload|monitor|dump|show|mrtg|cricket}" ;; esac exit 0 debian/pdns-backend-lua.postinst0000664000000000000000000000045612271304440014107 0ustar #!/bin/sh # # postinst script for pdns-backend-lua set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi # Activate trigger dpkg-trigger pdns-server # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/source/0000775000000000000000000000000012271304440010465 5ustar debian/source/format0000664000000000000000000000001412271304440011673 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212271304440010363 0ustar 9 debian/pdns-server.README.Debian0000664000000000000000000000214712271304440013501 0ustar Notes about Debian's PowerDNS package ------------------------------------- + Introduction PowerDNS is a powerful DNS server, it has the ability to communicate with several backends, including MySQL, PostgreSQL, LDAP etc. + Configure The configuration for PowerDNS is separated in different files. In /etc/powerdns/pdns.conf are the default settings and in /etc/powerdns/pdns.d/pdns.local.conf are the user changes. The configuration for specific backends can go into /etc/powerdns/pdns.d/pdns.local.conf or any other file in /etc/powerdns/pdns.d/ending in .conf. Please note that there can only be a single launch= statement, and that you need to take care that your editor does not leave backup files around, as PowerDNS reads every file in the directory (see http://wiki.powerdns.com/trac/ticket/493) + Chroot PowerDNS can run in a chrooted environment but this has some disadvantages. It is not easy to connect via a socket to another service like MySQL. And when using the sqlite backend you need to move the database in your chroot. If you don't have these restrictions you can easily enable the chroot option. debian/pdns-backend-geo.install0000664000000000000000000000017612271304440013662 0ustar debian/tmp/usr/lib/powerdns/libgeobackend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libgeobackend.a usr/lib/powerdns/ debian/pdns-backend-sqlite3.install0000664000000000000000000000060412271304440014470 0ustar debian/tmp/usr/lib/powerdns/libgsqlite3backend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libgsqlite3backend.a usr/lib/powerdns/ debian/sql/sqlite3/sqlite3 usr/share/dbconfig-common/data/pdns-backend-sqlite3/install/ debian/sql/sqlite3/3.0-1 usr/share/dbconfig-common/data/pdns-backend-sqlite3/upgrade/sqlite3/ debian/config/pdns.local.gsqlite3.conf usr/share/pdns-backend-sqlite3 debian/pdns-backend-mysql.lintian-overrides0000664000000000000000000000015712271304440016244 0ustar # Using dbconfig-common, no need for a templates file in our package. pdns-backend-mysql: no-debconf-templates debian/patches/0000775000000000000000000000000012520456143010621 5ustar debian/patches/upstream-912-endianess0000664000000000000000000000415112271304440014660 0ustar Description: fix upstream issue 912 causing test failures on big endian arches Origin: https://github.com/PowerDNS/pdns/issues/912 Author: PowerDNS.COM BV & the PowerDNS Community Description: git diff b969c229e1fe9a88e6ff6b68af461d15649fdf75^.. 6e4271016b30da83de2d0e3eb4962a5de1574376 --- a/pdns/base64.cc +++ b/pdns/base64.cc @@ -1,6 +1,6 @@ #include "base64.hh" #include - +#include "dns.hh" namespace anonpdns { char B64Decode1(char cInChar) { @@ -164,9 +164,16 @@ int B64Decode(const std::string& strInpu // Interpret the resulting 3 bytes...note there // may have been padding, so those padded bytes // are actually ignored. +#if BYTE_ORDER == BIG_ENDIAN + strOutput += pBuf[1]; + strOutput += pBuf[2]; + strOutput += pBuf[3]; +#else strOutput += pBuf[2]; strOutput += pBuf[1]; strOutput += pBuf[0]; +#endif + } // while if(pad) strOutput.resize(strOutput.length()-pad); --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -264,10 +264,10 @@ BOOST_AUTO_TEST_CASE(test_opt_record_out DNSPacketWriter pw(pak, "www.powerdns.com", ns_t_a); pw.startRecord("www.powerdns.com", ns_t_a, 16, 1, DNSPacketWriter::ANSWER); - pw.xfrIP(0x0100007f); + pw.xfrIP(htonl(0x7f000001)); opts.push_back(pair(3, "powerdns")); pw.addOpt(1280, 0, 0, opts); - pw.getHeader()->id = 0x01f0; + pw.getHeader()->id = htons(0xf001); pw.getHeader()->rd = 1; pw.commit(); --- a/pdns/test-misc_hh.cc +++ b/pdns/test-misc_hh.cc @@ -3,6 +3,7 @@ #include #include "misc.hh" +#include "dns.hh" #include using std::string; @@ -67,6 +68,17 @@ BOOST_AUTO_TEST_CASE(test_AtomicCounter) BOOST_CHECK_EQUAL(ac, 2); } +BOOST_AUTO_TEST_CASE(test_endianness) { + uint32_t i = 1; +#if BYTE_ORDER == BIG_ENDIAN + BOOST_CHECK_EQUAL(i, htonl(i)); +#elif BYTE_ORDER == LITTLE_ENDIAN + uint32_t j=0x01000000; + BOOST_CHECK_EQUAL(i, ntohl(j)); +#else + BOOST_FAIL("Did not detect endianness at all"); +#endif +} BOOST_AUTO_TEST_CASE(test_parseService) { ServiceTuple tp; debian/patches/upstream-s390x-ftbfs0000664000000000000000000000320412271305313014364 0ustar From 0c3742099d6f94a8928ac5e6eca11f8d3f4cb3ad Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 22 Oct 2013 23:26:13 +0200 Subject: [PATCH] fix base64 decoding for big endian archs on which long is not 32 bits (like s390x) --- pdns/base64.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/base64.cc b/pdns/base64.cc index ab10c7e..f7f0422 100644 --- a/pdns/base64.cc +++ b/pdns/base64.cc @@ -165,9 +165,9 @@ int B64Decode(const std::string& strInput, std::string& strOutput) // may have been padding, so those padded bytes // are actually ignored. #if BYTE_ORDER == BIG_ENDIAN - strOutput += pBuf[1]; - strOutput += pBuf[2]; - strOutput += pBuf[3]; + strOutput += pBuf[sizeof(long)-3]; + strOutput += pBuf[sizeof(long)-2]; + strOutput += pBuf[sizeof(long)-1]; #else strOutput += pBuf[2]; strOutput += pBuf[1]; -- 1.8.5.1 From 916a0fda31405290cedac058aab7f5d9f9c26a7b Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 24 Oct 2013 20:26:48 +0200 Subject: [PATCH] force ragel alphtype to unsigned char, fixing non-ASCII TXT parsing on signed char platforms like s390x --- pdns/dnslabeltext.rl | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/dnslabeltext.rl b/pdns/dnslabeltext.rl index aad3530..58cdb91 100644 --- a/pdns/dnslabeltext.rl +++ b/pdns/dnslabeltext.rl @@ -22,6 +22,7 @@ vector segmentDNSText(const string& input ) %%{ machine dnstext; write data; + alphtype unsigned char; }%% (void)dnstext_error; // silence warnings (void)dnstext_en_main; -- 1.8.5.1 debian/patches/CVE-2015-18680000664000000000000000000000242512520456143012155 0ustar Description: PowerDNS Security Advisory 2015-01: Label decompression bug can cause crashes on specific platforms Origin: https://downloads.powerdns.com/patches/2015-01/others.patch diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index 595a4af..b89d840 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -455,9 +455,10 @@ string PacketReader::getText(bool multi) void PacketReader::getLabelFromContent(const vector& content, uint16_t& frompos, string& ret, int recurs) { - if(recurs > 1000) // the forward reference-check below should make this test 100% obsolete + if(recurs > 100) // the forward reference-check below should make this test 100% obsolete throw MOADNSException("Loop"); + int pos = frompos; for(;;) { unsigned char labellen=content.at(frompos++); @@ -470,7 +471,7 @@ void PacketReader::getLabelFromContent(const vector& content, uint16_t& uint16_t offset=256*(labellen & ~0xc0) + (unsigned int)content.at(frompos++) - sizeof(dnsheader); // cout<<"This is an offset, need to go to: "<= frompos-2) + if(offset >= pos) throw MOADNSException("forward reference during label decompression"); return getLabelFromContent(content, offset, ret, ++recurs); } debian/patches/series0000664000000000000000000000020712520456143012035 0ustar upstream-1032-mysql-dep upstream-912-endianess pullrequest-881-+=-syntax remove-rpath-ldflags-patch upstream-s390x-ftbfs CVE-2015-1868 debian/patches/pullrequest-881-+=-syntax0000664000000000000000000001075012271304440015216 0ustar Description: add += syntax for options Origin: https://github.com/PowerDNS/pdns/pull/881 Author: Aki Tuomi --- a/pdns/arguments.cc +++ b/pdns/arguments.cc @@ -17,6 +17,7 @@ */ #include "arguments.hh" #include +#include #include #include #include "namespaces.hh" @@ -293,8 +294,14 @@ void ArgvMap::parseOne(const string &arg { string var, val; string::size_type pos; - - if(!arg.find("--") &&(pos=arg.find("="))!=string::npos) // this is a --port=25 case + bool incremental = false; + if(!arg.find("--") &&(pos=arg.find("+="))!=string::npos) // this is a --port+=25 case + { + var=arg.substr(2,pos-2); + val=arg.substr(pos+2); + incremental = true; + } + else if(!arg.find("--") &&(pos=arg.find("="))!=string::npos) // this is a --port=25 case { var=arg.substr(2,pos-2); val=arg.substr(pos+1); @@ -316,11 +323,22 @@ void ArgvMap::parseOne(const string &arg if(var!="" && (parseOnly.empty() || var==parseOnly)) { pos=val.find_first_not_of(" \t"); // strip leading whitespace - if(pos && pos!=string::npos) + if(pos && pos!=string::npos) val=val.substr(pos); - - if(parmIsset(var)) - params[var]=val; + if (!incremental && val.empty()) d_cleared.insert(var); + if(parmIsset(var)) { + if (incremental) { + if (params[var].empty() && !d_cleared.count(var)) { + throw ArgException("Incremental parameter '"+var+"' without a parent"); + } + if (params[var].empty()) + params[var]=val; + else + params[var]+=", " + val; + } else { + params[var]=val; + } + } else if(!lax) throw ArgException("Trying to set unexisting parameter '"+var+"'"); @@ -335,6 +353,7 @@ const vector&ArgvMap::getCommand void ArgvMap::parse(int &argc, char **argv, bool lax) { d_cmds.clear(); + d_cleared.clear(); for(int n=1;n extraConfigs; while((ent = readdir(dir)) != NULL) { if (ent->d_name[0] == '.') continue; // skip any dots if (boost::ends_with(ent->d_name, ".conf")) { @@ -468,10 +488,16 @@ bool ArgvMap::file(const char *fname, bo L << Logger::Error << namebuf << " is not a file" << std::endl; throw ArgException(std::string(namebuf) + " does not exist!"); } - if (!file(namebuf, lax, true)) - L << Logger::Warning << namebuf << " could not be read - skipping" << std::endl; + extraConfigs.push_back(std::string(namebuf)); } } + std::sort(extraConfigs.begin(), extraConfigs.end(), CIStringComparePOSIX()); + BOOST_FOREACH(const std::string& fn, extraConfigs) { + if (!file(fn.c_str(), lax, true)) { + L << Logger::Error << namebuf << " could not be parsed" << std::endl; + throw ArgException(fn + " could not be parsed"); + } + } } return true; --- a/pdns/arguments.hh +++ b/pdns/arguments.hh @@ -20,6 +20,7 @@ #define ARGUMENTS_HH #include +#include #include #include #include @@ -123,6 +124,7 @@ private: map helpmap; map d_typeMap; vector d_cmds; + std::set d_cleared; }; extern ArgvMap &arg(); --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -410,6 +410,22 @@ struct CIStringCompare: public std::bina } }; +struct CIStringComparePOSIX +{ + bool operator() (const std::string& lhs, const std::string& rhs) + { + std::string::const_iterator a,b; + const std::locale &loc = std::locale("POSIX"); + a=lhs.begin();b=rhs.begin(); + while(a!=lhs.end()) { + if (b==rhs.end() || std::tolower(*b,loc), pair, bool> { bool operator()(const pair& a, const pair& b) const debian/patches/upstream-1032-mysql-dep0000664000000000000000000000250012271304440014670 0ustar Description: fix upstream issue 1032 causing an unnecessary MySQL dependency Origin: https://github.com/PowerDNS/pdns/issues/1032 Author: PowerDNS.COM BV & the PowerDNS Community --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -70,7 +70,7 @@ version.hh version.cc # pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic -pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib) +pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) if BOTAN110 pdns_server_SOURCES += botan110signers.cc botansigners.cc @@ -112,7 +112,7 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeepe pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) -pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib) +pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) if BOTAN110 pdnssec_SOURCES += botan110signers.cc botansigners.cc debian/patches/remove-rpath-ldflags-patch0000664000000000000000000000554012271304440015663 0ustar Description: remove rpath and ldflags Origin: Debian Forwarded: http://wiki.powerdns.com/trac/ticket/499 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -69,7 +69,7 @@ ednssubnet.cc ednssubnet.hh cachecleaner version.hh version.cc # -pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic +pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ -rdynamic pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) if BOTAN110 @@ -111,7 +111,7 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeepe serialtweaker.cc -pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) +pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) if BOTAN110 @@ -191,7 +191,7 @@ dnswasher_LDFLAGS= @DYNLINKFLAGS@ @THREA dnsbulktest_SOURCES=dnsbulktest.cc misc.cc unix_utility.cc qtype.cc logger.cc statbag.cc dnsparser.cc \ dnsrecords.cc dnswriter.cc dnslabeltext.cc rcpgenerator.cc base32.cc base64.cc sillyrecords.cc nsecrecords.cc -dnsbulktest_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) +dnsbulktest_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ dnsbulktest_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) # unix_utility.cc @@ -209,7 +209,7 @@ dnsreplay_SOURCES=dnsreplay.cc misc.cc rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh \ unix_utility.cc utility.hh sillyrecords.cc nsecrecords.cc base32.cc -dnsreplay_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) +dnsreplay_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ dnsreplay_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) nproxy_SOURCES=nproxy.cc dnsparser.cc dnsrecords.cc dnsparser.hh \ @@ -217,7 +217,7 @@ nproxy_SOURCES=nproxy.cc dnsparser.cc dn sillyrecords.cc selectmplexer.cc mplexer.hh misc.cc nsecrecords.cc unix_utility.cc qtype.cc \ logger.cc statbag.cc base32.cc -nproxy_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) +nproxy_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ nproxy_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) notify_SOURCES=notify.cc dnsparser.cc dnsrecords.cc dnsparser.hh \ @@ -225,7 +225,7 @@ notify_SOURCES=notify.cc dnsparser.cc dn sillyrecords.cc selectmplexer.cc nsecrecords.cc base32.cc misc.cc unix_utility.cc \ logger.cc qtype.cc statbag.cc -notify_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) +notify_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ notify_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) dnsscope_SOURCES=dnsscope.cc misc.cc unix_utility.cc qtype.cc \ debian/pdns-backend-pgsql.postrm0000664000000000000000000000240212271304440014106 0ustar #!/bin/sh # # Post removal set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-backend-pgsql" # Execute dbconfig-common if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then . /usr/share/dbconfig-common/dpkg/postrm.pgsql dbc_go pdns-backend-pgsql $@ fi # Remove configuration file, dbconfig-common might not be able to do so. if [ "$1" = "purge" ]; then # Remove files registered with ucf. # this has been pulled from aide-common.postrm UCF="ucf" UCFR="ucfr" if command -v ucfq >/dev/null; then for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do rm -f ${file}$ext done rm -f ${file} if command -v $UCF >/dev/null; then $UCF --purge ${file} fi if command -v $UCFR >/dev/null; then $UCFR --purge $PKGNAME ${file} fi done else echo >&2 "ucf no longer installed, not cleaning up" fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/insserv.d/0000775000000000000000000000000012271304440011100 5ustar debian/insserv.d/pdns-server0000664000000000000000000000003412271304440013270 0ustar $named +pdns +pdns-recursor debian/pdns-backend-pipe.dirs0000664000000000000000000000006112271304440013331 0ustar usr/lib/powerdns usr/share/doc/pdns-backend-pipe debian/pdns-backend-mysql.README.Debian0000664000000000000000000000144612271304440014726 0ustar Instructions on setting up MySQL as a backend for PowerDNS ---------------------------------------------------------- PowerDNS uses dbconfig-common. The database backends offer you to automatically create and maintain the databases for you. If you choose yes, you're fine, no more action needed. Should you decide to create your databases yourself, for example, if you decide to use a non-standard schema, please find the database schema recommended by Upstream for MySQL in /usr/share/dbconfig-common/data/pdns-backend-mysql/install/mysql Just create a database (for example, named pdns) and then feed these SQL commands to MySQL to get some defaults to start with: mysql -u root -p < /usr/share/dbconfig-common/data/pdns-backend-mysql/install/mysql Then add your data to the database. debian/NEWS0000664000000000000000000000341612271304440007670 0ustar pdns (3.3-1~exp1) experimental; urgency=low The sqlite backend was removed upstream in PowerDNS 3.3. If you're using this backend, it is strongly recommended that you migrate to sqlite3 or to an entirely different backend. Sorry, there is currently no automated migration path. I will accept a tested and documented patch for the package if you would like to contribute one. In PowerDNS 3.3, upstream implemented an include directive for the configuration file. Unlike the variant that we had patched into PowerDNS up to 3.1, the directive is now called include-dir and not include, and it only includes file that end in *.conf. If you choose to keep your local configuration, you need to make those changes manually in your configuration. If you choose to keep your old configuration, the postinst takes care of the rename, but you need to manually change your include directives to include-dir. The lazy-recursion parameter has been removed in PowerDNS 3.3. If you choose to keep your old configuration, you need to manually remove or comment it in your configuration. -- Marc Haber Tue, 02 Jul 2013 07:40:36 +0000 pdns (3.1-3) unstable; urgency=low pdns now ships an empty, but activated bind backend so that the daemon can launch immediately. Since PowerDNS only allows a single launch statement (see http://wiki.powerdns.com/trac/ticket/502), you need to adapt either the new simplebind configuration or your custom configuration. PowerDNS will not flag multiple launch statements as an error, but it will only honor one of them. Be aware of that if your PowerDNS complains about configuration for a not enabled backend. -- Marc Haber Sun, 24 Jun 2012 11:11:27 +0200 debian/pdns-backend-lua.docs0000664000000000000000000000003212271304440013142 0ustar modules/luabackend/README debian/copyright0000664000000000000000000000164012271304440011121 0ustar This is the Debian prepackaged version of pDNS, the PowerDNS nameserver. pDNS can be downloaded from http://www.powerdns.com/ Copyright and license: Copyright 2002 PowerDNS.COM BV This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. Additionally, the license of this program contains a special exception which allows to distribute the program in binary form when it is linked against OpenSSL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 debian/sql/0000775000000000000000000000000012271304440007764 5ustar debian/sql/sqlite3/0000775000000000000000000000000012271304440011350 5ustar debian/sql/sqlite3/sqlite30000664000000000000000000000336012271304440012661 0ustar create table domains ( id INTEGER PRIMARY KEY, name VARCHAR(255) NOT NULL COLLATE NOCASE, master VARCHAR(128) DEFAULT NULL, last_check INTEGER DEFAULT NULL, type VARCHAR(6) NOT NULL, notified_serial INTEGER DEFAULT NULL, account VARCHAR(40) DEFAULT NULL ); CREATE UNIQUE INDEX name_index ON domains(name); CREATE TABLE records ( id INTEGER PRIMARY KEY, domain_id INTEGER DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, type VARCHAR(10) DEFAULT NULL, content VARCHAR(255) DEFAULT NULL, ttl INTEGER DEFAULT NULL, prio INTEGER DEFAULT NULL, change_date INTEGER DEFAULT NULL ); CREATE INDEX rec_name_index ON records(name); CREATE INDEX nametype_index ON records(name,type); CREATE INDEX domain_id ON records(domain_id); create table supermasters ( ip VARCHAR(25) NOT NULL, nameserver VARCHAR(255) NOT NULL COLLATE NOCASE, account VARCHAR(40) DEFAULT NULL ); alter table records add ordername VARCHAR(255); alter table records add auth bool; create index orderindex on records(ordername); create table domainmetadata ( id INTEGER PRIMARY KEY, domain_id INT NOT NULL, kind VARCHAR(16) COLLATE NOCASE, content TEXT ); create table cryptokeys ( id INTEGER PRIMARY KEY, domain_id INT DEFAULT NULL, flags INT NOT NULL, active BOOL, content TEXT ); create table tsigkeys ( id INTEGER PRIMARY KEY, name VARCHAR(255) COLLATE NOCASE, algorithm VARCHAR(255) COLLATE NOCASE, secret VARCHAR(255) ); create unique index namealgoindex on tsigkeys(name, algorithm); debian/sql/sqlite3/3.0-10000664000000000000000000000133712271304440011735 0ustar alter table records add ordername VARCHAR(255); alter table records add auth bool; create index orderindex on records(ordername); create table domainmetadata ( id INTEGER PRIMARY KEY, domain_id INT NOT NULL, kind VARCHAR(16) COLLATE NOCASE, content TEXT ); create table cryptokeys ( id INTEGER PRIMARY KEY, domain_id INT DEFAULT NULL, flags INT NOT NULL, active BOOL, content TEXT ); create table tsigkeys ( id INTEGER PRIMARY KEY, name VARCHAR(255) COLLATE NOCASE, algorithm VARCHAR(255) COLLATE NOCASE, secret VARCHAR(255) ); create unique index namealgoindex on tsigkeys(name, algorithm); debian/sql/mysql/0000775000000000000000000000000012271305530011132 5ustar debian/sql/mysql/3.0-10000664000000000000000000000144312271304440011514 0ustar create table domainmetadata ( id INT auto_increment, domain_id INT NOT NULL, kind VARCHAR(16), content TEXT, primary key(id) ); create table cryptokeys ( id INT auto_increment, domain_id INT NOT NULL, flags INT NOT NULL, active BOOL, content TEXT, primary key(id) ); alter table records add ordername VARCHAR(255); alter table records add auth bool; create index orderindex on records(ordername); create table tsigkeys ( id INT auto_increment, name VARCHAR(255), algorithm VARCHAR(255), secret VARCHAR(255), primary key(id) ); create unique index namealgoindex on tsigkeys(name, algorithm); alter table records change column type type VARCHAR(10); debian/sql/mysql/mysql0000664000000000000000000000355112271305530012226 0ustar create table domains ( id INT auto_increment, name VARCHAR(255) NOT NULL, master VARCHAR(20) DEFAULT NULL, last_check INT DEFAULT NULL, type VARCHAR(6) NOT NULL, notified_serial INT DEFAULT NULL, account VARCHAR(40) DEFAULT NULL, primary key (id) ) engine=InnoDB; CREATE UNIQUE INDEX name_index ON domains(name); CREATE TABLE records ( id INT auto_increment, domain_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, type VARCHAR(6) DEFAULT NULL, content VARCHAR(255) DEFAULT NULL, ttl INT DEFAULT NULL, prio INT DEFAULT NULL, change_date INT DEFAULT NULL, primary key(id) ) engine=InnoDB; CREATE INDEX rec_name_index ON records(name); CREATE INDEX nametype_index ON records(name,type); CREATE INDEX domain_id ON records(domain_id); create table supermasters ( ip VARCHAR(25) NOT NULL, nameserver VARCHAR(255) NOT NULL, account VARCHAR(40) DEFAULT NULL ); GRANT SELECT ON supermasters TO pdns; GRANT ALL ON domains TO pdns; GRANT ALL ON records TO pdns; create table domainmetadata ( id INT auto_increment, domain_id INT NOT NULL, kind VARCHAR(16), content TEXT, primary key(id) ); create table cryptokeys ( id INT auto_increment, domain_id INT NOT NULL, flags INT NOT NULL, active BOOL, content TEXT, primary key(id) ); alter table records add ordername VARCHAR(255); alter table records add auth bool; create index orderindex on records(ordername); create table tsigkeys ( id INT auto_increment, name VARCHAR(255), algorithm VARCHAR(255), secret VARCHAR(255), primary key(id) ); create unique index namealgoindex on tsigkeys(name, algorithm); alter table records change column type type VARCHAR(10); debian/sql/pgsql/0000775000000000000000000000000012271305524011116 5ustar debian/sql/pgsql/3.0-10000664000000000000000000000201212271304440011466 0ustar alter table records add ordername VARCHAR(255); alter table records add auth bool; create index orderindex on records(ordername); create table domainmetadata ( id SERIAL PRIMARY KEY, domain_id INT REFERENCES domains(id) ON DELETE CASCADE, kind VARCHAR(16), content TEXT ); create table cryptokeys ( id SERIAL PRIMARY KEY, domain_id INT REFERENCES domains(id) ON DELETE CASCADE, flags INT NOT NULL, active BOOL, content TEXT ); GRANT ALL ON domainmetadata TO pdns; GRANT ALL ON domainmetadata_id_seq TO pdns; GRANT ALL ON cryptokeys TO pdns; GRANT ALL ON cryptokeys_id_seq TO pdns; create table tsigkeys ( id SERIAL PRIMARY KEY, name VARCHAR(255), algorithm VARCHAR(255), secret VARCHAR(255) ); create unique index namealgoindex on tsigkeys(name, algorithm); GRANT ALL ON tsigkeys TO pdns; GRANT ALL ON tsigkeys_id_seq TO pdns; alter table records alter column type type VARCHAR(10); debian/sql/pgsql/3.3-10000664000000000000000000000166112271305272011506 0ustar -- Change master VARCHAR(20) -> VARCHAR(255) ALTER TABLE domains ALTER COLUMN master TYPE VARCHAR(255); -- Change content VARCHAR(255) -> VARCHAR(65535) ALTER TABLE records ALTER COLUMN content TYPE VARCHAR(65535); -- Lowercase the name column and add a lowercase constraint check UPDATE records SET name=lower(name); ALTER TABLE records ADD CONSTRAINT c_lowercase_name CHECK (((name)::text = lower((name)::text))); -- Change ip VARCHAR(25) -> VARCHAR(64) ALTER TABLE supermasters ALTER COLUMN ip TYPE VARCHAR(64); -- Recreate index DROP INDEX IF EXISTS orderindex; CREATE INDEX recordorder ON records (domain_id, ordername text_pattern_ops); -- Create an index on domainmetadata CREATE INDEX domainidmetaindex ON domainmetadata(domain_id); -- Create an index on cryptokeys CREATE INDEX domainidindex ON cryptokeys(domain_id); -- Change algorithm VARCHAR(255) -> VARCHAR(50) ALTER TABLE tsigkeys ALTER COLUMN algorithm TYPE VARCHAR(50); debian/sql/pgsql/pgsql0000664000000000000000000000503212271304650012166 0ustar create table domains ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, master VARCHAR(128) DEFAULT NULL, last_check INT DEFAULT NULL, type VARCHAR(6) NOT NULL, notified_serial INT DEFAULT NULL, account VARCHAR(40) DEFAULT NULL ); CREATE UNIQUE INDEX name_index ON domains(name); CREATE TABLE records ( id SERIAL PRIMARY KEY, domain_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, type VARCHAR(10) DEFAULT NULL, content VARCHAR(65535) DEFAULT NULL, ttl INT DEFAULT NULL, prio INT DEFAULT NULL, change_date INT DEFAULT NULL, CONSTRAINT domain_exists FOREIGN KEY(domain_id) REFERENCES domains(id) ON DELETE CASCADE, CONSTRAINT c_lowercase_name CHECK (((name)::text = lower((name)::text))) ); CREATE INDEX rec_name_index ON records(name); CREATE INDEX nametype_index ON records(name,type); CREATE INDEX domain_id ON records(domain_id); create table supermasters ( ip VARCHAR(64) NOT NULL, nameserver VARCHAR(255) NOT NULL, account VARCHAR(40) DEFAULT NULL ); -- GRANT SELECT ON supermasters TO pdns; -- GRANT ALL ON domains TO pdns; -- GRANT ALL ON domains_id_seq TO pdns; -- GRANT ALL ON records TO pdns; -- GRANT ALL ON records_id_seq TO pdns; alter table records add ordername VARCHAR(255); alter table records add auth bool; create index recordorder on records (domain_id, ordername text_pattern_ops); create table domainmetadata ( id SERIAL PRIMARY KEY, domain_id INT REFERENCES domains(id) ON DELETE CASCADE, kind VARCHAR(16), content TEXT ); create index domainidmetaindex on domainmetadata(domain_id); create table cryptokeys ( id SERIAL PRIMARY KEY, domain_id INT REFERENCES domains(id) ON DELETE CASCADE, flags INT NOT NULL, active BOOL, content TEXT ); create index domainidindex on cryptokeys(domain_id); -- GRANT ALL ON domainmetadata TO pdns; -- GRANT ALL ON domainmetadata_id_seq TO pdns; -- GRANT ALL ON cryptokeys TO pdns; -- GRANT ALL ON cryptokeys_id_seq TO pdns; create table tsigkeys ( id SERIAL PRIMARY KEY, name VARCHAR(255), algorithm VARCHAR(50), secret VARCHAR(255) ); create unique index namealgoindex on tsigkeys(name, algorithm); -- GRANT ALL ON tsigkeys TO pdns; -- GRANT ALL ON tsigkeys_id_seq TO pdns; alter table records alter column type type VARCHAR(10); debian/resolvconf/0000775000000000000000000000000012271304440011345 5ustar debian/resolvconf/pdns0000664000000000000000000000442312271304440012237 0ustar #!/bin/sh # # Script to update PowerDNS recursor configuration fragment # # N.B. Resolvconf may run us even if pdns not running. # If pdns is installed then we go ahead and update # the pdns configuration file in case pdns is started later. # # Assumption: On entry, PWD contains the resolv.conf-type files # # Licensed under the GNU GPL. See /usr/share/common-licenses/GPL # # History: # April 2005: Written by Jack Bates and # Thomas Hood set -e PATH=/bin:/sbin DEFAULT=/etc/default/pdns [ -f $DEFAULT ] && . $DEFAULT if [ -z "${RESOLVCONF_UPDATE_FORWARDERS:-}" ]; then echo "Warning: \$RESOLVCONF_UPDATE_FORWARDERS not defined in $DEFAULT." >&2 echo " Pulling the emergency brake..." >&2 exit 0 fi case $RESOLVCONF_UPDATE_FORWARDERS in y*|Y*|1|on|On|true|True|TRUE) :;; *) echo "Not updating PowerDNS, disabled in $DEFAULT." >&2 exit 0 ;; esac [ -x /usr/sbin/pdns_server ] || exit 0 [ -x /lib/resolvconf/list-records ] || exit 1 RUN_DIR=/var/run CONF_FILE="$RUN_DIR/pdns.recursors" TMP_FILE="${CONF_FILE}_new.$$" # Get list of records, excluding our own RSLVCNFFILES="$(/lib/resolvconf/list-records | sed -e '/^lo.pdns$/d')" clean_up() { rm -f "$TMP_FILE" ; } trap clean_up EXIT clean_up # Convert nameserver lines to recursor statements, without duplicates if [ "$RSLVCNFFILES" ]; then sed -n " s/^nameserver[[:space:]]\+/recursor=/ # If no substitution (not a nameserver line) then skip line T # Append hold space (i.e., previous recursor statements) to pattern space G # If this line is a duplicate then skip line /\(^.*\n\).*\1/d # Disable 127.0.0.1 lines, can cause a dns loop. /=127\./d # Copy pattern space, including current line, to hold space h # Print current line P " $RSLVCNFFILES > "$TMP_FILE" else :> "$TMP_FILE" fi if [ "$1" = "-i" ]; then mv -f "$TMP_FILE" "$CONF_FILE" exit 0 fi # Reload pdns unless we know its configuration file hasn't changed if [ -x /usr/bin/diff ] && [ -f "$CONF_FILE" ] && /usr/bin/diff -q "$CONF_FILE" "$TMP_FILE" > /dev/null ; then # No change rm -f "$TMP_FILE" else mv -f "$TMP_FILE" "$CONF_FILE" [ -x /etc/init.d/pdns ] && ps -C pdns_server > /dev/null && invoke-rc.d pdns reload || : fi debian/watch0000664000000000000000000000043012271304440010213 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # Site Directory Pattern Version Script version=3 http://downloads.powerdns.com/releases/ pdns-(.*)\.tar\.gz debian uupdate debian/pdns-backend-pipe.examples0000664000000000000000000000004312271304440014206 0ustar debian/config/pdns.local.pipe.conf debian/pdns-server.manpages0000664000000000000000000000044712271304440013157 0ustar debian/tmp/usr/share/man/man8/pdns_control.8 debian/tmp/usr/share/man/man8/pdns_server.8 debian/tmp/usr/share/man/man8/zone2sql.8 debian/tmp/usr/share/man/man8/dnsreplay.8 debian/tmp/usr/share/man/man8/dnsscope.8 debian/tmp/usr/share/man/man8/dnswasher.8 debian/tmp/usr/share/man/man8/pdnssec.8 debian/pdns-backend-ldap.install0000664000000000000000000000032712271304440014026 0ustar debian/tmp/usr/lib/powerdns/libldapbackend.so* usr/lib/powerdns/ debian/tmp/usr/lib/powerdns/libldapbackend.a usr/lib/powerdns/ debian/tmp/usr/bin/zone2ldap usr/bin/ debian/config/dnsdomain2.schema etc/ldap/schema/ debian/pdns-backend-sqlite3.lintian-overrides0000664000000000000000000000016112271304440016456 0ustar # Using dbconfig-common, no need for a templates file in our package. pdns-backend-sqlite3: no-debconf-templates debian/triggers0000664000000000000000000000002512271304440010733 0ustar interest pdns-server debian/pdns-backend-lua.examples0000664000000000000000000000004212271304440014031 0ustar debian/config/pdns.local.lua.conf debian/pdns-backend-sqlite3.dirs0000664000000000000000000000034612271304440013766 0ustar usr/lib/powerdns usr/share/dbconfig-common/data/pdns-backend-sqlite3/install/ usr/share/dbconfig-common/data/pdns-backend-sqlite3/upgrade/sqlite3/ usr/share/doc/pdns-backend-sqlite3 usr/share/pdns-backend-sqlite3 var/lib/powerdns debian/pdns-backend-geo.dirs0000664000000000000000000000006012271304440013145 0ustar usr/lib/powerdns usr/share/doc/pdns-backend-geo debian/pdns-backend-mysql.prerm0000664000000000000000000000057512271304440013737 0ustar #!/bin/sh # # Pre removal set -e # Execute dbconfig-common . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.mysql dbc_go pdns-backend-mysql $@ # Stop pdns. if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-backend-sqlite3.postinst0000664000000000000000000000415612271304440014713 0ustar #! /bin/sh # # postinst script for pdns-backend-sqlite3 set -e # Execute dbconfig-common . /usr/share/debconf/confmodule if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-backend-sqlite3" # rename ucf-conffile. This was mostly stolen from cacti.postinst after # a short discussion on debian-mentors, see # http://lists.debian.org/debian-mentors/2013/07/msg00027.html # and the following thread. Thanks to Paul Gevers renameconffile() { oldname="$1" newname="$2" sourcefile="$3" if [ -f $oldname ] ; then if [ ! -e $newname ] ; then mv $oldname $newname # else: Don't do anything, leave old file in place fi ucf --purge $oldname ucfr --purge $PKGNAME $oldname elif [ ! -e $newname ] ; then # The file was removed, we should respect that. Unfortunately, we don't # have a proper way to tell ucf that for the new location, so we need # to hack it a bit. # We only need to do this if the target does not already exist. If the # target already exists, we can later call ucf straight as there # is already a version of the file available, althought never # provided by this package, but we can just propose the new file anyway. ucf --debconf-ok $sourcefile $newname ucfr $PKGNAME $newname rm -f $newname fi } if [ "$1" = "configure" ]; then if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then renameconffile /etc/powerdns/pdns.d/pdns.local.gsqlite3 /etc/powerdns/pdns.d/pdns.local.gsqlite3.conf /dev/null fi fi . /usr/share/dbconfig-common/dpkg/postinst.sqlite3 dbc_first_version="3.0-1" dbc_generate_include_args="-o template_infile=/usr/share/pdns-backend-sqlite3/pdns.local.gsqlite3.conf" dbc_generate_include=template:/etc/powerdns/pdns.d/pdns.local.gsqlite3.conf dbc_generate_include_owner=pdns dbc_generate_include_perms=0640 dbc_dbfile_owner=pdns:pdns dbc_dbfile_perms=0640 dbc_go pdns-backend-sqlite3 $@ ucfr $PKGNAME /etc/powerdns/pdns.d/pdns.local.gsqlite3.conf # Activate trigger dpkg-trigger pdns-server # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-backend-lua.dirs0000664000000000000000000000006012271304440013154 0ustar usr/lib/powerdns usr/share/doc/pdns-backend-lua debian/pdns-server.dirs0000664000000000000000000000025412271304440012321 0ustar usr/bin usr/sbin etc/init.d etc/default etc/powerdns etc/powerdns/pdns.d etc/resolvconf etc/resolvconf/update.d usr/share/man/man8 usr/share/pdns-server etc/insserv.conf.d debian/pdns-backend-mysql.postrm0000664000000000000000000000240212271304440014125 0ustar #!/bin/sh # # Post removal set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-backend-mysql" # Execute dbconfig-common if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then . /usr/share/dbconfig-common/dpkg/postrm.mysql dbc_go pdns-backend-mysql $@ fi # Remove configuration file, dbconfig-common might not be able to do so. if [ "$1" = "purge" ]; then # Remove files registered with ucf. # this has been pulled from aide-common.postrm UCF="ucf" UCFR="ucfr" if command -v ucfq >/dev/null; then for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do rm -f ${file}$ext done rm -f ${file} if command -v $UCF >/dev/null; then $UCF --purge ${file} fi if command -v $UCFR >/dev/null; then $UCFR --purge $PKGNAME ${file} fi done else echo >&2 "ucf no longer installed, not cleaning up" fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-backend-pipe.postinst0000664000000000000000000000045712271304440014264 0ustar #!/bin/sh # # postinst script for pdns-backend-pipe set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi # Activate trigger dpkg-trigger pdns-server # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-backend-lua.prerm0000664000000000000000000000024412271304440013344 0ustar #!/bin/sh # # Add call to init script to actually stop pdns. set -e if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi #DEBHELPER# exit 0 debian/pdns-backend-ldap.prerm0000664000000000000000000000024412271304440013503 0ustar #!/bin/sh # # Add call to init script to actually stop pdns. set -e if [ -x "/etc/init.d/pdns" ]; then invoke-rc.d pdns stop || exit $? fi #DEBHELPER# exit 0 debian/pdns-backend-pgsql.dirs0000664000000000000000000000031312271304440013522 0ustar usr/lib/powerdns usr/share/dbconfig-common/data/pdns-backend-pgsql/install/ usr/share/dbconfig-common/data/pdns-backend-pgsql/upgrade/pgsql/ usr/share/doc/pdns-backend-pgsql usr/share/pdns-backend-pgsql debian/pdns-server.postinst0000664000000000000000000001203112271304440013237 0ustar #!/bin/sh # # postinst script for pdns-server set -e # Load debconf . /usr/share/debconf/confmodule if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-server" PDNSCONF=/etc/powerdns/pdns.conf PDNSDEFAULT=/etc/default/pdns if [ -e $PDNSCONF ]; then PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'` fi if [ -z "$PDNSDIR" ]; then PDNSDIR=/etc/powerdns/pdns.d fi PDNSLOCAL=$PDNSDIR/pdns.local.conf # Temporary files PDNSCONFTEMP=`mktemp` PDNSLOCALTEMP=`mktemp` PDNSDEFAULTTEMP=`mktemp` # rename ucf-conffile. This was mostly stolen from cacti.postinst after # a short discussion on debian-mentors, see # http://lists.debian.org/debian-mentors/2013/07/msg00027.html # and the following thread. Thanks to Paul Gevers renameconffile() { oldname="$1" newname="$2" sourcefile="$3" if [ -f $oldname ] ; then if [ ! -e $newname ] ; then mv $oldname $newname # else: Don't do anything, leave old file in place fi ucf --purge $oldname ucfr --purge $PKGNAME $oldname elif [ ! -e $newname ] ; then # The file was removed, we should respect that. Unfortunately, we don't # have a proper way to tell ucf that for the new location, so we need # to hack it a bit. # We only need to do this if the target does not already exist. If the # target already exists, we can later call ucf straight as there # is already a version of the file available, althought never # provided by this package, but we can just propose the new file anyway. ucf --debconf-ok $sourcefile $newname ucfr $PKGNAME $newname rm -f $newname fi } case "$1" in configure) if [ -z "`getent group pdns`" ]; then addgroup --quiet --system pdns fi if [ -z "`getent passwd pdns`" ]; then echo -n "Creating user and group pdns..." adduser --quiet --system --home /var/spool/powerdns --shell /bin/false --ingroup pdns --disabled-password --disabled-login --gecos "PowerDNS" pdns echo "done" fi # Fill the temporary files with config items. cat /usr/share/pdns-server/pdns.conf > $PDNSCONFTEMP cat /usr/share/pdns-server/pdns.local.conf > $PDNSLOCALTEMP cat /usr/share/pdns-server/pdns > $PDNSDEFAULTTEMP # Do we listen on a specified address db_get pdns-server/localaddress || true if [ ! -z "$RET" ]; then sed -i -e "s|^\(#\)\?\(# \)\?local-address=.*$|local-address=$RET|" $PDNSCONFTEMP fi # Allow recursion subnets ? db_get pdns-server/allowrecursion || true if [ ! -z "$RET" ]; then sed -i -e "s|^\(#\)\?\(# \)\?allow-recursion=.*$|allow-recursion=$RET|" $PDNSCONFTEMP fi # this can be removed once we do not have to update from # wheezy (pdns 3.1) any more. Note: there was never pdns 3.2 in Debian if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then renameconffile $PDNSDIR/pdns.local $PDNSDIR/pdns.local.conf $PDNSLOCALTEMP renameconffile $PDNSDIR/pdns.simplebind $PDNSDIR/pdns.simplebind.conf /usr/share/pdns-server/pdns.simplebind.conf fi # register configuration files with ucf ucfr $PKGNAME $PDNSCONF ucfr $PKGNAME $PDNSDEFAULT ucfr $PKGNAME $PDNSLOCAL ucfr $PKGNAME $PDNSDIR/pdns.simplebind.conf # Install the new configuration files if the user wants it. ucf --debconf-ok $PDNSCONFTEMP $PDNSCONF ucf --debconf-ok $PDNSDEFAULTTEMP $PDNSDEFAULT ucf --debconf-ok $PDNSLOCALTEMP $PDNSLOCAL ucf --debconf-ok /usr/share/pdns-server/pdns.simplebind.conf $PDNSDIR/pdns.simplebind.conf # Stop the debconf stuff db_stop || true # Clean up temporary files. rm -f $PDNSCONFTEMP $PDNSLOCALTEMP $PDNSDEFAULTTEMP # There could be passwords in these files. PowerDNS first reads the # configuration files and then drop root privileges. if [ -z "$2" ]; then [ -e $PDNSCONF ] && chmod 0600 $PDNSCONF [ -e $PDNSLOCAL ] && chmod 0600 $PDNSLOCAL [ -d $PDNSDIR ] && chmod 0755 $PDNSDIR [ -e $PDNSDEFAULT ] && chmod 0644 $PDNSDEFAULT fi # If we still have the default config, make sure bindbackend.conf exists PDNSBIND="/etc/powerdns/pdns.d/pdns.simplebind.conf" PDNSBINDBACKENDCONF="/etc/powerdns/bindbackend.conf" if [ -e "$PDNSBIND" ]; then if grep -q "^bind-config=$PDNSBINDBACKENDCONF$" $PDNSBIND; then touch $PDNSBINDBACKENDCONF fi fi ;; triggered) if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d pdns restart || exit $? else /etc/init.d/pdns restart || exit $? fi # Stop the debconf stuff db_stop || true ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Recover from incorrect init.d script headers in version 2.9.22-1 and earlier if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "2.9.22-1" \ && [ -f /etc/rc0.d/K[0-9][0-9]pdns ] \ && ! [ -f /etc/rc1.d/K[0-9][0-9]pdns ]; then update-rc.d -f pdns remove fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-server.config0000664000000000000000000000210012271304440012615 0ustar #!/bin/sh # # Load several components for debconf configuration set -e . /usr/share/debconf/confmodule PDNSCONF=/etc/powerdns/pdns.conf db_version 2.0 if [ ! -f $PDNSCONF ]; then db_input medium pdns-server/localaddress || true db_input medium pdns-server/allowrecursion || true db_go || true else LOCAL=`(cat $PDNSCONF | grep "^local-address=" | awk -F '=' '{print $2}') || true` RECURSION=`(cat $PDNSCONF | grep "^allow-recursion=" | awk -F '=' '{print $2}') || true` # Put multiple lines on one line and separate them by a comma REC="" for i in $RECURSION; do REC="$i,$REC" done # Remove , on the end of the line RECURSION=`echo $REC | sed -e 's/,$//'` if [ ! -z "$RECURSION" ]; then db_set pdns-server/allowrecursion "$RECURSION" else db_set pdns-server/allowrecursion "127.0.0.1" fi if [ ! -z "$LOCAL" ]; then db_set pdns-server/localaddress $LOCAL else db_set pdns-server/localaddress "0.0.0.0" fi db_fset pdns-server/allowrecursion seen true db_fset pdns-server/localaddress seen true fi db_stop || true exit 0 debian/pdns-backend-mysql.dirs0000664000000000000000000000031312271304440013541 0ustar usr/lib/powerdns usr/share/dbconfig-common/data/pdns-backend-mysql/install/ usr/share/dbconfig-common/data/pdns-backend-mysql/upgrade/mysql/ usr/share/doc/pdns-backend-mysql usr/share/pdns-backend-mysql debian/pdns-backend-mysql.postinst0000664000000000000000000000405212271304440014467 0ustar #!/bin/sh # # postinst script for pdns-backend-mysql set -e # Execute dbconfig-common . /usr/share/debconf/confmodule if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-backend-gmysql" # rename ucf-conffile. This was mostly stolen from cacti.postinst after # a short discussion on debian-mentors, see # http://lists.debian.org/debian-mentors/2013/07/msg00027.html # and the following thread. Thanks to Paul Gevers renameconffile() { oldname="$1" newname="$2" sourcefile="$3" if [ -f $oldname ] ; then if [ ! -e $newname ] ; then mv $oldname $newname # else: Don't do anything, leave old file in place fi ucf --purge $oldname ucfr --purge $PKGNAME $oldname elif [ ! -e $newname ] ; then # The file was removed, we should respect that. Unfortunately, we don't # have a proper way to tell ucf that for the new location, so we need # to hack it a bit. # We only need to do this if the target does not already exist. If the # target already exists, we can later call ucf straight as there # is already a version of the file available, althought never # provided by this package, but we can just propose the new file anyway. ucf --debconf-ok $sourcefile $newname ucfr $PKGNAME $newname rm -f $newname fi } if [ "$1" = "configure" ]; then if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then renameconffile /etc/powerdns/pdns.d/pdns.local.gmysql /etc/powerdns/pdns.d/pdns.local.gmysql.conf /dev/null fi fi . /usr/share/dbconfig-common/dpkg/postinst.mysql dbc_first_version="3.0-1" dbc_generate_include_args="-o template_infile=/usr/share/pdns-backend-mysql/pdns.local.gmysql.conf" dbc_generate_include=template:/etc/powerdns/pdns.d/pdns.local.gmysql.conf dbc_generate_include_owner=pdns dbc_generate_include_perms=0640 dbc_go pdns-backend-mysql $@ # Activate trigger dpkg-trigger pdns-server ucfr $PKGNAME /etc/powerdns/pdns.d/pdns.local.gmysql.conf # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-server.postrm0000664000000000000000000000214012271304440012700 0ustar #!/bin/sh # # postrm script for pdns-server set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-server" case "$1" in remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; purge) # Remove files registered with ucf. # this has been pulled from aide-common.postrm UCF="ucf" UCFR="ucfr" if command -v ucfq >/dev/null; then for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do rm -f ${file}$ext done rm -f ${file} if command -v $UCF >/dev/null; then $UCF --purge ${file} fi if command -v $UCFR >/dev/null; then $UCFR --purge $PKGNAME ${file} fi done else echo >&2 "ucf no longer installed, not cleaning up" fi ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pdns-server.examples0000664000000000000000000000004312271304440013172 0ustar debian/config/pdns.local.bind.conf debian/pdns-backend-sqlite3.postrm0000664000000000000000000000241212271304440014345 0ustar #!/bin/sh # # Post removal set -e if [ -n "$PDNSDEBUG" ]; then echo "now debugging $0 $@" set -x fi PKGNAME="pdns-backend-sqlite3" # Execute dbconfig-common if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm.sqlite3 ]; then . /usr/share/dbconfig-common/dpkg/postrm.sqlite3 dbc_go pdns-backend-sqlite3 $@ fi # Remove configuration file, dbconfig-common might not be able to do so. if [ "$1" = "purge" ]; then # Remove files registered with ucf. # this has been pulled from aide-common.postrm UCF="ucf" UCFR="ucfr" if command -v ucfq >/dev/null; then for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do rm -f ${file}$ext done rm -f ${file} if command -v $UCF >/dev/null; then $UCF --purge ${file} fi if command -v $UCFR >/dev/null; then $UCFR --purge $PKGNAME ${file} fi done else echo >&2 "ucf no longer installed, not cleaning up" fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/rules0000775000000000000000000000247612271306160010257 0ustar #!/usr/bin/make -f # Backends backends := ldap pipe gmysql gpgsql gsqlite3 geo lua DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) # Use new build system %: dh $@ --with autoreconf --parallel override_dh_auto_configure: ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --sysconfdir=/etc/powerdns \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --libdir='$${prefix}/lib/powerdns' \ --libexecdir='$${prefix}/lib' \ --with-dynmodules="$(backends)" \ --with-modules="" \ --with-pgsql-includes=`pg_config --includedir` \ --with-mysql-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \ --with-boost=/usr \ --enable-cryptopp \ --enable-botan1.10 \ --enable-tools \ --enable-unit-tests # pdns-server has a debug package override_dh_strip: dh_strip --dbg-package=pdns-server-dbg # Additional permissions override_dh_fixperms: dh_fixperms chmod 755 debian/pdns-server/etc/resolvconf/update.d/pdns # init script needs to be named pdns, not pdns-server override_dh_installinit: dh_installinit --name=pdns # Verbose build (shows used compiler/linker and their flags) override_dh_auto_build-arch: dh_auto_build -- V=1 # we need to zap generated files override_dh_auto_clean: dh_auto_clean rm -f pdns/backends/bind/dnslabeltext.cc debian/pdns-backend-mysql.config0000664000000000000000000000053112271304440014047 0ustar #!/bin/sh # # Install / upgrade database. set -e # Execute dbconfig-common . /usr/share/debconf/confmodule if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then . /usr/share/dbconfig-common/dpkg/config.mysql # Default values dbc_dbuser="pdns" dbc_dbname="pdns" dbc_first_version="3.0-1" dbc_go pdns-backend-mysql $@ fi exit 0 debian/pdns-backend-ldap.examples0000664000000000000000000000004312271304440014171 0ustar debian/config/pdns.local.ldap.conf