domain_name.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_H
#define DOMAIN_NAME_H
#define DOMAIN_NAME_MAX 256
int domain_name_lookup(const char *name, char *addr);
int domain_name_lookup_reverse(const char *addr, char *name);
#endif
domain_name_lookup
int domain_name_lookup(const char *name, char *addr)
Resolve a domain name to an IP address.
domain_name_lookup_reverse
int domain_name_lookup_reverse(const char *addr, char *name)
Resolve an IP address to a domain name with caching.