#include <stdio.h>
#include <syslog.h>

struct  hostent {
        char    *h_name;        /* official name of host */
        char    **h_aliases;    /* alias list */
        int     h_addrtype;     /* host address type */
        int     h_length;       /* length of address */
        char    **h_addr_list;  /* list of addresses from name server */
#define h_addr  h_addr_list[0]  /* address, for backward compatiblity */
};

struct hostent *gethostbyname(name)
        char *name;
{
   openlog("gethost_wrapper", LOG_PID, LOG_DAEMON);
   syslog(LOG_INFO, "intercepted gethostbyname of %s", name);
   closelog(); 
   return ((struct hostent *) NULL);
}

struct hostent *gethostbyaddr(addr, len, type)
        char *addr;
        int len, type;
{
   openlog("gethost_wrapper", LOG_PID, LOG_DAEMON);
   syslog(LOG_INFO, "intercepted gethostbyaddr of %d.%d.%d.%d",
    ((unsigned)addr[0] & 0xff), ((unsigned)addr[1] & 0xff),
    ((unsigned)addr[2] & 0xff), ((unsigned)addr[3] & 0xff));
   closelog();
   return ((struct hostent *) NULL);
}
