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

[WIP]: Support for more types of DNS records #9070

Closed
wants to merge 9 commits into from

Conversation

qeesung
Copy link
Contributor

@qeesung qeesung commented Apr 17, 2019

Motivation:

Current DNS encoding and decoding only supports a few record types (PTR, OPT), but DNS records have many kinds, such as type A, NS, CNAME and so on.

Modification:

Add different types of DNS Records and codec

Result:

Fixes #8962

@qeesung
Copy link
Contributor Author

qeesung commented Apr 17, 2019

Because there are dozens of different types of DNS Records, it will take some time to support them all. Currently, only A, AAAA, NS, CNAME, PTR types are supported.

Currently only one basic scaffold has been written, and if there are no problems, I will support more types of DNS Records.

@netty-bot
Copy link

Can one of the admins verify this patch?

Copy link
Member

@normanmaurer normanmaurer left a comment

Choose a reason for hiding this comment

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

Sorry very short in time atm... but left one comment before you go further

/**
* Decodes the record data.
*/
void decodeRdata();
Copy link
Member

Choose a reason for hiding this comment

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

a Record should be just a "Pojo". Decoding does belong to a decoder and not the record

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The decode operation has been moved to the decoder :-). @normanmaurer would you please review it again ?

@qeesung
Copy link
Contributor Author

qeesung commented Apr 19, 2019

I'll shut down this PR temporarily. When all the functions are tested, I will create a new PR. @normanmaurer thanks :-)

@qeesung qeesung closed this Apr 19, 2019
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.

netty-resolver-dns "Got bad packet: bad label type"
3 participants