summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a805635)
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
* Fix a possible segfault.
version 1.1.0 (released 2014-12-02)
* Fix a possible segfault.
version 1.1.0 (released 2014-12-02)
- * Added case insensitive comparsion of dns names (dns faking).
+ * Added case insensitive comparison of dns names (dns faking).
* Added support complete dns names (trailing dot) (dns faking).
* Added support for recursive name resolving (dns faking).
* Fixed calculation of response size (dns faking).
* Added support complete dns names (trailing dot) (dns faking).
* Added support for recursive name resolving (dns faking).
* Fixed calculation of response size (dns faking).
LD_PRELOAD=libresolv_wrapper\&.so RESOLV_WRAPPER_CONF="/path/to/resolv\&.conf" \fB\&./myapplication\fR
.SH "DESCRIPTION"
.sp
LD_PRELOAD=libresolv_wrapper\&.so RESOLV_WRAPPER_CONF="/path/to/resolv\&.conf" \fB\&./myapplication\fR
.SH "DESCRIPTION"
.sp
-resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS implmentation in your test environment\&. It requires socket_wrapper to be able to contact it\&. If it doesn\(cqt work on a special platform the wrapper is able to fake DNS queries and return valid responses to your application\&.
+resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS implementation in your test environment\&. It requires socket_wrapper to be able to contact it\&. If it doesn\(cqt work on a special platform the wrapper is able to fake DNS queries and return valid responses to your application\&.
-----------
resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS
-----------
resolv_wrapper makes it possible on most UNIX platforms to contact your own DNS
-implmentation in your test environment. It requires socket_wrapper to be able
+implementation in your test environment. It requires socket_wrapper to be able
to contact it.
If it doesn't work on a special platform the wrapper is able to fake DNS queries
and return valid responses to your application.
to contact it.
If it doesn't work on a special platform the wrapper is able to fake DNS queries
and return valid responses to your application.
h->id = res_randomid(); /* random query ID */
h->qr = 1; /* response flag */
h->rd = 1; /* recursion desired */
h->id = res_randomid(); /* random query ID */
h->qr = 1; /* response flag */
h->rd = 1; /* recursion desired */
- h->ra = 1; /* resursion available */
+ h->ra = 1; /* recursion available */
h->qdcount = htons(1); /* no. of questions */
h->ancount = htons(ancount); /* no. of answers */
h->qdcount = htons(1); /* no. of questions */
h->ancount = htons(ancount); /* no. of answers */
/* Reads in a file in the following format:
* TYPE RDATA
*
/* Reads in a file in the following format:
* TYPE RDATA
*
- * Malformed entried are silently skipped.
+ * Malformed entries are silently skipped.
* Allocates answer buffer of size anslen that has to be freed after use.
*/
static int rwrap_res_fake_hosts(const char *hostfile,
* Allocates answer buffer of size anslen that has to be freed after use.
*/
static int rwrap_res_fake_hosts(const char *hostfile,