Xymon Mailing List Archive search

DNS Testing

8 messages in this thread

list Bob Gordon · Tue, 13 Sep 2005 03:57:28 -0700 ·
Hello -

In looking at the bb-hosts man page (DNS Server Test section), I see that 
the syntax is "dns=hostname" or "dns=TYPE:lookup"... Any way to make it look 
at a specific DNS server as well? ( i.e. dig @dnsserver hostname )

-- 
--==[ Bob Gordon ]==--
list Henrik Størner · Tue, 13 Sep 2005 14:24:05 +0200 ·
quoted from Bob Gordon
On Tue, Sep 13, 2005 at 03:57:28AM -0700, Bob Gordon wrote:
In looking at the bb-hosts man page (DNS Server Test section), I see that 
the syntax is "dns=hostname" or "dns=TYPE:lookup"... Any way to make it look 
at a specific DNS server as well? ( i.e. dig @dnsserver hostname )
It will always test the DNS server upon which this dns query is defined.
E.g. you have two DNS server and you want to check if both of them can
resolve "www.kernel.org", so you put this in the bb-hosts file:

  10.0.0.1   dns1.foo.com # dns=a:www.kernel.org
  10.0.0.2   dns2.foo.com # dns=a:www.kernel.org

The first one sends the request to the dns1 server, the second request
goes to the dns2 server. Just like all of the other network tests.


Henrik
list Daniel J McDonald · Tue, 13 Sep 2005 07:41:42 -0500 ·
quoted from Bob Gordon
On Tue, 2005-09-13 at 03:57 -0700, Bob Gordon wrote:
Hello -

In looking at the bb-hosts man page (DNS Server Test section), I see
that the syntax is "dns=hostname" or "dns=TYPE:lookup"...   Any way to
make it look at a specific DNS server as well?   ( i.e.   dig
@dnsserver hostname )
That's what you are testing...  What an individual server is responding.

So, I might have:
0.0.0.0         ns1.example.com        # noconn
dig=SOA:example.com,SOA:example.net,SOA:example.org,SOA:example.us,TXT:example.com ssh
0.0.0.0         ns2.example.com        # noconn
dig=SOA:example.com,SOA:example.net,SOA:example.org,SOA:example.us,TXT:example.com                         ssh

So, here I am testing whether ns1.example.com can return the soa record
for all of these various domains, and the same for ns2...

-- 
Daniel J McDonald, CCIE # 2495, CNX, CISSP # 78281
Austin Energy

user-290ce4e24e19@xymon.invalid
list Bob Gordon · Tue, 13 Sep 2005 11:15:30 -0700 ·
quoted from Henrik Størner
On 9/13/05, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
It will always test the DNS server upon which this dns query is defined.
E.g. you have two DNS server and you want to check if both of them can

resolve "www.kernel.org <http://www.kernel.org>";, so you put this in the 
bb-hosts file:

10.0.0.1 <http://10.0.0.1>; dns1.foo.com <http://dns1.foo.com>; # dns=a:
www.kernel.org <http://www.kernel.org>;
10.0.0.2 <http://10.0.0.2>; dns2.foo.com <http://dns2.foo.com>; # dns=a:
www.kernel.org <http://www.kernel.org>;
quoted from Henrik Størner

The first one sends the request to the dns1 server, the second request
goes to the dns2 server. Just like all of the other network tests.

Thanks -

I was looking at the man page at 3:30 in the morning.. Shows what lack of 
sleep will do.. :)

-- 
--==[ Bob Gordon ]==--
list Craig Cook · Wed, 20 May 2009 11:37:56 -0400 ·
I have an internal resolving only DNS server.

dig @dns1.example.com www.google.com<http://www.google.com>;

Gives me a valid response.

dig @dns1.example.com dns1.example.com
Fails, since dns1.example.com is not a valid address on the internet.

Is it a requirement for dns1.example.com to be able to resolve it's own name?

I tried this in bb-hosts


0.0.0.0    dns1.example.com  # dns=ns:google.com

But Xymon gives me a red page stating that dns1.example.com service is unavailable.

Craig
list Stef Coene · Thu, 21 May 2009 11:53:09 +0200 ·
On Wednesday 20 May 2009, Craig Cook wrote:
0.0.0.0    dns1.example.com  # dns=ns:google.com
Try:
0.0.0.0    dns1.example.com  # dns=google.com


Stef
list Craig Cook · Thu, 21 May 2009 09:11:26 -0400 ·
Try:
0.0.0.0    dns1.example.com  # dns=google.com


Stef
No, that does not work either.

I suspect it an undocumented requirement that a DNS server can resolve it's own IP.  A resolving only DNS server that can not resolve it's own name is not common.

Craig
list Stef Coene · Thu, 21 May 2009 18:01:39 +0200 ·
quoted from Craig Cook
On Thursday 21 May 2009, Craig Cook wrote:
Try:
0.0.0.0    dns1.example.com  # dns=google.com


Stef
No, that does not work either.

I suspect it an undocumented requirement that a DNS server can resolve it's
own IP.  A resolving only DNS server that can not resolve it's own name is
not common.
Try to enter the the ip and not 0.0.0.0.  I have the same setup, but with the 
ip entered in the bb-hosts file.


Stef