You can use req_query() function in your code (it has no output parser libs)
That lib call needs header file resolv.h and there is an option named:
_PATH_RESCONF (used by ndef) that can get the file name (instead of
resolv.conf).
Never seen an environment var that can be changed which affect resolver.
Eddie


> -----Original Message-----
> From: guy keren [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 08, 2002 03:53
> To: [EMAIL PROTECTED]
> Subject: 'per-process' DNS setup?
> 
> 
> i'm trying to 'fake' DNS settings for a _single_ process on a linux box
> (i.e. when this process will query for the address of a given host, it
> will get a reply i set a-priory, while other processes will get the proper
> repely).
> 
> i noticed there are various environment variables that allow overriding
> various settings for the resolver library, but they don't seem to allow
> enough control to actually override such settings, without changing the
> settings for the whole box. i've been searching on google, and looking for
> info in the o'rreily "DNS and bind" book - to no avail.
> 
> if anyone has an idea if such a feature is available - i'd be glad for any
> pointer. it sounds odd for such a feature not to be already available via
> the default libraries.
> 
> thanks,
> --
> guy
> 
> "For world domination - press 1,
>  or dial 0, and please hold, for the creator." -- nob o. dy
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to