RES_HNOK(3C) RES_HNOK(3C)
res_hnok, res_ownok, res_mailok, res_dnok - name service record validity
routines
#include <resolv.h>
int res_hnok(char *dn);
int res_ownok(char *dn);
int res_mailok(char *dn);
int res_dnok(char *dn);
Helper functions that determine the validity of a few types of nameservice
related records. Functions return 1 for valid, 0 for invalid.
res_hnok determines if the given argument is a valid hostname. res_ownok
is similar, but allows for "*" in the first label. For example:
*.sgi.com. This is appropriate for A or MX record owners. res_mailok
allows for any printable characters in the first label. The rest of the
name must look like a valid hostname. Useful for SOA RNAMEs and RP
RNAMEs. Finally, res_dnok follows RFC 1034 for valid domain name
characters.
/etc/resolv.conf
resolver(4), named(1M).
PPPPaaaaggggeeee 1111 [ Back ]
|