DNS Testing
list Bob Gordon
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
▸
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
▸
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
▸
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>;
▸
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
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
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
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
▸
On Thursday 21 May 2009, Craig Cook wrote:
Try: 0.0.0.0 dns1.example.com # dns=google.com StefNo, 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