4 | #include "namespaces.hh"
5 |
6 | void doSecPoll(bool first);
7 | extern std::string g_security_message;
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-delete-multi-add-host/description:
--------------------------------------------------------------------------------
1 | This test performs a delete without a record type (which removes all the items
2 | with that name). It then adds the records again. Also contains an 'add' to the TXT
3 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-nsec3params/skip.narrow:
--------------------------------------------------------------------------------
1 | This test is skipped in narrow mode as we cannot set narrow via nsec3param.
2 | So, this test could impact other tests, as after this test has run, narrow mode would be off.
3 |
--------------------------------------------------------------------------------
/regression-tests/tests/basic-srv/expected_result:
--------------------------------------------------------------------------------
1 | 0 _ldap._tcp.dc.test.com. IN SRV 3600 0 100 389 server2.example.net.
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='_ldap._tcp.dc.test.com.', qtype=SRV
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/external-cname-pointer/description:
--------------------------------------------------------------------------------
1 | A series of CNAME pointers can lead to an outside reference, which should be
2 | passed in the Answer section. PowerDNS sends an unauthoritative NOERROR,
3 | bind sends a SERVFAIL.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-add-invalid-record/command:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | cleandig host-invalid.test.dyndns ANY hidesoadetails
3 | tests/$testname/sendupdate.pl $nameserver $port
4 | cleandig host-invalid.test.dyndns ANY hidesoadetails
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/basic-aaaa-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 ipv6.example.com. IN AAAA 120 2001:6a8:0:1:210:4bff:fe4b:4c61
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='ipv6.example.com.', qtype=AAAA
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/mx-to-cname/description:
--------------------------------------------------------------------------------
1 | MX records cannot point to CNAMEs, according to the RFC. Yet when this
2 | happens, a nameserver should not fall over, but let the mailserver process
3 | the CNAME further (all do, even qmail).
4 |
--------------------------------------------------------------------------------
/regression-tests.recursor/direct-cname/expected_result:
--------------------------------------------------------------------------------
1 | 0 www-d.prefect.example.net. IN CNAME 3600 www.arthur.example.net.
2 | Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
3 | Reply to question for qname='www-d.prefect.example.net.', qtype=CNAME
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-nsec3params-with-others/skip.narrow:
--------------------------------------------------------------------------------
1 | This test is skipped in narrow mode as we cannot set narrow via nsec3param.
2 | So, this test could impact other tests, as after this test has run, narrow mode would be off.
3 |
--------------------------------------------------------------------------------
/regression-tests/tests/dname-self/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='d.test.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/nxdomain-for-unknown-record/description:
--------------------------------------------------------------------------------
1 | When authoritative for a domain and sure that the entire record does not
2 | exist, an no referral NS is available, send an empty packet with 'NXDOMAIN'
3 | in the flags ('data error').
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/wildcard-overlaps-delegation/expected_result:
--------------------------------------------------------------------------------
1 | 1 sub.test.test.com. IN NS 3600 ns-test.example.net.test.com.
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
3 | Reply to question for qname='www.sub.test.test.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/docs/markdown/theme/content.html:
--------------------------------------------------------------------------------
1 | {% if source %}
2 |
3 | {% for filename in source %}
4 | {{ filename }}
5 | {% endfor %}
6 |
7 | {% endif %}
8 |
9 | {{ content }}
10 |
--------------------------------------------------------------------------------
/modules/luabackend/lua_functions.hh:
--------------------------------------------------------------------------------
1 | #ifndef LUABACKEND_EXTERN_F_HH
2 | #define LUABACKEND_EXTERN_F_HH
3 |
4 | //extern LUABackend* lb;
5 | extern int my_lua_panic(lua_State* lua);
6 | extern void register_lua_functions(lua_State* lua);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/ge_p1p1_to_p2.c:
--------------------------------------------------------------------------------
1 | #include "ge.h"
2 |
3 | /*
4 | r = p
5 | */
6 |
7 | extern void ge_p1p1_to_p2(ge_p2 *r,const ge_p1p1 *p)
8 | {
9 | fe_mul(r->X,p->X,p->T);
10 | fe_mul(r->Y,p->Y,p->Z);
11 | fe_mul(r->Z,p->Z,p->T);
12 | }
13 |
--------------------------------------------------------------------------------
/regression-tests.api/runtests:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | if [ ! -d .venv ]; then
4 | virtualenv .venv
5 | fi
6 | . .venv/bin/activate
7 | python -V
8 | pip install -r requirements.txt
9 |
10 | set -e
11 | set -x
12 | exec ./runtests.py "$@"
13 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-add-delete-mx/description:
--------------------------------------------------------------------------------
1 | A test to see if RFC2136 add and delete record works properly on an MX record,
2 | this is interesting because the priority is stored separately in powerdns and
3 | it is part of the RDATA.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-replace-mx/description:
--------------------------------------------------------------------------------
1 | A test for RFC2136 which checks section 3.4.2.2 - Replacing a record. In this
2 | test, we specifically use MX record, to see if the TTL changes of the MX record
3 | with the correct priority.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/8bit-txt-unescaped/expected_result:
--------------------------------------------------------------------------------
1 | 0 hightxt.test.com. IN TXT 3600 "v=spf1 mx ip4:78.46.192.210 \226\128\147all"
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='hightxt.test.com.', qtype=TXT
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-to-nxdomain-any/expected_result:
--------------------------------------------------------------------------------
1 | 0 nxd.example.com. IN CNAME 120 nxdomain.example.com.
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='nxd.example.com.', qtype=ANY
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent-wildcard-below-ent/expected_result:
--------------------------------------------------------------------------------
1 | 0 something.a.b.c.test.com. IN A 3600 8.7.6.5
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='something.a.b.c.test.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests.recursor/hijack-1/command:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . vars
3 | cleandig hijacker.example.net ns | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
4 | cleandig www.hijackme.example.net a | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
5 | sleep 5
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-in-between/description:
--------------------------------------------------------------------------------
1 | This test checks if we add a record correctly in between two other records.
2 | This requires us to correct ENT records. The test is also focussed on checking
3 | if we purge our cache correctly.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/apex-level-a-but-no-a/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='test.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-and-wildcard-at-root/description:
--------------------------------------------------------------------------------
1 | If a CNAME wildcard is present, but there is also a direct hit for the qname
2 | but not for the qtype, a NODATA response should ensue. This test runs at the
3 | root of the domain (the 'apex')
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/ns-with-identical-glue/expected_result:
--------------------------------------------------------------------------------
1 | 1 blah.test.com. IN NS 3600 blah.test.com.
2 | 2 blah.test.com. IN A 3600 192.168.6.1
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='blah.test.com.', qtype=MX
5 |
--------------------------------------------------------------------------------
/pdns/mkpubsuffixcc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | (echo "const char* g_pubsuffix[]={";
4 | for a in $(grep -v "//" effective_tld_names.dat | grep \\. | egrep "^[.0-9a-z-]*$" ; echo "co.za" ; echo "co.il" )
5 | do
6 | echo \"$a\",
7 | done
8 | echo "0};") > pubsuffix.cc
--------------------------------------------------------------------------------
/regression-tests.recursor/direct-cname-to-nxdomain/expected_result:
--------------------------------------------------------------------------------
1 | 0 www-a.prefect.example.net. IN CNAME 3600 www-a-2.prefect.example.net.
2 | Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
3 | Reply to question for qname='www-a.prefect.example.net.', qtype=CNAME
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-nsec3params-with-others/description:
--------------------------------------------------------------------------------
1 | This test checks if adding/updating an NSEC3PARAM with other records in one go works.
2 | When adding/updating the NSEC3PARAM, the new values must also be used on the other records as well.
3 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-and-wildcard/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='www.test.test.com.', qtype=MX
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='c.test.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/root-ns/expected_result:
--------------------------------------------------------------------------------
1 | 0 wtest.com. IN NS 3600 .
2 | 0 wtest.com. IN NS 3600 ns1.wtest.com.
3 | 2 ns1.wtest.com. IN A 3600 2.3.4.5
4 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
5 | Reply to question for qname='wtest.com.', qtype=NS
6 |
--------------------------------------------------------------------------------
/regression-tests/tests/secure-delegation-ds-ns/expected_result:
--------------------------------------------------------------------------------
1 | 1 dsdelegation.example.com. IN NS 120 ns.example.com.
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='www.dsdelegation.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/m4/pdns_with_geo.m4:
--------------------------------------------------------------------------------
1 | AC_DEFUN([PDNS_CHECK_GEOIP], [
2 | PKG_CHECK_MODULES([GEOIP], [geoip],[],
3 | AC_MSG_ERROR([Could not find libGeoIP])
4 | )
5 | PKG_CHECK_MODULES([YAML], [yaml-cpp >= 0.5],[],
6 | AC_MSG_ERROR([Could not find yaml-cpp])
7 | )
8 | ])
9 |
--------------------------------------------------------------------------------
/modules/remotebackend/regression-tests/dnssec-keys/expected_result:
--------------------------------------------------------------------------------
1 | 0 example.com. IN DNSKEY 120 256 3 8 ...
2 | 0 example.com. IN DNSKEY 120 257 3 8 ...
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='example.com.', qtype=DNSKEY
5 |
--------------------------------------------------------------------------------
/regression-tests.nobackend/tinydns-data-check/command:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | for zone in `cat ../regression-tests/named.conf | grep 'zone ' | cut -f 2 -d \"`
4 | do
5 | md5sum ../regression-tests/zones/$zone
6 | done
7 | md5sum ../modules/tinydnsbackend/data.cdb
8 |
--------------------------------------------------------------------------------
/regression-tests/tests/basic-soa-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 example.com. IN SOA 100000 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='example.com.', qtype=SOA
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent-any/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='c.test.com.', qtype=ANY
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent-soa/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='c.test.com.', qtype=SOA
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/glue-referral/description:
--------------------------------------------------------------------------------
1 | When something.example.com is delegated to NS records that reside *within*
2 | something.example.com, glue is needed. The IP addresses of the relevant NS
3 | records should then be provided in the additional section.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/multi-txt-escape-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 escapedtext.example.com. IN TXT 120 "begin" "the \"middle\" p\\art" "the end"
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='escapedtext.example.com.', qtype=TXT
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/multi-txt-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 multitext.example.com. IN TXT 120 "text part one" "text part two" "text part three"
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='multitext.example.com.', qtype=TXT
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/secure-delegation/expected_result:
--------------------------------------------------------------------------------
1 | 0 secure-delegated.dnssec-parent.com. IN A 3600 9.9.9.9
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='secure-delegated.dnssec-parent.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/contrib/upstart-recursor.conf:
--------------------------------------------------------------------------------
1 | # recursor - the PowerDNS Recursor
2 | # for in /etc/init/recursor.conf
3 | description "PowerDNS Recursor"
4 |
5 | start on runlevel [2345]
6 | stop on runlevel [!2345]
7 | respawn
8 |
9 | exec /usr/sbin/pdns_recursor --daemon=no
10 |
--------------------------------------------------------------------------------
/m4/pdns_check_curl_program.m4:
--------------------------------------------------------------------------------
1 | AC_DEFUN([PDNS_CHECK_CURL_PROGRAM], [
2 | AC_CHECK_PROG([CURL], [curl], [curl], [no])
3 |
4 | AS_IF([test "x$CURL" = "xno"], [
5 | AC_MSG_ERROR([curl program is missing, required for running remotebackend unit tests])
6 | ])
7 | ])
8 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-and-wildcard-at-root/expected_result:
--------------------------------------------------------------------------------
1 | 1 wtest.com. IN SOA 3600 ns1.wtest.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='secure.wtest.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-and-wildcard-but-no-correct-type/description:
--------------------------------------------------------------------------------
1 | If a CNAME wildcard is present, and it matches, but points to a record that
2 | does not have the requested type, a CNAME should be emitted plus a SOA to
3 | indicate no match with the right record
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/long-name/command:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | cleandig aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.test.com TXT
3 |
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/obscured-wildcard/expected_result:
--------------------------------------------------------------------------------
1 | 1 wtest.com. IN SOA 3600 ns1.wtest.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='www.a.something.wtest.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/uppercase-nsec/description:
--------------------------------------------------------------------------------
1 | Make sure we lowercase the next name in an NSEC because validators
2 | do not (RFC6840 5.1).
3 | Also, make sure our NSEC3 apex bitmap includes DNSKEY and NSEC3PARAM
4 | if the zone name part of the query includes uppercase.
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/wrong-type-wildcard/expected_result:
--------------------------------------------------------------------------------
1 | 1 wtest.com. IN SOA 3600 ns1.wtest.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='www.something.wtest.com.', qtype=TXT
4 |
--------------------------------------------------------------------------------
/pdns/ext/Makefile.am:
--------------------------------------------------------------------------------
1 | SUBDIRS = \
2 | $(POLARSSL_SUBDIR) \
3 | $(ED25519_SUBDIR) \
4 | yahttp \
5 | rapidjson
6 |
7 | DIST_SUBDIRS = \
8 | polarssl \
9 | ed25519 \
10 | yahttp \
11 | rapidjson
12 |
13 | EXTRA_DIST = \
14 | luawrapper/include/LuaContext.hpp
15 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-delegate-in-between/description:
--------------------------------------------------------------------------------
1 | This tests adds a delegate between two (existing) records. The test validates
2 | that we set our ordername correctly. It also validates that our cache is
3 | correctly purged (when we are selective about it).
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/one-step-cname-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 outpost.example.com. IN A 120 192.168.2.1
2 | 0 www.example.com. IN CNAME 120 outpost.example.com.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='www.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/too-big-for-udp-query/description:
--------------------------------------------------------------------------------
1 | UDP dns packets can only be 512 bytes long - when they are longer, they need
2 | to get truncated, and have the 'TC' bit set, to inform the client that they
3 | need to requery over TCP. This query should get truncated.
4 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/sha512.h:
--------------------------------------------------------------------------------
1 | extern int crypto_hashblocks(unsigned char *statebytes,const unsigned char *in,unsigned long long inlen);
2 | extern int crypto_hash_sha512(unsigned char *out,const unsigned char *in,unsigned long long inlen);
3 |
4 | #define crypto_hash_sha512_BYTES 64
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/direct-dnskey/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='example.com.', qtype=DNSKEY
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent-rr-enclosed-in-ent/expected_result:
--------------------------------------------------------------------------------
1 | 1 test.com. IN SOA 3600 ns1.test.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='b.c.test.com.', qtype=TXT
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/internal-referral/description:
--------------------------------------------------------------------------------
1 | When something.example.com is delegated to NS records that reside *within*
2 | example.com, additional processing should place the A for the NS records in
3 | the additional section. NS records should come in the authority section.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/nxdomain-for-unknown-record/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='no-such-host.example.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/modules/geobackend/Makefile.am:
--------------------------------------------------------------------------------
1 | pkglib_LTLIBRARIES = libgeobackend.la
2 |
3 | EXTRA_DIST = OBJECTFILES OBJECTLIBS
4 |
5 | libgeobackend_la_SOURCES = \
6 | geobackend.cc geobackend.hh \
7 | ippreftree.cc ippreftree.hh
8 |
9 | libgeobackend_la_LDFLAGS = -module -avoid-version
10 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/fe_0.c:
--------------------------------------------------------------------------------
1 | #include "fe.h"
2 |
3 | /*
4 | h = 0
5 | */
6 |
7 | void fe_0(fe h)
8 | {
9 | h[0] = 0;
10 | h[1] = 0;
11 | h[2] = 0;
12 | h[3] = 0;
13 | h[4] = 0;
14 | h[5] = 0;
15 | h[6] = 0;
16 | h[7] = 0;
17 | h[8] = 0;
18 | h[9] = 0;
19 | }
20 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/fe_1.c:
--------------------------------------------------------------------------------
1 | #include "fe.h"
2 |
3 | /*
4 | h = 1
5 | */
6 |
7 | void fe_1(fe h)
8 | {
9 | h[0] = 1;
10 | h[1] = 0;
11 | h[2] = 0;
12 | h[3] = 0;
13 | h[4] = 0;
14 | h[5] = 0;
15 | h[6] = 0;
16 | h[7] = 0;
17 | h[8] = 0;
18 | h[9] = 0;
19 | }
20 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/ge_p1p1_to_p3.c:
--------------------------------------------------------------------------------
1 | #include "ge.h"
2 |
3 | /*
4 | r = p
5 | */
6 |
7 | extern void ge_p1p1_to_p3(ge_p3 *r,const ge_p1p1 *p)
8 | {
9 | fe_mul(r->X,p->X,p->T);
10 | fe_mul(r->Y,p->Y,p->Z);
11 | fe_mul(r->Z,p->Z,p->T);
12 | fe_mul(r->T,p->X,p->Y);
13 | }
14 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-add-delete-cname/description:
--------------------------------------------------------------------------------
1 | A test to see if RFC2136 add and delete record works properly on a cname record.
2 | This is important because CNAME's have a special function when they are
3 | replaced. This test aims to check add/delete of the cname.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/any-nxdomain/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='nxdomain.example.com.', qtype=ANY
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/ds-at-apex-noerror/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='example.com.', qtype=DS
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/same-level-referral/expected_result:
--------------------------------------------------------------------------------
1 | 1 france.example.com. IN NS 120 ns1.otherprovider.net.
2 | 1 france.example.com. IN NS 120 ns2.otherprovider.net.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='france.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent-asterisk/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='sub.host.sub.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/non-existing-record-other-types-exist-ns/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='ns1.example.com.', qtype=AAAA
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/non-existing-record-other-types-exist/description:
--------------------------------------------------------------------------------
1 | When asking for a record/type combination which does not exist, but the
2 | record in question does have other types available, a nameserver should
3 | return an authoritative empty no-error packet, and NOT set NXDOMAIN.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/non-existing-record-other-types-exist/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='outpost.example.com.', qtype=AAAA
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/nsec3-hash-query/expected_result:
--------------------------------------------------------------------------------
1 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
2 | Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='vtnq6ocn2vkuiv3nju14oqtaen2mt5sk.example.com.', qtype=A
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/same-level-referral-soa/expected_result:
--------------------------------------------------------------------------------
1 | 1 france.example.com. IN NS 120 ns1.otherprovider.net.
2 | 1 france.example.com. IN NS 120 ns2.otherprovider.net.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='france.example.com.', qtype=SOA
5 |
--------------------------------------------------------------------------------
/modules/luabackend/test/pdns:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ../../../pdns/pdns_server --daemon=no --local-port=5300 --socket-dir=./ \
4 | --no-shuffle --launch=lua --send-root-referral --loglevel=9 \
5 | --config-dir=./ --cache-ttl=0 --negquery-cache-ttl=0 --query-cache-ttl=0 --recursive-cache-ttl=0
6 |
--------------------------------------------------------------------------------
/pdns/testrunner.cc:
--------------------------------------------------------------------------------
1 | #define BOOST_TEST_DYN_LINK
2 | #define BOOST_TEST_MAIN
3 | #define BOOST_TEST_MODULE unit
4 |
5 | #ifdef HAVE_CONFIG_H
6 | #include "config.h"
7 | #endif
8 | #include "packetcache.hh"
9 | StatBag S;
10 | PacketCache PC;
11 |
12 | #include
13 |
--------------------------------------------------------------------------------
/regression-tests.recursor/simple-cname-to-a/expected_result:
--------------------------------------------------------------------------------
1 | 0 www-d.prefect.example.net. IN CNAME 3600 www.arthur.example.net.
2 | 0 www.arthur.example.net. IN A 3600 192.0.2.2
3 | Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='www-d.prefect.example.net.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-deep-add-delete/description:
--------------------------------------------------------------------------------
1 | This test performs a simple add and delete of an A-record on a very deep level,
2 | which should cause ENT's to be inserted. This test also validates if the cache
3 | is cleaned properly and NSEC(3) records are returned correctly.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/ds-at-secure-delegation/expected_result:
--------------------------------------------------------------------------------
1 | 0 dsdelegation.example.com. IN DS 120 28129 8 1 caf1eaaecdabe7616670788f9022454bf5fd9fda
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='dsdelegation.example.com.', qtype=DS
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/mx-with-simple-additional-processing/description:
--------------------------------------------------------------------------------
1 | Example.com has two MX records, one of which is out-of-bailiwick and should
2 | not receive additional processing. The other is internal to the zone and has
3 | three A records, which should all be in the additional section.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/out-of-bailiwick-referral/expected_result:
--------------------------------------------------------------------------------
1 | 1 france.example.com. IN NS 120 ns1.otherprovider.net.
2 | 1 france.example.com. IN NS 120 ns2.otherprovider.net.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='www.france.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/pretty-big-packet/description:
--------------------------------------------------------------------------------
1 | DNS employs label compression to fit big answers in a small packet. This
2 | test performs a query that without proper compression would not fit. Runs
3 | dig in debug mode which makes proper operation very dependent on your
4 | version of dig.
5 |
--------------------------------------------------------------------------------
/pdns/ext/yahttp/yahttp/Makefile.am:
--------------------------------------------------------------------------------
1 | noinst_LTLIBRARIES = libyahttp.la
2 |
3 | libyahttp_la_SOURCES = \
4 | cookie.hpp \
5 | exception.hpp \
6 | reqresp.cpp \
7 | reqresp.hpp \
8 | router.cpp \
9 | router.hpp \
10 | url.hpp \
11 | utility.hpp \
12 | yahttp-config.h \
13 | yahttp.hpp
14 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-add-invalid-record/description:
--------------------------------------------------------------------------------
1 | This test tries to add a bogus record. It's an invalid record because not all the
2 | specifications have been met. (no type, etc). The test is using DNS::Update from perl
3 | because nsupdate does not allow you to send bogus records.
4 |
--------------------------------------------------------------------------------
/regression-tests/tests/basic-nonzone/expected_result:
--------------------------------------------------------------------------------
1 | 0 nztest.com. IN A 3600 127.0.0.1
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='nztest.com.', qtype=A
4 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
5 | Reply to question for qname='testnz.com.', qtype=A
6 |
--------------------------------------------------------------------------------
/regression-tests/zones/stest.com:
--------------------------------------------------------------------------------
1 | $TTL 120
2 | $ORIGIN stest.com.
3 | @ IN SOA ns1.example.com. ahu.example.com. (
4 | 2000081501
5 | 8H ; refresh
6 | 2H ; retry
7 | 1W ; expire
8 | 1D ; default_ttl
9 | )
10 |
11 | @ IN NS ns1.example.com.
12 | @ IN NS ns2.example.com.
13 |
--------------------------------------------------------------------------------
/regression-tests/zones/tsig.com:
--------------------------------------------------------------------------------
1 | $TTL 120
2 | $ORIGIN tsig.com.
3 | @ IN SOA ns1.example.com. ahu.example.com. (
4 | 2000081501
5 | 8H ; refresh
6 | 2H ; retry
7 | 1W ; expire
8 | 1D ; default_ttl
9 | )
10 |
11 | @ IN NS ns1.example.com.
12 | @ IN NS ns2.example.com.
13 |
--------------------------------------------------------------------------------
/modules/geoipbackend/regression-tests/region-a-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 oc.service.geo.example.com. IN A 30 62.236.200.4
2 | 0 www.geo.example.com. IN CNAME 30 oc.service.geo.example.com.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='www.geo.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/cross-domain-cname-to-wildcard/expected_result:
--------------------------------------------------------------------------------
1 | 0 bla.something.wtest.com. IN A 3600 4.3.2.1
2 | 0 semi-external.example.com. IN CNAME 120 bla.something.wtest.com.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='semi-external.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/zones/minimal.com:
--------------------------------------------------------------------------------
1 | $TTL 120
2 | $ORIGIN minimal.com.
3 | @ IN SOA ns1.example.com. ahu.example.com. (
4 | 2000081501
5 | 8H ; refresh
6 | 2H ; retry
7 | 1W ; expire
8 | 1D ; default_ttl
9 | )
10 |
11 | @ IN NS ns1.example.com.
12 | @ IN NS ns2.example.com.
13 |
--------------------------------------------------------------------------------
/m4/pdns_check_sqlite3.m4:
--------------------------------------------------------------------------------
1 | AC_DEFUN([PDNS_CHECK_SQLITE3], [
2 | AS_IF([test "x$needsqlite3" = "xyes"], [
3 | PKG_CHECK_MODULES([SQLITE3], [sqlite3],
4 | [AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3])],
5 | [AC_MSG_ERROR([Could not find libsqlite3])]
6 | )
7 | ])
8 | ])
9 |
--------------------------------------------------------------------------------
/modules/geoipbackend/regression-tests/basic-a-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 unknown.service.geo.example.com. IN A 30 127.0.0.1
2 | 0 www.geo.example.com. IN CNAME 30 unknown.service.geo.example.com.
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='www.geo.example.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/pdns/secpoll-recursor.hh:
--------------------------------------------------------------------------------
1 | #ifndef PDNS_SECPOLL_RECURSOR_HH
2 | #define PDNS_SECPOLL_RECURSOR_HH
3 | #include
4 | #include "namespaces.hh"
5 | #include
6 |
7 | void doSecPoll(time_t* );
8 | extern uint32_t g_security_status;
9 | extern std::string g_security_message;
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/regression-tests.recursor/cross-zone-cname-bogus-nxdomain/expected_result:
--------------------------------------------------------------------------------
1 | 0 www.trillian.example.net. IN CNAME 3600 www2.arthur.example.net.
2 | 0 www2.arthur.example.net. IN A 3600 192.0.2.6
3 | Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='www.trillian.example.net.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests.recursor/in-zone-cname-bogus-nxdomain/expected_result:
--------------------------------------------------------------------------------
1 | 0 android.marvin.example.net. IN A 3600 192.0.2.5
2 | 0 www.marvin.example.net. IN CNAME 3600 android.marvin.example.net.
3 | Rcode: 0, RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
4 | Reply to question for qname='www.marvin.example.net.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/apex-level-ns/expected_result:
--------------------------------------------------------------------------------
1 | 0 test.com. IN NS 3600 ns1.test.com.
2 | 0 test.com. IN NS 3600 ns2.test.com.
3 | 2 ns1.test.com. IN A 3600 1.1.1.1
4 | 2 ns2.test.com. IN A 3600 2.2.2.2
5 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
6 | Reply to question for qname='test.com.', qtype=NS
7 |
--------------------------------------------------------------------------------
/m4/pdns_check_mkdocs.m4:
--------------------------------------------------------------------------------
1 | AC_DEFUN([PDNS_CHECK_MKDOCS], [
2 | AC_CHECK_PROG([MKDOCS], [mkdocs], [yes], [no])
3 |
4 | AS_IF([test "x$MKDOCS" = "xno"], [
5 | AS_IF([test ! -d "$scrdir/docs/html" ],
6 | [AC_MSG_WARN([mkdocs is missing, unable to build documentation.])]
7 | )
8 | ])
9 | ])
10 |
--------------------------------------------------------------------------------
/m4/pdns_with_lmdb.m4:
--------------------------------------------------------------------------------
1 | AC_DEFUN([PDNS_WITH_LMDB],[
2 | AC_CHECK_HEADERS([lmdb.h], , [AC_MSG_ERROR([lmdb header (lmdb.h) not found])])
3 | AC_SUBST([LMDB_LIBS])
4 | AC_CHECK_LIB(
5 | [lmdb], [mdb_env_create],
6 | [AC_DEFINE([HAVE_LIBLMDB], 1, [Have -llmdb]) LMDB_LIBS="-llmdb"]
7 | )
8 | ])
9 |
--------------------------------------------------------------------------------
/modules/remotebackend/TODO:
--------------------------------------------------------------------------------
1 | - detect jsoncpp and libcurl in configure
2 | - move coprocess from pipebackend to core so remotebackend can run without pipebackend
3 | - make ruby scripts compatible with 1.8
4 | - Improve error handling and reply validation
5 | - Code coverage
6 | - move calls that change things to POST
7 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/ge_tobytes.c:
--------------------------------------------------------------------------------
1 | #include "ge.h"
2 |
3 | void ge_tobytes(unsigned char *s,const ge_p2 *h)
4 | {
5 | fe recip;
6 | fe x;
7 | fe y;
8 |
9 | fe_invert(recip,h->Z);
10 | fe_mul(x,h->X,recip);
11 | fe_mul(y,h->Y,recip);
12 | fe_tobytes(s,y);
13 | s[31] ^= fe_isnegative(x) << 7;
14 | }
15 |
--------------------------------------------------------------------------------
/regression-tests/check_stest_source:
--------------------------------------------------------------------------------
1 | function prequery ( dnspacket )
2 | qname, qtype = dnspacket:getQuestion()
3 | remote = dnspacket:getRemote()
4 | if qname == "stest.com" and remote ~= "127.0.0.2" then
5 | dnspacket:setRcode(pdns.NXDOMAIN)
6 | return true
7 | end
8 | return false
9 | end
10 |
--------------------------------------------------------------------------------
/regression-tests/tests/ent-unsigned-delegation/expected_result:
--------------------------------------------------------------------------------
1 | 1 dnssec-parent.com. IN SOA 3600 ns1.dnssec-parent.com. ahu.example.com. 2005092501 28800 7200 604800 86400
2 | 2 . IN OPT 32768
3 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
4 | Reply to question for qname='ent.ent.auth-ent.dnssec-parent.com.', qtype=A
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/tsig-axfr-algorithm-mismatch/command:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | if [ $ALGORITHM == "hmac-md5" ]
3 | then
4 | dig -t axfr tsig.com @$nameserver -p $port -y hmac-sha1:test:$KEY | grep -i 'failed'
5 | else
6 | dig -t axfr tsig.com @$nameserver -p $port -y hmac-md5:test:$KEY | grep -i 'failed'
7 | fi
8 |
--------------------------------------------------------------------------------
/pdns/ext/ed25519/ge_p3_tobytes.c:
--------------------------------------------------------------------------------
1 | #include "ge.h"
2 |
3 | void ge_p3_tobytes(unsigned char *s,const ge_p3 *h)
4 | {
5 | fe recip;
6 | fe x;
7 | fe y;
8 |
9 | fe_invert(recip,h->Z);
10 | fe_mul(x,h->X,recip);
11 | fe_mul(y,h->Y,recip);
12 | fe_tobytes(s,y);
13 | s[31] ^= fe_isnegative(x) << 7;
14 | }
15 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-delete-mx-prio/description:
--------------------------------------------------------------------------------
1 | This test checks to see if deleting a MX record with a specific Priority works
2 | correctly. This is interesting because the gsql-backends store priority in a
3 | separate field, where other backends probably store it together with the content
4 | (or RDATA).
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/1dyndns-update-delete-soa/command:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | cleandig test.dyndns SOA hidesoadetails
4 |
5 | cleannsupdate <&1 | grep -o 'constraint failed'
5 |
6 | exit 0
7 |
--------------------------------------------------------------------------------
/regression-tests/tests/basic-ns-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 example.com. IN NS 120 ns1.example.com.
2 | 0 example.com. IN NS 120 ns2.example.com.
3 | 2 ns1.example.com. IN A 120 192.168.1.1
4 | 2 ns2.example.com. IN A 120 192.168.1.2
5 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
6 | Reply to question for qname='example.com.', qtype=NS
7 |
--------------------------------------------------------------------------------
/regression-tests/tests/tsig-ixfr-algorithm-mismatch/command:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | if [ $ALGORITHM == "hmac-md5" ]
3 | then
4 | dig -t ixfr=2000081501 tsig.com @$nameserver -p $port -y hmac-sha1:test:$KEY | grep -i 'failed'
5 | else
6 | dig -t ixfr=2000081501 tsig.com @$nameserver -p $port -y hmac-md5:test:$KEY | grep -i 'failed'
7 | fi
8 |
--------------------------------------------------------------------------------
/modules/lmdbbackend/Makefile.am:
--------------------------------------------------------------------------------
1 | pkglib_LTLIBRARIES = liblmdbbackend.la
2 |
3 | EXTRA_DIST = \
4 | lmdb-example.pl \
5 | OBJECTFILES \
6 | OBJECTLIBS
7 |
8 | liblmdbbackend_la_SOURCES = \
9 | lmdbbackend.cc lmdbbackend.hh
10 |
11 | liblmdbbackend_la_LDFLAGS = -module -avoid-version
12 | liblmdbbackend_la_LIBADD = $(LMDB_LIBS)
13 |
14 |
--------------------------------------------------------------------------------
/modules/remotebackend/regression-tests/basic-a-dnssec/expected_result:
--------------------------------------------------------------------------------
1 | 0 outpost.example.com. IN A 120 192.168.2.1
2 | 0 outpost.example.com. IN RRSIG 120 A 8 3 120 [expiry] [inception] [keytag] example.com. ...
3 | 2 . IN OPT 32768
4 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
5 | Reply to question for qname='outpost.example.com.', qtype=A
6 |
--------------------------------------------------------------------------------
/modules/remotebackend/regression-tests/long-txt-resolution/expected_result:
--------------------------------------------------------------------------------
1 | 0 jump.up.example.com. IN TXT 120 "a very very long indeed text string that should pass out clean and proper thru the entire chain of powerdns processing"
2 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
3 | Reply to question for qname='jump.up.example.com.', qtype=TXT
4 |
--------------------------------------------------------------------------------
/regression-tests.recursor/stop.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 | set -x
4 |
5 | . ./vars
6 |
7 | if [ -z "$PREFIX" ]
8 | then
9 | echo "config not found or PREFIX not set"
10 | exit 1
11 | fi
12 |
13 | cd configs
14 |
15 | for dir in $PREFIX.* recursor-service
16 | do
17 | svc -d $dir
18 | svc -k $dir
19 | svc -x $dir
20 | done
21 |
--------------------------------------------------------------------------------
/regression-tests/tests/2dyndns-update-replace-soa/description:
--------------------------------------------------------------------------------
1 | A test for RFC2136 which checks section 3.4.2.2 - Replacing a SOA record. This
2 | is special because we can 'set' the soa serial. This test also does not use the
3 | hidesoaserial option because we want to compare that serial. It's also the
4 | reason why the test is run only once.
5 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-to-nxdomain/expected_result:
--------------------------------------------------------------------------------
1 | 0 nxd.example.com. IN CNAME 120 nxdomain.example.com.
2 | 1 example.com. IN SOA 86400 ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400
3 | 2 . IN OPT 32768
4 | Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
5 | Reply to question for qname='nxd.example.com.', qtype=A
6 |
--------------------------------------------------------------------------------
/modules/ldapbackend/Makefile.am:
--------------------------------------------------------------------------------
1 | pkglib_LTLIBRARIES = libldapbackend.la
2 |
3 | EXTRA_DIST = OBJECTFILES OBJECTLIBS
4 |
5 | libldapbackend_la_SOURCES = \
6 | ldapbackend.cc ldapbackend.hh \
7 | powerldap.cc powerldap.hh \
8 | utils.hh
9 |
10 | libldapbackend_la_LDFLAGS = -module -avoid-version
11 | libldapbackend_la_LIBADD = $(LDAP_LIBS)
12 |
--------------------------------------------------------------------------------
/modules/remotebackend/regression-tests/nsec-sibling-test/expected_result:
--------------------------------------------------------------------------------
1 | 0 jump.up.example.com. IN A 120 192.168.3.1
2 | 0 jump.up.example.com. IN RRSIG 120 A 8 4 120 [expiry] [inception] [keytag] up.example.com. ...
3 | 2 . IN OPT 32768
4 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
5 | Reply to question for qname='jump.up.example.com.', qtype=A
6 |
--------------------------------------------------------------------------------
/pdns/sysdeps-recursor/Darwin.inc:
--------------------------------------------------------------------------------
1 | CXXFLAGS+=-D_XOPEN_SOURCE -DHAVE_STRCASESTR -D__APPLE_USE_RFC_3542 -Wno-deprecated-declarations
2 |
3 | LUA_CPPFLAGS_CONFIG ?= -I/usr/include/lua5.1
4 | LUA_LIBS_CONFIG ?= -llua5.1 -rdynamic
5 |
6 | # Lua 5.0 settings
7 | #LUA_CPPFLAGS_CONFIG=-I/usr/include/lua50
8 | #LUA_LIBS_CONFIG=-llua50 -llualib50
9 |
10 |
--------------------------------------------------------------------------------
/regression-tests/tests/cname-to-nxdomain-any/expected_result.dnssec:
--------------------------------------------------------------------------------
1 | 0 nxd.example.com. IN CNAME 120 nxdomain.example.com.
2 | 0 nxd.example.com. IN RRSIG 120 CNAME 8 3 120 [expiry] [inception] [keytag] example.com. ...
3 | 2 . IN OPT 32768
4 | Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
5 | Reply to question for qname='nxd.example.com.', qtype=ANY
6 |
--------------------------------------------------------------------------------