On 13/09/13 16:34, Otto Moerbeek wrote:
Groping into _res is not a wise thing. The OpenBSD async resolver only
has minimal support for that.

ASR_DEBUG=1 ./a.out

Will probably get you the debug info you want.

        -Otto


Thanks for the reply. As I said this is for debugging a legacy program...

ASR_DEBUG=1 ./a.out

shows
--------- ASR CONFIG ---------------
CONF FILE "/etc/resolv.conf"
DOMAIN "example.com"
SEARCH
   "example.com."
OPTIONS
 options: RECURSE DEFNAMES DNSRCH
 ndots: 1
 family: inet4 inet6
NAMESERVERS timeout=5 retry=4
        192.168.0.1:53
        192.168.0.2:53
HOSTFILE /etc/hosts
LOOKUP fb

------------------------------------

the program uses the following:
sendto(resfd, msg, len, 0, (struct sockaddr *) &(_res.nsaddr_list[i]), sizeof(struct sockaddr))

instead of sending requests to 192.168.0.1 it sends them to 127.0.0.1 (from tcpdump)

any further help/hints would be appreciated.

G

Reply via email to