test package for getdns_validate

This commit is contained in:
Willem Toorop 2019-11-19 15:19:57 +08:00
parent 3fb1d9474f
commit e870acc559
11 changed files with 177 additions and 0 deletions

View File

@ -7,4 +7,5 @@
cd "${BUILDDIR}/build"
make -j 4 install \
&& echo "export GETDNS_QUERY=\"${BUILDDIR}/build/src/tools/getdns_query\"" \
&& echo "export GETDNS_VALIDATE=\"${BUILDDIR}/build/src/tools/getdns_validate\"" \
>> ../.tpkg.var.master

View File

@ -0,0 +1,16 @@
BaseName: 123-run-getdns_validate
Version: 1.0
Description: Test the getdns_validate program
CreationDate: di 19 nov 2019 14:52:15 +08
Maintainer: Willem Toorop
Category:
Component:
CmdDepends:
Depends: 105-install.tpkg
Help:
Pre:
Post:
Test: 123-run-getdns_validate.test
AuxFiles:
Passed:
Failure:

View File

@ -0,0 +1,13 @@
# #-- 123-run-getdns_validate.test --#
# source the master var file when it's there
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
# use .tpkg.var.test for in test variable passing
[ -f .tpkg.var.test ] && source .tpkg.var.test
"${GETDNS_VALIDATE}" -k root.ds -s root.keys -d 2019-11-19 www.test.heggggg.A www.test.heggggg
"${GETDNS_VALIDATE}" -k root.ds -s root.keys -d 2019-11-19 nl.DS
cat root.keys nl.DS nl.keys >support
"${GETDNS_VALIDATE}" -k root.ds -s support -d 2019-11-19 nlnetlabs.DS
cat root.keys nl.DS nl.keys nlnetlabs.DS nlnetlabs.keys >support
"${GETDNS_VALIDATE}" -k root.ds -s support -d 2019-11-19 www.nlnetlabs.nl.AAAA

View File

@ -0,0 +1,22 @@
; <<>> DiG 9.11.5-P4-5.1ubuntu2-Ubuntu <<>> @a.root-servers.net nl DS +norec +dnssec
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23158
;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 1472
;; QUESTION SECTION:
;nl. IN DS
;; ANSWER SECTION:
nl. 86400 IN DS 34112 8 2 3C5B5F9B3557455C50751A9BE9EBE9238C88E19F5F07F930976917B5 1B95CD22
nl. 86400 IN RRSIG DS 8 1 86400 20191201170000 20191118160000 22545 . qg+biuhNypcyuuxDFjoNlYXhr2IjQjmYVqzIBulyWMfsCN9eGcSETRIf /PUbjovoY5bR4qwjvxM4jwFtVV65hM6rJDmYDk3nwzDTCV8dGqGiSICl OWZDGy79/niElAiEV98M5gIsv8QqxHjKoIASYSiWtWo3aZif9UbjqCc2 316aBNwLrn9B6X38+rWE3fAU3nd+pgtrQpsHDg2f6MCrhTw18iezeVRr 3nJUw5liBrBnVBDgOT2QcphnsQBCWDWk+3hsp9QGZ9zjuPLhXMNmlNN+ I0ZKDK2jloFMgQWXY2MIrdu/NKEoldp0kCET4P6kIR6gPXgs2b3FN0Ut 4ByD6w==
;; Query time: 167 msec
;; SERVER: 198.41.0.4#53(198.41.0.4)
;; WHEN: di nov 19 14:59:02 +08 2019
;; MSG SIZE rcvd: 366

View File

