isDns.bat
ipconfig /all | findstr "Servers" | findstr "1.1.1.1"
If you wanted to pass the IP address in
ipconfig /all | findstr "Servers" | findstr "%1"
To use the 2nd version you would type isDns 1.1.1.1
from a command prompt.
In either case you will get no output if the DNS entry does not match.
Edit following question clarification
ipconfig /all | findstr "Servers" | findstr "1.1.1.1"
IF %ERRORLEVEL% EQU 0 (echo "You're good!") ELSE (echo "Bad config")