How to test a patch in resolv/?

Siddhesh Poyarekar sid@reserved-bit.com
Wed Oct 7 04:48:00 GMT 2015


On Wednesday 07 October 2015 12:45 AM, Florian Weimer wrote:
> You can use static linking to poke at library internals reliably, if
> that helps.
> 
> It used to be possible to override the configured name servers by
> directly writing to the _res structure.  This would make it possible to
> redirect DNS queries to a custom test server (either in another thread
> or process).  I don't know if current libresolv versions still support that.

Another way would be to write a custom resolver that sends crafted
responses.  I know QE in Red Hat does this with a perl script.  Arjun
(in cc now) plans to write such installed-tree tests in future.

Siddhesh



More information about the Libc-alpha mailing list