cctools
domain_name_cache.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_CACHE_H
9 #define DOMAIN_NAME_CACHE_H
10 
11 #include "domain_name.h"
12 
28 int domain_name_cache_guess(char *name);
29 
39 int domain_name_cache_guess_short(char *name);
40 
47 int domain_name_cache_lookup(const char *name, char *addr);
48 
55 int domain_name_cache_lookup_reverse(const char *addr, char *name);
56 
63 int domain_name_cache_canonical(const char *name_or_addr, char *cname);
64 
65 #endif
int domain_name_cache_canonical(const char *name_or_addr, char *cname)
Find the canonical name of a host.
int domain_name_cache_lookup(const char *name, char *addr)
Resolve a domain name to an IP address with caching.
int domain_name_cache_lookup_reverse(const char *addr, char *name)
Resolve an IP address to a domain name with caching.
int domain_name_cache_guess(char *name)
Determine the caller's primary domain name.
int domain_name_cache_guess_short(char *name)
Determine the caller's local machine name.
Look up domain names and addresses directly.