@ -0,0 +1,23 @@
; <<>> DiG 9.11.5-P4-5.1ubuntu2-Ubuntu <<>> nl DNSKEY +dnssec
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31217
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
; COOKIE: d03ae1fa6032212855f369625dd244a66c53a6cb995437ee (good)
;; QUESTION SECTION:
;nl. IN DNSKEY
;; ANSWER SECTION:
nl. 1085 IN DNSKEY 257 3 8 AwEAAcb+4kIsKoZM+3ZZpU9kzxrzw30e3b+L0KZeX+aAS3eM+Q+q27Jw 0NZ3dqsPSif61GjRW6apjDZ9Ciab3oyEu7IpihVrw94DTjWZTVViZAij AIHwKUzY0YjkT3RvN+xgpw4uZs1SnqCZxYko+15esteKXW/nJpde0d9O eFFBaS2WTCycK+A6gd9DsOw91Y7Z2vrR/2g9N9dMIVq9neB1/KXXm4Mt tLqJyxRWZNAFTyLGQKzPpQDp9s3qowV2+pcHOh6lUTEeOWiAtotJ/5Wy O91viZ5tBfClsyGpggBTaeUQ7T5adhAtX6nRkhePyAtQgCCf63ZpHyoy xvbkDM7yuA0=
nl. 1085 IN DNSKEY 256 3 8 AwEAAcwLM1KJJXcwzWapfJGGkvnRObgLjhXbmU3OUZL9UQHXJH6/alEH /GcrLpCGO8JF93GIgNpt3fHCoav8ZveP0OSEYPmkDpaAsCgM7BYJN5oL kfIgKzEJp8HdoGWDOKOHMnRR48GxNMVTaWnRsgaWxfn9rwiwY56ls1sg eKrSME1H
nl. 1085 IN RRSIG DNSKEY 8 1 3600 20191126182257 20191112063801 34112 nl. ebKmNkNjnzEO4hMpOTBRTqFZssADX03BmjACLmz8aT9wzVeIMdnr6ZYd tiyRj79H0+EBSHOoutkJ9D7nZyjbKY3taQKQeH2u1QiF4jkRF9NNt2x/ 5y8DTrbDQJixW4MgOz/pr0H0bRDFrsaByWJu3R42lFvSdALM0mZZcjKZ YNVEds79HVSq8v8aGXRflOlaoa3MF7tW2m6levMPqIUGCAii61p9KRgZ 9iB3j1dRcFgLs1bJOpxUzAqYNQfNXWvSUyk41Lu+bJLvKsyuEj+RPBlA WHHUqT3sgbpECVJkeqWH8BKbvyK25Qr1X95JQJQNfPWn77ZrKx7j8ij9 4yU3RA==
;; Query time: 3 msec
;; SERVER: 31.130.229.6#53(31.130.229.6)
;; WHEN: ma nov 18 15:13:42 +08 2019
;; MSG SIZE rcvd: 773

View File

@ -0,0 +1,22 @@
; <<>> DiG 9.11.5-P4-5.1ubuntu2-Ubuntu <<>> @ns1.dns.nl. nlnetlabs.nl. DS +norec +dnssec
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42249
;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
;; QUESTION SECTION:
;nlnetlabs.nl. IN DS
;; ANSWER SECTION:
nlnetlabs.nl. 3600 IN DS 50602 8 2 FA8EE175C47325F4BD46D8A4083C3EBEB11C977D689069F2B41F1A29 B22446B1
nlnetlabs.nl. 3600 IN RRSIG DS 8 2 3600 20191202032133 20191117183802 34498 nl. eXc0Vv3F9t8+5H777EX2nJBg8KqyvVgGvco3ou7Mw4IlZx0+6v9m3HVE cM7NPdJxjCmRcxj95i5om4r6ujG5Q891Dqxcj/Waa3fGnxPAGKE97fkI wTGDYWHdpcB3TjKmYpjDOl1wQDWfq8kYs0ECO6h2MOaQjTnAfO7HEC/F 0XE=
;; Query time: 235 msec
;; SERVER: 194.0.28.53#53(194.0.28.53)
;; WHEN: di nov 19 15:09:29 +08 2019
;; MSG SIZE rcvd: 251

View File

