Re: res_search problem

2006-05-15 Thread René Berber
Peter Fales wrote: > On Thu, May 11, 2006 at 04:35:19PM -0500, Peter Fales wrote: >> I'm trying to port some code which uses res_search() to look up an SRV >> record. > > Pulled the source to the minires package and did some poking around. > It seems that write_record() in os-interface.c has

Re: res_search problem

2006-05-15 Thread Peter Fales
On Thu, May 11, 2006 at 04:35:19PM -0500, Peter Fales wrote: > I'm trying to port some code which uses res_search() to look up an SRV > record. Pulled the source to the minires package and did some poking around. It seems that write_record() in os-interface.c has cases for the different types

Re: res_search problem

2006-05-11 Thread Peter Fales
On Thu, May 11, 2006 at 05:38:28PM -0400, Christopher Faylor wrote: > AFAIK, Cygwin does not provide a res_search() function. Wow. quick response! res_search is in libresolv from the "minires" package. (Which wasn't on my system until I searched the mailing list archives to find which package

Re: res_search problem

2006-05-11 Thread Christopher Faylor
On Thu, May 11, 2006 at 04:35:19PM -0500, Peter Fales wrote: >I'm trying to port some code which uses res_search() to look up an SRV >record. The attached code works on Linux, Solaris, HP-UX, Darwin, and >Irix, but doesn't work on Cygwin. I'm not a DNS expert but this test >case is derived fro

res_search problem

2006-05-11 Thread Peter Fales
I'm trying to port some code which uses res_search() to look up an SRV record. The attached code works on Linux, Solaris, HP-UX, Darwin, and Irix, but doesn't work on Cygwin. I'm not a DNS expert but this test case is derived from code at: http://www.libspf.org/doxygen/html/dns_8c-source.html