encodeDnsResponse() — netty Function Reference
Architecture documentation for the encodeDnsResponse() function in DnsMessageUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 81c7302a_7757_476b_d624_a430b8ea1329["encodeDnsResponse()"] 712b890c_041c_4773_effc_f02cf18d95ab["DnsMessageUtil"] 81c7302a_7757_476b_d624_a430b8ea1329 -->|defined in| 712b890c_041c_4773_effc_f02cf18d95ab 817828cc_8174_4b1f_8564_cd7dc7f940cb["encodeHeader()"] 81c7302a_7757_476b_d624_a430b8ea1329 -->|calls| 817828cc_8174_4b1f_8564_cd7dc7f940cb f97d586d_b97e_569d_1b6f_90b1d9a573b3["encodeQuestions()"] 81c7302a_7757_476b_d624_a430b8ea1329 -->|calls| f97d586d_b97e_569d_1b6f_90b1d9a573b3 bd46a87a_bdb4_8b46_ffba_5d245fa425f0["encodeRecords()"] 81c7302a_7757_476b_d624_a430b8ea1329 -->|calls| bd46a87a_bdb4_8b46_ffba_5d245fa425f0 style 81c7302a_7757_476b_d624_a430b8ea1329 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-dns/src/main/java/io/netty/handler/codec/dns/DnsMessageUtil.java lines 236–250
static void encodeDnsResponse(DnsRecordEncoder encoder, DnsResponse response, ByteBuf buf) throws Exception {
boolean success = false;
try {
encodeHeader(response, buf);
encodeQuestions(encoder, response, buf);
encodeRecords(encoder, response, DnsSection.ANSWER, buf);
encodeRecords(encoder, response, DnsSection.AUTHORITY, buf);
encodeRecords(encoder, response, DnsSection.ADDITIONAL, buf);
success = true;
} finally {
if (!success) {
buf.release();
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does encodeDnsResponse() do?
encodeDnsResponse() is a function in the netty codebase, defined in codec-dns/src/main/java/io/netty/handler/codec/dns/DnsMessageUtil.java.
Where is encodeDnsResponse() defined?
encodeDnsResponse() is defined in codec-dns/src/main/java/io/netty/handler/codec/dns/DnsMessageUtil.java at line 236.
What does encodeDnsResponse() call?
encodeDnsResponse() calls 3 function(s): encodeHeader, encodeQuestions, encodeRecords.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free