what do you use to parse the response from res_query()?
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
Not very SUSE specific, but I was hoping some of the knowledgeable people here might be able to guide my way :-) When you use res_query() to retrieve DNS records, what do you use to parse the results afterwards? I found resparse-1.3 : http://gatekeep.cs.utah.edu/hppd/hpux/Networking/Admin/resparse-1.3/, but it was last changed in 1997 ... also, it uses #defines from arpa nameser.h which might be defined on HPUX, but in glibc. Any suggestions? /Per Jessen, Zürich -- http://www.spamchek.ch/ - managed anti-spam and anti-virus solution for everyone.
![](https://seccdn.libravatar.org/avatar/065c1b01e178c3f95a4d8a34115ab87f.jpg?s=120&d=mm&r=g)
On Thursday 10 November 2005 10:16, Per Jessen wrote:
Not very SUSE specific, but I was hoping some of the knowledgeable people here might be able to guide my way :-) When you use res_query() to retrieve DNS records, what do you use to parse the results afterwards? man 3 res_query :-)
-- Damian Mihai Liviu Mobile: +40 741 226993; Fax: +1 347-632-4117 Phone : +1 360-526-6441; +1 347-632-4117; +44 0870-3403339 URL: http://liviudm.blogspot.com
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
Damian Mihai Liviu wrote:
On Thursday 10 November 2005 10:16, Per Jessen wrote:
Not very SUSE specific, but I was hoping some of the knowledgeable people here might be able to guide my way :-) When you use res_query() to retrieve DNS records, what do you use to parse the results afterwards? man 3 res_query :-)
I'm guessing you've already read it yourself - so you'll know it says absolutely nothing about parsing the response .... :-( /Per Jessen -- http://www.spamchek.co.uk/ - managed anti-spam and anti-virus solution. Sign up for your free 30-day trial now!
![](https://seccdn.libravatar.org/avatar/065c1b01e178c3f95a4d8a34115ab87f.jpg?s=120&d=mm&r=g)
On Thursday 10 November 2005 10:24, Per Jessen wrote:
I'm guessing you've already read it yourself - so you'll know it says absolutely nothing about parsing the response .... :-( http://www.unix.org.ua/orelly/networking/dnsbind/ch14_02.htm Maybe this will help you.
Cheers, -- Damian Mihai Liviu Mobile: +40 741 226993; Fax: +1 347-632-4117 Phone : +1 360-526-6441; +1 347-632-4117; +44 0870-3403339 URL: http://liviudm.blogspot.com
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
Damian Mihai Liviu wrote:
On Thursday 10 November 2005 10:24, Per Jessen wrote:
I'm guessing you've already read it yourself - so you'll know it says absolutely nothing about parsing the response .... :-( http://www.unix.org.ua/orelly/networking/dnsbind/ch14_02.htm Maybe this will help you.
Yes, it does - thanks. /Per Jessen, Zürich
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
Per Jessen wrote:
Not very SUSE specific, but I was hoping some of the knowledgeable people here might be able to guide my way :-) When you use res_query() to retrieve DNS records, what do you use to parse the results afterwards?
Any suggestions?
OK, I get to answer my own question - the resolver library comes with routines such ns_initparse, ns_parserr etc. These seem to be the way to go - even if they're incredibly badly documented. /Per Jessen -- http://www.spamchek.com/freetrial - managed anti-spam and anti-virus solution.
participants (2)
-
Damian Mihai Liviu
-
Per Jessen