Register custom record types

#116 · open · 1 comments

View on GitHub ↗

kirill-782

The mdns service needs to add an entry for correct operation, the type of which is not assigned in the specification. There is an `UnknownRecord` class, but the `Type `property is set by the enum class. Is there a way to somehow bind the record in a different way?

Comments

bergus

https://richardschneider.github.io/net-dns/articles/rr-registry.html suggests to simply cast an arbitrary integer to `DnsType`, then register your custom record class in the registry.