1 /* Copyright 2000, International Business Machines Corporation and others.
4 * This software has been released under the terms of the IBM Public
5 * License. For details, see the LICENSE file in the top-level source
6 * directory or online at http://www.openafs.org/dl/license10.html
9 /* Well-known DNS port is 53 (for both TCP and UDP,
10 although UDP is typically the only one used) */
14 /* this function will continue to return cell server
15 names for the given cell, ending in null */
16 int getAFSServer(char *cellname, int *cellHosts, int *numServers, int *ttl);
18 /* a supplement for the DJGPP gethostbyname ... which
19 never bothers calling a DNS server ... so this function
20 takes care of that. This should be called when you
21 failed with gethostbyname (as that WILL check for
22 dotted decimal, and local hostfile) */
24 struct hostent *DNSgetHostByName(char *hostname);