[hobbit] DNS Test - No Record Lookup
David Hay Currie
dhaycurrie at leisurefitness.com
Thu Sep 24 16:01:33 CEST 2009
Ok, I see a lot of emails back and forth, and I think it would be good to summarize:
1. Myself, as well as most of the people answering do not think that there is a problem with hobbit/xymon itself, but rather with it being able to query DNS
2. From making point 1 clear, we know the test need to focus on the machine ability to resolve DNS records, and how it is set on the configuration for xymon
3. We don’t have information about your DNS server and resolver settings. This won’t matter much except for a couple of exceptions
a. Windows 2003 DNS will not automatically insert linux host into the DNS table, so you need to create the A records and reverse pointers manually.
b. In windows, mainly if you have Exchange running it is recommended that you also have WINS running (to speed up hostname lookup), and so WINS is still quite common. Why am I pointing at WINS? Easily, it is used for query of hostnames, so now there is a difference into having FQDN and just hostnames in the bb-host file
4. You can setup hosts to be monitored in the bb-host file either as a hostname, and IP or a FQDN. If possible I use the FQDN. After all, when you monitor, you want to completely monitor.
a. From this there is something I learn from experience on my first setup. Using hostnames works with hobbit/xymon, but I did have problems with some checks not working. This was 5 years ago (My first test was BB I think actually), but I think the problem test were dns and ldap
Just to make examples easy, in my bb-host file I have
192.168.11.203 server1.leisure.com # dns ldap dhcp !ftp !smtp !http://server1.leisure.com DESCR:"server:Active Directory Server and Application"
And if I run dig, I need to do
Dig server1.leisure.com
And I get the result.
The dns test itself reports
Service dns on server1.leisure.com is OK (up)
id: 57711
flags: qr aa rd ra
opcode: QUERY
rcode: NOERROR
Questions:
server1.leisure.com. A
Answers:
server1.leisure.com. 900 A 192.168.11.203
NS records:
Additional records:
Seconds: 0.000323
As it can be seen it is pretty straight forward. Does your bb server have a FQDN? Is the rest of your network a FQDN network? Do you use windows server DNS and WINS, or something else?
David Hay Currie
IT Manager
From: MFisher at hra.com [mailto:MFisher at hra.com]
Sent: Wednesday, September 23, 2009 5:08 PM
To: hobbit at hswn.dk
Subject: Re: [hobbit] DNS Test - No Record Lookup
Pinging solaris AND solaris.domain.com correctly respond with the right IP address....DNS resolution was never really a problem on the xymon box as most of my configs reference host name....The DNS test however has NEVER worked and has ALWAYS outputed just the "DNS service is up (ok)" message
But im at a point now where we need to monitor dns records and this brings me back to square 1
Josh Luthman ---09/23/2009 02:05:34 PM---Oh sorry - Gmail hit the A answer - this is what matters:
Josh Luthman <josh at imaginenetworksllc.com>
09/23/2009 02:05 PM
Please respond to
hobbit at hswn.dk
To
hobbit at hswn.dk
cc
Subject
Re: [hobbit] DNS Test - No Record Lookup
Oh sorry - Gmail hit the A answer - this is what matters:
;; ANSWER SECTION:
solaris.domain.com <http://solaris.domain.com/> . 259200 IN A 192.168.X.X
If you do a ping solaris.domain.com <http://solaris.domain.com/> does it resolve to 192.168.x.x? Were changes made to this record recently?
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth."
--- Sir Arthur Conan Doyle
On Wed, Sep 23, 2009 at 4:47 PM, <MFisher at hra.com <mailto:MFisher at hra.com> > wrote:
solaris.domain.com <http://solaris.domain.com/> exists...it came back with NOERROR??
; <<>> DiG 9.5.0b2 <<>> @solaris.domain.com <http://solaris.domain.com/> solaris.domain.com <http://solaris.domain.com/>
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9661
Michael S. Fisher
ISD | Active Directory Support
mfisher at hra.com <mailto:mfisher at hra.com>
+1 310 781 5663
Josh Luthman ---09/23/2009 01:45:15 PM---Neither solaris or solaris.domain.com <http://solaris.domain.com/>
Josh Luthman <josh at imaginenetworksllc.com <mailto:josh at imaginenetworksllc.com> >
09/23/2009 01:45 PM
Please respond to
hobbit at hswn.dk
To
hobbit at hswn.dk
cc
Subject
Re: [hobbit] DNS Test - No Record Lookup
Neither solaris or solaris.domain.com <http://solaris.domain.com/> exist. That's your problem. You need to fix your DNS servers (listed in /etc/resolv.conf) and add those records.
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth."
--- Sir Arthur Conan Doyle
On Wed, Sep 23, 2009 at 4:40 PM, <MFisher at hra.com <mailto:MFisher at hra.com> > wrote:
[xymon at xymon]$ dig solaris @solaris
; <<>> DiG 9.5.0b2 <<>> solaris @solaris
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2107
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;solaris. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA A.ROOT-SERVERS.NET <http://a.root-servers.net/> . NSTLD.VERISIGN-GRS.COM <http://nstld.verisign-grs.com/> . 2009092201 1800 900 604800 86400
;; Query time: 39 msec
;; SERVER: 192.168.X.X#53(192.168.X.X)
;; WHEN: Wed Sep 23 13:36:58 2009
;; MSG SIZE rcvd: 98
[xymon at xymon]$ dig @solaris.domain.com <http://solaris.domain.com/> solaris.domain.com <http://solaris.domain.com/>
; <<>> DiG 9.5.0b2 <<>> @solaris.domain.com <http://solaris.domain.com/> solaris.domain.com <http://solaris.domain.com/>
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9661
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;solaris.domain.com <http://solaris.domain.com/> . IN A
;; ANSWER SECTION:
solaris.domain.com <http://solaris.domain.com/> . 259200 IN A 192.168.X.X
;; AUTHORITY SECTION:
domain.com <http://domain.com/> . 259200 IN NS solaris.domain.com <http://solaris.domain.com/> .
;; Query time: 1 msec
;; SERVER: 192.168.X.X#53(192.168.X.X)
;; WHEN: Wed Sep 23 13:37:05 2009
;; MSG SIZE rcvd: 61
Josh Luthman ---09/23/2009 01:34:55 PM---Can you provide the output of
Josh Luthman <josh at imaginenetworksllc.com <mailto:josh at imaginenetworksllc.com> >
09/23/2009 01:34 PM
Please respond to
hobbit at hswn.dk <mailto:hobbit at hswn.dk>
To
hobbit at hswn.dk <mailto:hobbit at hswn.dk>
cc
Subject
Re: [hobbit] DNS Test - No Record Lookup
Can you provide the output of
dig solaris @solaris
dig solaris.domain.com <http://solaris.domain.com/> @solaris.domain.com <http://solaris.domain.com/>
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth."
--- Sir Arthur Conan Doyle
On Wed, Sep 23, 2009 at 4:26 PM, <MFisher at hra.com <mailto:MFisher at hra.com> > wrote:
I have chanegd the bb-hosts entry to be
192.168.X.X solaris.domain.com <http://solaris.domain.com/> # dns nis ntp telnet pop3 pop3s imap imaps
And i renamed through bb with the command ./bb 127.0.0.1 "rename solaris solaris.domain.com <http://solaris.domain.com/> "
No dice....UGH
Craig Cook ---09/23/2009 01:13:51 PM--->##############The bb-hosts file entry is as follows: >
Craig Cook <Craig.Cook at carquest.com <mailto:Craig.Cook at carquest.com> >
09/23/2009 01:13 PM
Please respond to
hobbit at hswn.dk <mailto:hobbit at hswn.dk>
To
"hobbit at hswn.dk <mailto:hobbit at hswn.dk> " <hobbit at hswn.dk <mailto:hobbit at hswn.dk> >
cc
Subject
Re: [hobbit] DNS Test - No Record Lookup
>##############The bb-hosts file entry is as follows:
>
>page solaris Solaris
>192.168.X.X solaris # Name:"SOLARIS" dns nis ntp telnet pop3 pop3s imap imaps
You are not using FQDN.
Try (as the xymon user on the xymon host)
dig @solaris solaris
You may not be resolving correctly. Confirm /etc/resolv.conf is correct
Try adding your domain to bb-hosts
192.168.X.X solaris.example.com <http://solaris.example.com/> # Name:"SOLARIS" dns nis ntp telnet pop3 pop3s imap imaps
Also try removing ‘ Name:"SOLARIS” ‘ (I don’t think that will matter though)
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090924/0f92e3c2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 105 bytes
Desc: image002.gif
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090924/0f92e3c2/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 168 bytes
Desc: image001.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090924/0f92e3c2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 166 bytes
Desc: image006.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090924/0f92e3c2/attachment-0001.png>
More information about the Xymon
mailing list