Files
NLnetLabs-dnst/test-data/verify-readzone.json
T

110 lines
4.4 KiB
JSON

{
"tests": [
{
"info": "Error when using -0 option",
"config": [
"-0",
"does-not-matter.zone"
],
"input": "example.com. 3600 IN RRSIG SOA 8 2 3600 20210217232440 20210120232440 37444 example.com. GzQw+QzwLDJr13REPGVmpEChjD1D2XlX0ie1DnWHpgaEw1E/dhs3lCN3+BmHd4Kx3tffTRgiyq65HxR6feQ5v7VmAifjyXUYB1DZur1eP5q0Ms2ygCB3byoeMgCNsFS1oKZ2LdzNBRpy3oace8xQn1SpmHGfyrsgg+WbHKCT1dY=",
"output": "The option -0 is not implemented. Do you need it?"
},
{
"info": "Exclude all NS records",
"config": [
"-e",
"NS",
"does-not-matter.zone"
],
"input": "example.org. 1 IN NS ns1.net.\nexample.com. 1 IN A 1.1.1.1",
"output": "Record { rname: RevName(.com.example), rtype: RType::A, rclass: RClass::IN, ttl: TTL(1), rdata: A(A(1.1.1.1)) }\n"
},
{
"info": "Print only NS records",
"config": [
"-E",
"NS",
"does-not-matter.zone"
],
"input": "example.org. 1 IN NS ns1.net.\nexample.com. 1 IN A 1.1.1.1",
"output": "Record { rname: RevName(.org.example), rtype: RType::NS, rclass: RClass::IN, ttl: TTL(1), rdata: Ns(Ns { server: Name(ns1.net.) }) }\n"
},
{
"info": "Error when using -b option",
"config": [
"-b",
"does-not-matter.zone"
],
"input": "example.com. 3600 IN DS 57855 5 1 b6dcd485719adca18e5f3d48a2331627fdd3636b",
"output": "The option -b is not implemented. Do you need it?"
},
{
"info": "Do not print the SOA record.",
"config": [
"-n",
"does-not-matter.zone"
],
"input": "example.com. 42 IN SOA master.example.com. noc.example.com. 1 1 1 1 1",
"output": ""
},
{
"info": "Serial addition 10",
"config": [
"-S",
"+10",
"does-not-matter.zone"
],
"input": "example.com. 42 IN SOA master.example.com. noc.example.com. 1 1 1 1 1",
"output": "Record { rname: RevName(.com.example), rtype: RType::SOA, rclass: RClass::IN, ttl: TTL(42), rdata: Soa(Soa { mname: Name(master.example.com.), rname: Name(noc.example.com.), serial: Serial(U32(11)), refresh: U32(1), retry: U32(1), expire: U32(1), minimum: U32(1) }) }\n"
},
{
"info": "Serial addition with wrap around.",
"config": [
"-S",
"+10",
"does-not-matter.zone"
],
"input": "example.com. 42 IN SOA master.example.com. noc.example.com. 4294967295 1 1 1 1",
"output": "Record { rname: RevName(.com.example), rtype: RType::SOA, rclass: RClass::IN, ttl: TTL(42), rdata: Soa(Soa { mname: Name(master.example.com.), rname: Name(noc.example.com.), serial: Serial(U32(9)), refresh: U32(1), retry: U32(1), expire: U32(1), minimum: U32(1) }) }\n"
},
{
"info": "Substract with wrapping around.",
"config": [
"-S",
"-10",
"does-not-matter.zone"
],
"input": "example.com. 42 IN SOA master.example.com. noc.example.com. 1 1 1 1 1",
"output": "Record { rname: RevName(.com.example), rtype: RType::SOA, rclass: RClass::IN, ttl: TTL(42), rdata: Soa(Soa { mname: Name(master.example.com.), rname: Name(noc.example.com.), serial: Serial(U32(4294967287)), refresh: U32(1), retry: U32(1), expire: U32(1), minimum: U32(1) }) }\n"
},
{
"info": "Do not print the SOA record.",
"config": [
"-S",
"10",
"does-not-matter.zone"
],
"input": "example.com. 42 IN SOA master.example.com. noc.example.com. 1 1 1 1 1",
"output": "Record { rname: RevName(.com.example), rtype: RType::SOA, rclass: RClass::IN, ttl: TTL(42), rdata: Soa(Soa { mname: Name(master.example.com.), rname: Name(noc.example.com.), serial: Serial(U32(10)), refresh: U32(1), retry: U32(1), expire: U32(1), minimum: U32(1) }) }\n"
},
{
"info": "Do not print DNSSEC records.",
"config": [
"-s",
"does-not-matter.zone"
],
"input": "example.com. 3600 IN RRSIG SOA 8 2 3600 20210217232440 20210120232440 37444 example.com. GzQw+QzwLDJr13REPGVmpEChjD1D2XlX0ie1DnWHpgaEw1E/dhs3lCN3+BmHd4Kx3tffTRgiyq65HxR6feQ5v7VmAifjyXUYB1DZur1eP5q0Ms2ygCB3byoeMgCNsFS1oKZ2LdzNBRpy3oace8xQn1SpmHGfyrsgg+WbHKCT1dY=",
"output": ""
},
{
"info": "Only print DNSSEC data.",
"config": [
"-d",
"does-not-matter.zone"
],
"input": "example.com. 42 IN SOA master.example.com. noc.example.com. 1 1 1 1 1",
"output": ""
}
]
}