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