title: Checking DNS via command line script
body: <p>I have a couple of systems in my office with incorrect DNS Settings....</p>
  
  <p>I wanna do a sweep of all systems.</p>
  
  <p>how can I check if my systems have the correct DNS?  </p>
  
  <p>ie my DNS address is 1.1.1.1?</p>
  
  <p>Thanks in advance.
  This is what i was working on.
      @echo off
      REM This is to check DNS</p>
  
  <pre><code>set dnsAddy= "ipconfig /all | findstr Servers | findstr /V 1.1.1.1"
  If %dnsAddy% = null then
  exit 0
  fi echo "DNS is incorrect"
  </code></pre>