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

Support TXT, SRV and PTR records #291

Merged
merged 1 commit into from
May 30, 2020
Merged

Support TXT, SRV and PTR records #291

merged 1 commit into from
May 30, 2020

Conversation

NN---
Copy link
Contributor

@NN--- NN--- commented May 26, 2020

No description provided.

- id: text
type: str
size: length
encoding: UTF-8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure that this comes in UTF-8? My guess would be that DNS protocol longs before predates Unicode, so likely it's treated as raw byte array?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.
Let me double check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://tools.ietf.org/html/rfc1464

RFC says ASCII.
I’ll check whether there is a update to this RFC.

Copy link
Contributor Author

@NN--- NN--- May 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASCII is subset of UTF-8.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's stick with UTF-8 for now then, and we can always make it more strict or more relaxed later.

@GreyCat GreyCat merged commit 8678108 into kaitai-io:master May 30, 2020
@GreyCat
Copy link
Member

GreyCat commented May 30, 2020

Merging this, thanks for your contribution!

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

Successfully merging this pull request may close these issues.

2 participants