cctools
domain_name.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef DOMAIN_NAME_H
9 #define DOMAIN_NAME_H
10 
18 #define DOMAIN_NAME_MAX 256
19 
26 int domain_name_lookup(const char *name, char *addr);
27 
34 int domain_name_lookup_reverse(const char *addr, char *name);
35 
36 #endif
int domain_name_lookup_reverse(const char *addr, char *name)
Resolve an IP address to a domain name with caching.
int domain_name_lookup(const char *name, char *addr)
Resolve a domain name to an IP address.