check_dns: add warning and critical thresholds to perfdata
check_dns.c Added a bit more logic to thresholds

Added two if elses to cover when only one threshold is set.
tests: added check_dns performance data test

Signed-off-by: Sven Nierlein <sven@nierlein.de>