(t uint16)
| 51 | } |
| 52 | |
| 53 | func dnsTypeCode(t uint16) string { |
| 54 | switch t { |
| 55 | case dns.TypeNone: |
| 56 | return "<None>" |
| 57 | case dns.TypeA: |
| 58 | return "A" |
| 59 | case dns.TypeNS: |
| 60 | return "NS" |
| 61 | case dns.TypeMD: |
| 62 | return "MD" |
| 63 | case dns.TypeMF: |
| 64 | return "MF" |
| 65 | case dns.TypeCNAME: |
| 66 | return "CNAME" |
| 67 | case dns.TypeSOA: |
| 68 | return "SOA" |
| 69 | case dns.TypeMB: |
| 70 | return "MB" |
| 71 | case dns.TypeMG: |
| 72 | return "MG" |
| 73 | case dns.TypeMR: |
| 74 | return "MR" |
| 75 | case dns.TypeNULL: |
| 76 | return "NULL" |
| 77 | case dns.TypePTR: |
| 78 | return "PTR" |
| 79 | case dns.TypeHINFO: |
| 80 | return "HINFO" |
| 81 | case dns.TypeMINFO: |
| 82 | return "MINFO" |
| 83 | case dns.TypeMX: |
| 84 | return "MX" |
| 85 | case dns.TypeTXT: |
| 86 | return "TXT" |
| 87 | case dns.TypeRP: |
| 88 | return "RP" |
| 89 | case dns.TypeAFSDB: |
| 90 | return "AFSDB" |
| 91 | case dns.TypeX25: |
| 92 | return "X25" |
| 93 | case dns.TypeISDN: |
| 94 | return "ISDN" |
| 95 | case dns.TypeRT: |
| 96 | return "RT" |
| 97 | case dns.TypeNSAPPTR: |
| 98 | return "NSAPPTR" |
| 99 | case dns.TypeSIG: |
| 100 | return "SIG" |
| 101 | case dns.TypeKEY: |
| 102 | return "KEY" |
| 103 | case dns.TypePX: |
| 104 | return "PX" |
| 105 | case dns.TypeGPOS: |
| 106 | return "GPOS" |
| 107 | case dns.TypeAAAA: |
| 108 | return "AAAA" |
| 109 | case dns.TypeLOC: |
| 110 | return "LOC" |