I got an stunnel up but when I try to run check_dig in the following manner:
./check_dig -v -H localhost -p 8443 -l www.google.com
/usr/bin/dig @localhost -p 8443 www.google.com
-t A +tcp
Looking for: 'www.google.com'
DNS WARNING - 0.204 seconds response time (dig returned an error status)|time=0.204327s;;;0.000000
Is my thought process correct if I set the STUNNEL to connect to port 443 of the remote ssl-dns server and then tell check_dig that the dns server is the localhost found off of the local port that i set of 8443?
I don't know what I am missing here...
Is there another way to monitor the ssl-dns server running on port 443 to make sure its resolving requests? Another nagios plugin perhaps, any suggestions at this point would be greatly appreciated.