cctools
domain_name.h
Go to the documentation of this file.
1/*
2Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3Copyright (C) 2022 The University of Notre Dame
4This software is distributed under the GNU General Public License.
5See 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
26int domain_name_lookup(const char *name, char *addr);
27
34int domain_name_lookup_reverse(const char *addr, char *name);
35
36#endif
int domain_name_lookup(const char *name, char *addr)
Resolve a domain name to an IP address.
int domain_name_lookup_reverse(const char *addr, char *name)
Resolve an IP address to a domain name with caching.