domain_name_cache.h
Go to the documentation of this file.
/*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef DOMAIN_NAME_CACHE_H
#define DOMAIN_NAME_CACHE_H
#include "domain_name.h"
int domain_name_cache_guess(char *name);
int domain_name_cache_guess_short(char *name);
int domain_name_cache_lookup(const char *name, char *addr);
int domain_name_cache_lookup_reverse(const char *addr, char *name);
int domain_name_cache_canonical(const char *name_or_addr, char *cname);
#endif
domain_name.h
Look up domain names and addresses directly.
domain_name_cache_lookup_reverse
int domain_name_cache_lookup_reverse(const char *addr, char *name)
Resolve an IP address to a domain name with caching.
domain_name_cache_canonical
int domain_name_cache_canonical(const char *name_or_addr, char *cname)
Find the canonical name of a host.
domain_name_cache_lookup
int domain_name_cache_lookup(const char *name, char *addr)
Resolve a domain name to an IP address with caching.
domain_name_cache_guess
int domain_name_cache_guess(char *name)
Determine the caller's primary domain name.
domain_name_cache_guess_short
int domain_name_cache_guess_short(char *name)
Determine the caller's local machine name.