Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register custom record types #116

Open
kirill-782 opened this issue Nov 5, 2022 · 1 comment
Open

Register custom record types #116

kirill-782 opened this issue Nov 5, 2022 · 1 comment

Comments

@kirill-782
Copy link

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?

@bergus
Copy link

bergus commented Mar 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants