RESOLV_WRAPPER(1) | RESOLV_WRAPPER(1) |
resolv_wrapper - A wrapper for dns name resolving or dns faking.
LD_PRELOAD=libresolv_wrapper.so RESOLV_WRAPPER_CONF="/path/to/resolv.conf" ./myapplication
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’t work on a special platform the wrapper is able to fake DNS queries and return valid responses to your application.
RESOLV_WRAPPER_CONF
RESOLV_WRAPPER_HOSTS
TYPE RECORD_NAME RECORD_VALUE
For example:
A dc.cwrap.org 127.0.0.10 AAAA dc.cwrap.org fd00::5357:5f0a CNAME kerberos.cwrap.org dc.cwrap.org SRV _kerberos._tcp.cwrap.org kerberos.cwrap.org 88 URI _vpn.cwrap.org https://vpn.cwrap.org/VPN
RESOLV_WRAPPER_DEBUGLEVEL
The following command would trick kinit(1) into using DNS servers from "./resolv.conf" for Kerberos service resolution:
$ LD_PRELOAD=libresolv_wrapper.so RESOLV_WRAPPER_CONF="./resolv.conf" kinit user@EXAMPLE.COM
2015-08-18 |