From a31c0e39665370a11b404f4343d0d015b5af8408 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 14 Nov 2000 23:52:06 +0000 Subject: [PATCH] Test that the unknown rr type code doesn't load compressed rdata. --- bin/tests/system/unknown/ns1/broken4.db | 29 +++++++++++++++++++++++++ bin/tests/system/unknown/ns1/named.conf | 7 +++++- util/copyrights | 1 + 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 bin/tests/system/unknown/ns1/broken4.db diff --git a/bin/tests/system/unknown/ns1/broken4.db b/bin/tests/system/unknown/ns1/broken4.db new file mode 100644 index 0000000000..eec4de0a4d --- /dev/null +++ b/bin/tests/system/unknown/ns1/broken4.db @@ -0,0 +1,29 @@ +; Copyright (C) 2000 Internet Software Consortium. +; +; Permission to use, copy, modify, and distribute this software for any +; purpose with or without fee is hereby granted, provided that the above +; copyright notice and this permission notice appear in all copies. +; +; THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM +; DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL +; INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, +; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING +; FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +; NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION +; WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +; $Id: broken4.db,v 1.1 2000/11/14 23:52:06 bwelling Exp $ + +$TTL 300 ; 5 minutes +@ SOA mname1. . ( + 2000062101 ; serial + 20 ; refresh (20 seconds) + 20 ; retry (20 seconds) + 1814400 ; expire (3 weeks) + 3600 ; minimum (1 hour) + ) + NS ns +ns A 10.53.0.1 + +mx SOA \# 32 026E73013300 04726F6F74C4 00000001 00000001 00000001 00000001 00000001 diff --git a/bin/tests/system/unknown/ns1/named.conf b/bin/tests/system/unknown/ns1/named.conf index e262aac71a..5b2223b309 100644 --- a/bin/tests/system/unknown/ns1/named.conf +++ b/bin/tests/system/unknown/ns1/named.conf @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: named.conf,v 1.1 2000/11/10 03:05:54 bwelling Exp $ */ +/* $Id: named.conf,v 1.2 2000/11/14 23:52:06 bwelling Exp $ */ options { query-source address 10.53.0.1; @@ -47,6 +47,11 @@ view "in" { type master; file "broken3.db"; }; + + zone "broken4." { + type master; + file "broken4.db"; + }; }; view "class10" class10 { diff --git a/util/copyrights b/util/copyrights index 1500b6eefd..1cd96f4784 100644 --- a/util/copyrights +++ b/util/copyrights @@ -496,6 +496,7 @@ ./bin/tests/system/unknown/ns1/broken1.db ZONE 2000 ./bin/tests/system/unknown/ns1/broken2.db ZONE 2000 ./bin/tests/system/unknown/ns1/broken3.db ZONE 2000 +./bin/tests/system/unknown/ns1/broken4.db ZONE 2000 ./bin/tests/system/unknown/ns1/class10.hints ZONE 2000 ./bin/tests/system/unknown/ns1/example-class10.db ZONE 2000 ./bin/tests/system/unknown/ns1/example-in.db ZONE 2000