@ -0,0 +1,23 @@
; <<>> DiG 9.11.5-P4-5.1ubuntu2-Ubuntu <<>> nlnetlabs.nl DNSKEY +dnssec
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57738
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
; COOKIE: 46231228f1ba4ef78ef8baff5dd244b4cc51894536aa1a3f (good)
;; QUESTION SECTION:
;nlnetlabs.nl. IN DNSKEY
;; ANSWER SECTION:
nlnetlabs.nl. 3341 IN DNSKEY 256 3 8 AwEAAdR7XR95OaAN9Rz7TbtPalQ9guQk7zfxTHYNKhsiwTZA9z+F16nD 0VeBlk7dNik3ETpT2GLAwr9sntG898JwurCDe353wHPvjZtMCdiTVp3c RCrjuCEvoFpmZNN82H0gaH/4v8mkv/QBDAkDSncYjz/FqHKAeYy3cMcj Y6RyVweh
nlnetlabs.nl. 3341 IN DNSKEY 257 3 8 AwEAAbwL6LuXTLXtb23CsXhpkxxyGbEFUROh/L8BWA1EEF8LdQ4Rmsj4 D5D8uAnRFDkNhM6XiII9xcsavwBGNwHxzUaij4MZQu1vrzcfGIJLcC1Q paZmSH9WqIYFQci+T4s4UfDrrS96wO/H0nJvFmavWVX/7p1Q6dv0Arwz XMXaHGrRVdEgK2MDS3dFRngx5JC5fwD7YnwH08EAoFRjdAoXe+etOAeG aOT9IGjVM5LKkN2k6fIRvZ2l9eu5/o+h5L+kpDRcapW2QiL21hCcmwpW 50Llfx9Ovk+M7TBjp4iT7Tc8gLzRZr24LmXEyABb54WW3aoF5k8DZPot 9ogUjxVN/dM=
nlnetlabs.nl. 3341 IN RRSIG DNSKEY 8 2 3600 20191213015013 20191115015013 50602 nlnetlabs.nl. NEDdUFW3pOsS0wgQR8xg2dbobtqhuwdLymAfCXVIDCWqGlUMo6bsfmAw qUh2upFJLqS+B1pQfipzALS4Ax46qhFjZmaGcq5h3UOVcatLoxqOXbWV rNgV6sKyU+CJ+u4PeJjs0XBsIyLrDasPlXSnIWeVxD/fTecgbVksUYLL ohgalMkzK8re2dzvBf91RL22kxy2jiMXjOUWjC42sC5p9/VX4m+BGgOJ /pb7OvZSfEFLqzoPo+xKfuZPzwmWRSR1+bOivSkS83nza6VgVv6zffbp guZ/XNkQig3fJTiz5qj9gwJQe2/2AE06Jvvf5vsISKz2mGJ9Mb3yD9EC CVZvGg==
;; Query time: 3 msec
;; SERVER: 31.130.229.6#53(31.130.229.6)
;; WHEN: ma nov 18 15:13:56 +08 2019
;; MSG SIZE rcvd: 793

View File

@ -0,0 +1 @@
. 86400 IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d

View File

