#include "nsd.h"Data Structures | |
| struct | Value |
Defines | |
| #define | INADDR_NONE (-1) |
Typedefs | |
| typedef int( | GetProc )(Ns_DString *dsPtr, char *key) |
Functions | |
| int | Ns_GetHostByAddr (Ns_DString *dsPtr, char *addr) |
| int | Ns_GetAddrByHost (Ns_DString *dsPtr, char *host) |
| int | Ns_GetAllAddrByHost (Ns_DString *dsPtr, char *host) |
| void | NsEnableDNSCache (void) |
| #define INADDR_NONE (-1) |
| typedef int( GetProc)(Ns_DString *dsPtr, char *key) |
| int Ns_GetAddrByHost | ( | Ns_DString * | dsPtr, | |
| char * | host | |||
| ) |
| int Ns_GetAllAddrByHost | ( | Ns_DString * | dsPtr, | |
| char * | host | |||
| ) |
| int Ns_GetHostByAddr | ( | Ns_DString * | dsPtr, | |
| char * | addr | |||
| ) |
---------------------------------------------------------------------- Ns_GetHostByAddr, Ns_GetAddrByHost --
Convert an IP address to a hostname or vice versa.
Results: See DnsGet().
Side effects: A new entry is entered into the hash table.
----------------------------------------------------------------------
| void NsEnableDNSCache | ( | void | ) |
---------------------------------------------------------------------- NsEnableDNSCache --
Enable DNS results caching.
Results: None.
Side effects: Futher DNS lookups will be cached up to given timeout.
----------------------------------------------------------------------
NB: Config minutes, seconds internally.
1.5.1