diff options
Diffstat (limited to 'src/net_unix/dns.c')
| -rw-r--r-- | src/net_unix/dns.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/net_unix/dns.c b/src/net_unix/dns.c deleted file mode 100644 index f4036a2..0000000 --- a/src/net_unix/dns.c +++ /dev/null @@ -1,19 +0,0 @@ - -#include <netdb.h> -#include <string.h> - -#include "base/main.h" - -char* getIPFormDNS(char *domain) -{ - struct hostent *host; - - host = gethostbyname(domain); - - if( host == NULL || host->h_addr_list[0] == NULL ) - { - return NULL; - } - - return strdup( inet_ntoa( * ( (struct in_addr *) host->h_addr_list[0] ) ) ); -} |