P_CLASS(3C) P_CLASS(3C)
p_class, p_time, p_type, p_rr, p_query, p_cdname - utilities for dns
queries
#include <resolv.h>
char *p_class(int class);
char *p_time(u_int32_t value);
char *p_type(int type);
u_char *p_rr(u_char *cp, u_char *msg, FILE *file);
void p_query(u_char *msg);
u_char *p_cdname(u_char *cp, u_char *msg, FILE *file);
Routines for interpreting and recording query and reply messages with
Internet domain name servers.
p_class returns an alphanumeric mnemonic for a given class value.
Similarly, p_type returns a mnemonic for the given type value. p_time
returns a human-readable string for a given ttl (time-to-live.)
p_rr prints a resource record in human-readable form. The resource
record, cp , is contained in the message msg. p_cdname is a wrapper for
dn_expand(3). It will uncompress and print a compressed domain name, cp
contained in message msg.
res_query(3), dn_exapand(3), resolver(4).
PPPPaaaaggggeeee 1111 [ Back ]
|