DNS check - please help

James Pratt jpratt at norwich.edu
Mon Jul 18 17:37:51 CEST 2011


The help for the plugin says -

./check_dns --help

check_dns v1.4.15 (nagios-plugins 1.4.15)
Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>
Copyright (c) 2000-2008 Nagios Plugin Development Team
        <nagiosplug-devel at lists.sourceforge.net>

This plugin uses the nslookup program to obtain the IP address for the given host/domain query.
An optional DNS server to use may be specified.
If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used.


(Based on your stated result(s), I must assume that if the "specified server" fails, it probably defaults to /etc/resolv.conf, but I'd probably have to fire up wireshark/tshark to find out for sure)...

Cheers,
James

From: Nibin V M [mailto:nibin.vm at piserve.com]
Sent: Monday, July 18, 2011 10:55 AM
To: Nagios Users List
Subject: [Nagios-users] DNS check - please help

Hello,

I am a bit lost to find how the check_dns works. Please see the results below.

# ./check_dns -H google.com<http://google.com> --server=myserver.
DNS OK: 0.011 seconds response time. google.com<http://google.com> returns 74.125.93.103,74.125.93.104,74.125.93.105,74.125.93.106,74.125.93.147,74.125.93.99|time=0.011378s;;;0.000000

# dig +short google.com<http://google.com> @myserver
#

I am sure that recursion isn't enabled on "myserver". Do the plugin try to resolve google.com<http://google.com> using the name servers specified resolv.conf, if the -s server doesn't provide any answer?

Thanks in advance.

Regards,
Nibin.
---------------------------------
Nibin.V.M
Systems Integrator
PiServe.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110718/f77c4e70/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list