<p>Expected address is not fully matched for example</p>

<p>Assume i have a host which has the IP 173.194.116.215 and i want to check against it:<br>
<code>´./check_dig -H dns1 -vvvv -l www.google.de -a 173.194.116.215</code>`</p>

<p>As expected check_dig returns OK, but if its checked for .21:<br>
<code>´./check_dig -H dns1 -vvvv -l www.google.de -a 173.194.116.21</code>`</p>

<p>It returns also OK, because strstr/strcasestr just locate substrings but it might return a WARNING/CRITICAL because it matches not 100%</p>

<p>To not break working setups we could add a new option -e --exact-match which toggles strict checking and then returns WARN/CRIT if the result and the expected result do not match 100%</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1385">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2ZqWMw1dT9PHHZ4CQxIxJSr47W3Rks5o7feQgaJpZM4GOcQb.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1385"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>