@homebridge/ciao
Version:
ciao is a RFC 6763 compliant dns-sd library, advertising on multicast dns (RFC 6762) implemented in plain Typescript/JavaScript
27 lines • 647 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.dnsTypeToString = dnsTypeToString;
function dnsTypeToString(type) {
switch (type) {
case 1:
return "A";
case 5:
return "CNAME";
case 12:
return "PTR";
case 16:
return "TXT";
case 28:
return "AAAA";
case 33:
return "SRV";
case 41:
return "OPT";
case 47:
return "NSEC";
case 255:
return "ANY";
}
return "UNSUPPORTED_" + type;
}
//# sourceMappingURL=dns-string-utils.js.map