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

Encoding some resources myself? #57

Open
bortzmeyer opened this issue Dec 18, 2022 · 1 comment
Open

Encoding some resources myself? #57

bortzmeyer opened this issue Dec 18, 2022 · 1 comment

Comments

@bortzmeyer
Copy link

I would like to return resource records whose types are not encoded by the Erlang library (such as LOC). I can do the encoding myself but I don't know how to put this in a DNS.Resource. If I send a binary, DNS.Resource.to_record complains. What is the proper way to do so and is it even possible?

@bortzmeyer
Copy link
Author

Got it (from the Erlang sources), you just have to use a number (the type of the resource record) and not an atom in the type field of a %DNS.Resource. Then you can supply what you want in the data field. This deserves documentation.

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

1 participant