@ -0,0 +1,4 @@
. 172800 IN DNSKEY 256 3 8 AwEAAbPwrxwtOMENWvblQbUFwBllR7ZtXsu9rg/LdyklKs9gU2GQTeOc59XjhuAPZ4WrT09z6YPL+vzIIJqnG3Hiru7hFUQ4pH0qsLNxrsuZrZYmXAKoVa9SXL1Ap0LygwrIugEk1G4v7Rk/Alt1jLUIE+ZymGtSEhIuGQdXrEmj3ffzXY13H42X4Ja3vJTn/WIQOXY7vwHXGDypSh9j0Tt0hknF1yVJCrIpfkhFWihMKNdMzMprD4bV+PDLRA5YSn3OPIeUnRn9qBUCN11LXQKb+W3Jg+m/5xQRQJzJ/qXgDh1+aN+Mc9AstP29Y/ZLFmF6cKtL2zoUMN5I5QymeSkJJzc=
. 172800 IN DNSKEY 257 3 8 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU=
. 172800 IN RRSIG DNSKEY 8 0 172800 20191201000000 20191110000000 20326 . Ls9QKBBhEie6yu8Y8nxmSg/K7CvsJ7mQr1mgOiOkzokm97IpD+Wnls/84l77jFKDJBHEA2mzEMUieKMb4B95aGqrJua2J4HB/51jwaae7GrVpKtS5w5ni5k1bpB6qPmvmlDlq4vJ3YOVawMsy4vF9DxalQ0satgSoFdze4QNUy9J+2Lcjtf6+OamOS7R2bKOQGD4z7+ftKLJqYXlKw3UgGMmnaCMVbcC6IpUUHl52CEPlWTga/fI33QVJjD3j2zkZCip+lIPY3lNb+CXHKr8UvgnrQckZ/MYnvUNlt/JxjFME1hybwACbrJ/Ea6IwGbDNW4wsmq8HLSn5n9mA6n6iw==

View File

@ -0,0 +1,26 @@
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 25594
;; flags: qr aa rd ; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;; www.nlnetlabs.nl. IN AAAA
;; ANSWER SECTION:
www.nlnetlabs.nl. 10200 IN AAAA 2a04:b900::1:0:0:10
www.nlnetlabs.nl. 10200 IN RRSIG AAAA 8 3 10200 20191213015013 20191115015013 42393 nlnetlabs.nl. BkUJq5ci/gPcWKJU8cePmFl/Lixk3z4anlkX14/bcjpcs6dBnbE3By81ZMBPDuDNMdRuKS/cE7uZAXFpLjIZJVNnJhVVTE6OLTGdw7zJesy3F0un9rM7XGSB+Ti5oaxLu+rtDZ1aFPj+caJfIB4PPFQN7SOrJtDYduTwiJyk5B4=
;; AUTHORITY SECTION:
nlnetlabs.nl. 10200 IN NS ns.nlnetlabs.nl.
nlnetlabs.nl. 10200 IN NS anyns.pch.net.
nlnetlabs.nl. 10200 IN NS ns-ext1.sidn.nl.
nlnetlabs.nl. 10200 IN RRSIG NS 8 2 10200 20191213015013 20191115015013 42393 nlnetlabs.nl. aYhxQ6Hjdgrw0JT4dn8jqvSYqPLw76Dv3fUoGh2702PVGdBa6wZtjTt4cSp8vMayFaUZvkP1fYhRv3bjGFLGNI+L7fNBJE4f/DF98rdlMDCU8J9It1esQcZgSLeq13ZJ2g3OqWty/rzMYDuxJyzyODue2x4ZovKo0g1QIukG3II=
;; ADDITIONAL SECTION:
ns.nlnetlabs.nl. 10200 IN A 185.49.140.60
ns.nlnetlabs.nl. 10200 IN RRSIG A 8 3 10200 20191213015013 20191115015013 42393 nlnetlabs.nl. XsiFSEVmth4jDDUskmpQsZXtaiFAigl44PET9aKfER9x7e0GsaDHhyQx/HWR9l5hytvqOZPVBadcWkA87uvuBktnRySjkDUV3m5tlhXW5LtB8jeTMPOPp9uwAH9xa9QRAbd2wUOdvcaN2J+o91avHV2VQ9uFclRezaPF2XYWzJk=
ns.nlnetlabs.nl. 10200 IN AAAA 2a04:b900::8:0:0:60
ns.nlnetlabs.nl. 10200 IN RRSIG AAAA 8 3 10200 20191213015013 20191115015013 42393 nlnetlabs.nl. 0JjWwWhI+qE3LSpZvb/DzEUIe6l8hkRZkswidVGWBcUAwz3/Ipp66C6ToO/c7Osakbb8iW3ZsnE/IGCmDKsHFm22XB0TNrSrwEWoCrtNdksn/tYGIyWfzHhfH4EL3cTXwIZmNtjSl+kiI3wxFc1g5mDc5kTaoXR9lQIvSTAeXmY=
;; Query time: 167 msec
;; EDNS: version 0; flags: do ; udp: 4096
;; SERVER: 185.49.140.60
;; WHEN: Tue Nov 19 15:00:45 2019
;; MSG SIZE rcvd: 876

