#!/bin/sh

# 
# this script looks for a TXT resource record at a given name
# It does so using lwdnsq in HEAD
# and  
# with dig in 2.xx
#
# arg #1 is name
# arg #2 is public key fragment to look for

item=$1 shift
partof=$2 shift

if dig $item txt | fgrep $partof - >/dev/null
then
	echo FOUND $partof
else
	echo DID NOT FIND $partof
fi
