Xymon Mailing List Archive search

dns query output

7 messages in this thread

list Asif Iqbal · Mon, 6 Feb 2006 15:53:16 -0500 ·
Hi All

How does hobbit/bbtest-net use to get the dns query output? I am not
using the --no-ares hook. I thought it uses dig @server host, but I am
probably wrong about that.

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Asif Iqbal · Mon, 6 Feb 2006 18:33:21 -0500 ·
▸ quoted from Asif Iqbal
On Mon, Feb 06, 2006 at 03:53:16PM, Asif Iqbal wrote:
Hi All

How does hobbit/bbtest-net use to get the dns query output? I am not
using the --no-ares hook. I thought it uses dig @server host, but I am
probably wrong about that.

Thanks
Also how do I go by compiling hobbit with djbdns library? I am already
running djbdns's dnscache (internal) on hobbit server and like to take
advantage if it for hobbit.
▸ quoted from Asif Iqbal

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Alan Sparks · Mon, 06 Feb 2006 17:15:20 -0700 ·
▸ quoted from Asif Iqbal
Asif Iqbal wrote:
Also how do I go by compiling hobbit with djbdns library? I am already
running djbdns's dnscache (internal) on hobbit server and like to take
advantage if it for hobbit.

Thanks
  
Write a patch.  DJB's DNS library is not plug-compatible with the 
standard resolver library.  Code will need to be rewritten.
Of course, not much Bernstein's written is compatible with anything 
else, anyway... :-)
-Alan

-- 
Alan Sparks, UNIX/Linux Systems Integration and Administration
<user-8f2174fd8b66@xymon.invalid>
list Henrik Størner · Tue, 7 Feb 2006 07:46:29 +0100 ·
▸ quoted from Asif Iqbal
On Mon, Feb 06, 2006 at 06:33:21PM -0500, Asif Iqbal wrote:
On Mon, Feb 06, 2006 at 03:53:16PM, Asif Iqbal wrote:
How does hobbit/bbtest-net use to get the dns query output? I am not
using the --no-ares hook. I thought it uses dig @server host, but I am
probably wrong about that.
It uses the c-ares library to perform the DNS queries, then formats the
results into what you see.

It never uses "dig", "nslookup" or any other external program.
▸ quoted from Alan Sparks
Also how do I go by compiling hobbit with djbdns library? I am already
running djbdns's dnscache (internal) on hobbit server and like to take
advantage if it for hobbit.
Using the djbdns resolver library requires some re-coding of the DNS
routines in Hobbit. But why don't you just put "nameserver 127.0.0.1"
into your resolv.conf file ? Then Hobbit will perform the lookups
against your local dnscache daemon, and you'll get 90% of the benefits
without having to change anything.


Henrik
list Henrik Størner · Tue, 7 Feb 2006 07:50:04 +0100 ·
▸ quoted from Alan Sparks
On Mon, Feb 06, 2006 at 05:15:20PM -0700, Alan Sparks wrote:
Asif Iqbal wrote:
Also how do I go by compiling hobbit with djbdns library? I am already
running djbdns's dnscache (internal) on hobbit server and like to take
advantage if it for hobbit.

Thanks
 
Write a patch.  DJB's DNS library is not plug-compatible with the 
standard resolver library.  Code will need to be rewritten.
Of course, not much Bernstein's written is compatible with anything 
else, anyway... :-)
Amen. Much as I like some of DJB's tools, his coding style and disregard
for any kind of API compatibility can be a real pain in the ....

I actually did look at his resolver library for Hobbit, but gave up
trying to work out exactly how it should be used. Then I found the
c-ares library and never looked back.

I do use his DNS daemons on my servers, but it's kind of "black-box"
code - as long as it does what it should, I don't care *how* it does it.


Henrik
list Asif Iqbal · Tue, 7 Feb 2006 09:43:17 -0500 ·
▸ quoted from Henrik Størner
On Tue, Feb 07, 2006 at 07:46:29AM, Henrik Storner wrote:
On Mon, Feb 06, 2006 at 06:33:21PM -0500, Asif Iqbal wrote:
On Mon, Feb 06, 2006 at 03:53:16PM, Asif Iqbal wrote:
How does hobbit/bbtest-net use to get the dns query output? I am not
using the --no-ares hook. I thought it uses dig @server host, but I am
probably wrong about that.
It uses the c-ares library to perform the DNS queries, then formats the
results into what you see.
I was wondering if I there is a example query I can run to show
technical groups. Ofcourse the web shows the output but may be from cli
if I could run an example it would be cool.
▸ quoted from Henrik Størner
It never uses "dig", "nslookup" or any other external program.
Also how do I go by compiling hobbit with djbdns library? I am already
running djbdns's dnscache (internal) on hobbit server and like to take
advantage if it for hobbit.
Using the djbdns resolver library requires some re-coding of the DNS
routines in Hobbit. But why don't you just put "nameserver 127.0.0.1"
That is what I have been doing exactly :-)

Thanks a lot
▸ quoted from Asif Iqbal
into your resolv.conf file ? Then Hobbit will perform the lookups
against your local dnscache daemon, and you'll get 90% of the benefits
without having to change anything.


Henrik

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Henrik Størner · Tue, 7 Feb 2006 16:53:54 +0100 ·
▸ quoted from Asif Iqbal
On Tue, Feb 07, 2006 at 09:43:17AM -0500, Asif Iqbal wrote:
On Tue, Feb 07, 2006 at 07:46:29AM, Henrik Storner wrote:
On Mon, Feb 06, 2006 at 06:33:21PM -0500, Asif Iqbal wrote:
On Mon, Feb 06, 2006 at 03:53:16PM, Asif Iqbal wrote:
How does hobbit/bbtest-net use to get the dns query output? I am not
using the --no-ares hook. I thought it uses dig @server host, but I am
probably wrong about that.
It uses the c-ares library to perform the DNS queries, then formats the
results into what you see.
I was wondering if I there is a example query I can run to show
technical groups. Ofcourse the web shows the output but may be from cli
if I could run an example it would be cool.
If you compile the c-ares library - the source tar.gz file is included
in Hobbit - the output is very similar to that of the "adig" utility.
(I think you'll have to run "make adig" to build that).


Henrik