how to set timeout in /etc/resolv.conf ?

I have read articles about putting timeout for dns look up in resolv.conf.
can this be done in qnx4.25? if so, how do i set it?
i have problem with gethostbyname() takes too long if the name can’t be
resolved, if timeout can’t be set in resolv.conf, is ther
an alternative way?