View File

@ -0,0 +1,26 @@
; <<>> DiG 9.11.5-P4-5.1ubuntu2-Ubuntu <<>> @8.8.8.8 www.test.heggggg. +dnssec
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41338
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 512
;; QUESTION SECTION:
;www.test.heggggg. IN A
;; AUTHORITY SECTION:
. 86396 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2019111701 1800 900 604800 86400
. 86396 IN RRSIG SOA 8 0 86400 20191130170000 20191117160000 22545 . QtPkvqAYi7yso+i0s1h8jlbAyVjJbj/uO87OXpSx/H0tsJhTouHAOtzl nH4KPZLVp9PtAgsfwZAazpaM6VBsbcNk6vHHPrhMDUlkBLz/Pc3smRMq vTFWVQIpE4ouvvgyVVkFbDw57bkcHiUeDkFoGVsWYfdNSOz6mBeZsgP5 uw7b9Q+6byEoCr3M2EmNeBCrTzc3ewC1oFUxxBY9wM3+R9HB1JqKhjCZ Dk8on/8x9JkZKq6N2JzXe0E2+fKnhs3PopjB7YjkFV+vIc0Gj6X67psO zt4J93YFNnXFhNtXRRDKcBN9naGvkxoaeGm+pVT7AKCWFEZyhxMkQaYF QWi/lg==
. 86395 IN NSEC aaa. NS SOA RRSIG NSEC DNSKEY
. 86395 IN RRSIG NSEC 8 0 86400 20191130170000 20191117160000 22545 . JXfnuFd9kHBY5uMSbo6OSHDyFzHwWqjmU7TXbDdpMWT2W6JqrwVKYzAy H5X3jQc89UlAxC7UG6eX2hX28qCjbomiR8UPamM+lSm9USXr/4IGlRaD /EJmzUVYGBI5n7JfzRRN1iojqeIH3RQN0rgzpE3chFdKK2rrUmunh1/Z E6J/ZgbbloaHfE1sar6SgqDhX9MLvKzTlf+1gcWNxt0wwr7TEC/T3HqV 9BNvdZNoaDQt6Vg40tIl5KLrp3O8wU5P/Ia+QuwMdfNAgE26/pHYvPhP zBSs6w4k60t3NB/qWMrvxrCQjFXVFYeORGmwTxCQZeEd67P4ZDtgDMRf cfGEMw==
healthcare. 81052 IN NSEC help. NS DS RRSIG NSEC
healthcare. 81052 IN RRSIG NSEC 8 1 86400 20191130170000 20191117160000 22545 . DT8x/0+rEp1m0NeB/UUNYsri9qT+hRFTjd6hsoBUDWNsdDIQTCaTvyb0 zB1bQzKBtAPRv7LuRNkwBlICVb0QVnrV8PLPJkrnKmks+dOX7f5uLwkS xwwJ9c5FIQmNOzXOFjDcZJXMFD/aP3DD+4l1V2Mrz5HtTiwIvvGOaQjf 0eOJKUExzzaiZAmA8VlJfystECMvpPpazpcdNxT+UjJZmukJcG1EQ6Hs A/l8auWnWoWPvvtA25hw6JSJPeHZ5aic2fD9kzdGfRHVKQ3WqB4WPmVe Uds+QFqHjMOuWCDSmbnQK8ITBO87BEziufdiU/e2/0HZ3UJEnT8X/PH2 icItnw==
;; Query time: 12 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: ma nov 18 09:44:51 +08 2019
;; MSG SIZE rcvd: 1040