Problems with _res structure

Danny Mayer mayer at gis.net
Sat Sep 8 01:56:53 UTC 2001


At 08:05 PM 9/6/01, Gopal Kulkarni wrote:
>Hello all,
>
>I am trying to write a DNS application using libbind.dll on the Windows2000
>platform (BIND8.x). I can query the DNS server for records using the
>res_query function. But when I try to delete a record, my application
>crashes. Here is the sequence:
>
>1) Call res_init()
>2) Call res_query() to find the record I want to delete. Succeeds.
>3) Before calling res_mkupdate() and res_send(), I  try to set the options
>(turn off search algorithm and default domains) using the following line:
>     _res.options &= ~(RES_DNSRCH | RES_DEFNAMES);
>4) Crashes with Access Violation error.


You're on your own here. You need to build your own copy of the library and then
step through it in the debugger and find out what's wrong. Noone else can do
this for you, that's what programming is all about.

         Danny



More information about the bind-users mailing list