#!/bin/sh
maxsize=1232
replysize=$(dig ${1} dnskey +dnssec | grep ";; MSG SIZE" | cut -d " " -f 6)
if [ "${replysize}" -le "${maxsize}" ]
then
    echo "Good, DNSKEY RRSet size is ${replysize} which is below or equal to ${maxsize}"
else
    echo "Bad, DNSKEY RRSet size is ${replysize} which is above ${maxsize}"
fi

#!/bin/sh
# Test 11 - test for DNSKEY RRset answer size. The full answer packet
# of the DNSKEY rrset should be below the IPv6 fragmentation payload
# limit (1232 byte)
maxsize=1232
replysize=$(dig ${1} dnskey +dnssec | grep ";; MSG SIZE" | cut -d " " -f 6)
if [ "${replysize}" -le "${maxsize}" ]
then
    echo "Good, DNSKEY RRSet size is ${replysize} which is below or equal to ${maxsize}"
else
    echo "Bad, DNSKEY RRSet size is ${replysize} which is above ${maxsize}"
fi

Add comment to Test 11
Add comment to Test 11
