-const char *qtype_str(int t)
-{
- static char buf[32];
- switch (t) {
-#if (defined (__NAMESER)) && (__NAMESER >= 19991001)
- case ns_t_a: return ("A");
- case ns_t_ns: return ("NS");
- case ns_t_md: return ("MD");
- case ns_t_mf: return ("MF");
- case ns_t_cname: return ("CNAME");
- case ns_t_soa: return ("SOA");
- case ns_t_mb: return ("MB");
- case ns_t_mg: return ("MG");
- case ns_t_mr: return ("MR");
- case ns_t_null: return ("NULL");
- case ns_t_wks: return ("WKS");
- case ns_t_ptr: return ("PTR");
- case ns_t_hinfo: return ("HINFO");
- case ns_t_minfo: return ("MINFO");
- case ns_t_mx: return ("MX");
- case ns_t_txt: return ("TXT");
- case ns_t_rp: return ("RP");
- case ns_t_afsdb: return ("AFSDB");
- case ns_t_x25: return ("X25");
- case ns_t_isdn: return ("ISDN");
- case ns_t_rt: return ("RT");
- case ns_t_nsap: return ("NSAP");
- case ns_t_nsap_ptr: return ("NSAP-PTR");
- case ns_t_sig: return ("SIG");
- case ns_t_key: return ("KEY");
- case ns_t_px: return ("PX");
- case ns_t_gpos: return ("GPOS");
- case ns_t_aaaa: return ("AAAA");
- case ns_t_loc: return ("LOC");
- case ns_t_nxt: return ("NXT");
- case ns_t_eid: return ("EID");
- case ns_t_nimloc: return ("NIMLOC");
- case ns_t_srv: return ("SRV");
- case ns_t_atma: return ("ATMA");
- case ns_t_naptr: return ("NAPTR");
- case ns_t_opt: return ("OPT");
-# if __NAMESER >= 19991006
- case ns_t_kx: return ("KX");
- case ns_t_cert: return ("CERT");
- case ns_t_a6: return ("A6");
- case ns_t_dname: return ("DNAME");
- case ns_t_sink: return ("SINK");
- case ns_t_tsig: return ("TSIG");
-# endif
-# if __NAMESER >= 20090302
- case ns_t_apl: return ("APL");
- case ns_t_ds: return ("DS");
- case ns_t_sshfp: return ("SSHFP");
- case ns_t_ipseckey: return ("IPSECKEY");
- case ns_t_rrsig: return ("RRSIG");
- case ns_t_nsec: return ("NSEC");
- case ns_t_dnskey: return ("DNSKEY");
- case ns_t_dhcid: return ("DHCID");
- case ns_t_nsec3: return ("NSEC3");
- case ns_t_nsec3param: return ("NSEC3PARAM");
- case ns_t_hip: return ("HIP");
- case ns_t_spf: return ("SPF");
- case ns_t_ixfr: return ("IXFR");
-# endif
- case ns_t_axfr: return ("AXFR");
- case ns_t_mailb: return ("MAILB");
- case ns_t_maila: return ("MAILA");
- case ns_t_any: return ("ANY");
-# if __NAMESER >= 19991006
- case ns_t_zxfr: return ("ZXFR");
-# endif
-# if __NAMESER >= 20090302
- case ns_t_dlv: return ("DLV");
-# endif