This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to test a patch in resolv/?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]