Alien-cares

 view release on metacpan or  search on metacpan

libcares/nameser.h  view on Meta::CPAN

    ns_r_notimpl = 4,       /* Unimplemented. */
    ns_r_refused = 5,       /* Operation refused. */
    /* these are for BIND_UPDATE */
    ns_r_yxdomain = 6,      /* Name exists */
    ns_r_yxrrset = 7,       /* RRset exists */
    ns_r_nxrrset = 8,       /* RRset does not exist */
    ns_r_notauth = 9,       /* Not authoritative for zone */
    ns_r_notzone = 10,      /* Zone of record different from zone section */
    ns_r_max = 11,
    /* The following are TSIG extended errors */
    ns_r_badsig = 16,
    ns_r_badkey = 17,
    ns_r_badtime = 18
} ns_rcode;

#endif /* HAVE_ARPA_NAMESER_H */

#ifndef HAVE_ARPA_NAMESER_COMPAT_H

#define PACKETSZ         NS_PACKETSZ
#define MAXDNAME         NS_MAXDNAME

libcares/test/dns-proto.cc  view on Meta::CPAN

  case ns_r_formerr: return "FORMERR";
  case ns_r_servfail: return "SERVFAIL";
  case ns_r_nxdomain: return "NXDOMAIN";
  case ns_r_notimpl: return "NOTIMPL";
  case ns_r_refused: return "REFUSED";
  case ns_r_yxdomain: return "YXDOMAIN";
  case ns_r_yxrrset: return "YXRRSET";
  case ns_r_nxrrset: return "NXRRSET";
  case ns_r_notauth: return "NOTAUTH";
  case ns_r_notzone: return "NOTZONE";
  case ns_r_badsig: return "BADSIG";
  case ns_r_badkey: return "BADKEY";
  case ns_r_badtime: return "BADTIME";
  default: return "UNKNOWN";
  }
}

std::string RRTypeToString(int rrtype) {
  switch (rrtype) {
  case ns_t_a: return "A";
  case ns_t_ns: return "NS";



( run in 0.540 second using v1.01-cache-2.11-cpan-71847e10f99 )