-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Conversation
1. A decoder 2. AAAA decoder 2. Text decoder
1. A record 2. NS record 3. CNAME record 4. AAAA record 5. PTR record
Because there are dozens of different types of DNS Records, it will take some time to support them all. Currently, only Currently only one basic scaffold has been written, and if there are no problems, I will support more types of DNS Records. |
Can one of the admins verify this patch? |
There was a problem hiding this 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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ?
I'll shut down this PR temporarily. When all the functions are tested, I will create a new PR. @normanmaurer thanks :-) |
Motivation:
Current DNS encoding and decoding only supports a few record types (
PTR
,OPT
), but DNS records have many kinds, such as typeA
,NS
,CNAME
and so on.Modification:
Add different types of DNS Records and codec
Result:
Fixes #8962