3191. [bug] Print NULL records using unknown format. [RT #26392]

This commit is contained in:
Mark Andrews
2011-11-02 01:01:52 +00:00
parent cab7db8d3b
commit fe3472c80b
5 changed files with 72 additions and 39 deletions

View File

@@ -13,7 +13,7 @@
; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
; PERFORMANCE OF THIS SOFTWARE.
; $Id: example-in.db,v 1.7 2007/06/19 23:47:06 tbox Exp $
; $Id: example-in.db,v 1.8 2011/11/02 01:01:52 marka Exp $
$TTL 300 ; 5 minutes
@ SOA mname1. . (
@@ -39,6 +39,9 @@ a10 IN TYPE1 \# 4 0A000001
a11 IN TYPE1 \# 4 0a000001
a12 IN A \# 4 0A000001
null IN NULL \# 1 00
empty IN NULL \# 0
txt1 IN TXT "hello"
txt2 CLASS1 TXT "hello"
txt3 IN TYPE16 "hello"

View File

@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.10 2007/06/19 23:47:06 tbox Exp $
# $Id: tests.sh,v 1.11 2011/11/02 01:01:52 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@@ -63,6 +63,20 @@ do
status=`expr $status + $ret`
done
echo "I:querying for NULL record"
ret=0
$DIG +short $DIGOPTS null.example null in > dig.out || ret=1
echo '\# 1 00' | diff - dig.out || ret=1
[ $ret = 0 ] || echo "I: failed"
status=`expr $status + $ret`
echo "I:querying for empty NULL record"
ret=0
$DIG +short $DIGOPTS empty.example null in > dig.out || ret=1
echo '\# 0' | diff - dig.out || ret=1
[ $ret = 0 ] || echo "I: failed"
status=`expr $status + $ret`
echo "I:querying for various representations of a CLASS10 TYPE1 record"
for i in 1 2
do